Thread: can't send mail from localhost
i'm trying send mail localhost using php mail function. test script, call mail function, works fine on host, not on computer (localhost).
first tried sendmail, editing sendmail_path in php.ini so:
sendmail_path = /usr/sbin/sendmail -t
didn't seem work. no email received @ gmail account had tried send email. checked inbox , spam folder. there no error in php log. in mail log, saw entries this...
jan 12 09:58:04 ubuntu sendmail[3438]: q0cew3dd003438: to=myemailaccount@gmail.com, ctladdr=www-data (33/33), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30083, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=sent (q0cew38b003439 message accepted delivery)
...where myemailaccount@gmail.com gmail address. don't know how read mail log, entry looks pretty me, suppose. however, i'm not seeing email in gmail account, , i've waited while show up.
might missing?
apologies if off topic ubuntu forum. using ubuntu, though don't presume problem here lies in how i'm using ubuntu. not sure.
try site:
http://sourcelibrary.org/2011/08/29/...x-lamp-server/
followed steps, , worked me. have have lamp installed first. , 1 other thing: when installing postfix, click ok everything, except 'system mail name." set localhost.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] can't send mail from localhost
Ubuntu
Comments
Post a Comment