Topic: Setting up email in PHP

I'm trying to send email from a PHP / codeigniter app.  I'm running into some problems - I'm not sure about the email settings (e.g.  smtp server, etc).  Also are there any php config setting that need to be set?

The email appears to be sending,  according to my debug statement output:

220 smtp104.sbc.mail.gq1.yahoo.com ESMTP
hello: 250-smtp104.sbc.mail.gq1.yahoo.com
250-AUTH LOGIN PLAIN XYMCOOKIE
250-PIPELINING
250 8BITMIME
from: 250 ok
to: 250 ok
data: 354 go ahead


The error,  right after the above message,  I get when trying to send is:

451 See http://pobox.com/~djb/docs/smtplf.html.
The following SMTP error was encountered: 451 See http://pobox.com/~djb/docs/smtplf.html.
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

I went to the url and added linefeeds but that didnt seem to help any.
Any ideas about this??

thanks,
Dave

Re: Setting up email in PHP

Generally in PHP we just recommend using the mail() command.  This should be an option you can configure in your CodeIgniter application settings.

If you want to use SMTP settings, just use the server "localhost", and the username and password that you have setup in cPanel's mail settings.

Re: Setting up email in PHP

Thanks!