Forum Moderators: coopster

Message Too Old, No Replies

Using external SMTP auth - Urgent help please!

         

mattclayb

12:37 pm on Jun 14, 2007 (gmt 0)

10+ Year Member



Hi,

I am trying to make a mail script that can either, securely send email to domains not existing on the local server.

OR

Connect to an external SMTP server through smtp auth and send email that way.

I have searched for documentation but caanot find any help.

Does anybody have any pointers?

Thanks,

Matt

eelixduppy

1:19 pm on Jun 14, 2007 (gmt 0)



There are php.ini directives that you can change to accomodate another smtp server. Look at them in the documentation for mail [php.net]() under Runtime Configuration. These are all php_ini_all so they can be changed within the script, if you'd like, using ini_set [us2.php.net]().

mattclayb

4:50 pm on Jun 14, 2007 (gmt 0)

10+ Year Member



I beleive that changing smtp settings in php.ini only applies to Windows servers, as Linux / Unix bypass the sptp function?

Is it not the case that the connection would need to be done using fsockopen?

Also,

Does anyone have any examples of sending email securely (i.e protected against spammers) in php using the local mail() function?