Note that there are some explanatory texts on larger screens.

plurals
  1. POproblems with sending emails from localhost
    primarykey
    data
    text
    <p>I am on a mac, using mountain lion. I'm running php on a localhost environment and am writing a script that needs to send emails. Obviously I need to test if this script is working at various occasions. To do this I have tried to set up my machine to send emails to my gmail account, without success.</p> <p>I know very little of the command line so have had to follow tutorials blindly. <a href="http://benjaminrojas.net/configuring-postfix-to-send-mail-from-mac-os-x-mountain-lion/" rel="nofollow">this one seemed helpful</a>, but has not been the only one I have followed. While following it i got an error message when I tried to open</p> <pre><code>/etc/postfix/main.cf </code></pre> <p>after entering my password I got the message:</p> <p>While opening file "/etc/postfix/main.cf" dated: Fri Jul 26 15:25:39 2013 NEWER than swap file!</p> <p>(1) Another program may be editing the same file. If this is the case, be careful not to end up with two different instances of the same file when making changes. Quit, or continue with caution.</p> <p>(2) An edit session for this file crashed. If this is the case, use ":recover" or "vim -r /etc/postfix/main.cf" to recover the changes (see ":help recovery"). If you did this already, delete the swap file "/etc/postfix/.main.cf.swp" to avoid this message.</p> <p>I tried to use</p> <p>vim -r /etc/postfix/main.cf</p> <p>and ive been presented with a list of files of the same name ending with different extensions, I selected a file (I assume they are store as backups and are all essentially the same) and edited it accordingly.</p> <p>On completing the tut, I tried to send myself an email, but without success.</p> <p>Is the error I came across the problem or is there likly to be an issue with spam filtering?</p> <p>what are my options to send mail from my localhost</p> <p>===EDIT===</p> <p>I have followed <a href="http://www.zenddeveloper.com/how-to-send-smtp-mails-with-postfix-mac-os-x-10-8/" rel="nofollow">this tutorial</a> and I check if the email send with mailq, the responce i get is the Queue Id number, Size, Arrival time and Sender/recipient but no error message. When I have previously tried I got a timed out message. I sill have message in my Gmail account, is this due to not having an SMTP set as mentioned in the below comment?</p> <p>I really need to send mail from my local host</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload