Page 1 of 1

Authenticating SMTP email when processing form

Posted: Tue Apr 03, 2012 10:44 am
by thall0515
Hello all,

Having a bit of trouble figuring out how to get my online form to send properly.
Moved an entire website to a new webserver.
The old server had SMTP running on it with No Authentication required to send mail.

The new server is not running SMTP, so I need to be able to point to the mail server on the network and login (it requires authentication) to sen mail.
Here is what I have and where I am stuck in the code...

ini_set('SMTP', 'smtp.server.com');
ini_set('smtp_port', '25');
ini_set('username', user@domain.com');
ini_set('password', 'userpassword');

Thanks!

Re: Authenticating SMTP email when processing form

Posted: Tue Apr 03, 2012 10:55 am
by Celauran
Have you considered using SwiftMailer or PEAR's Mail package?

Re: Authenticating SMTP email when processing form

Posted: Tue Apr 03, 2012 11:04 am
by thall0515
No. I honestly have no experience using either and did not want to re-invent the wheel on this form.