Hello
I see under the PHP.ini file I can enable or disable SMTP for the entire server
[mail function]
SMTP = smtp.company.com
smtp_port = 25
if there a way to control what site under iis can use SMTP using PHP at the site level?
thanks
Hello
I see under the PHP.ini file I can enable or disable SMTP for the entire server
[mail function]
SMTP = smtp.company.com
smtp_port = 25
if there a way to control what site under iis can use SMTP using PHP at the site level?
thanks
Normally, you need to set up the SMTP settings to match your server’s needs. Therefore, you usually set it up in your
config.php file and it is used for the entire server’s site. If you have more than one email handler set up on your server,
then, you would be able to set up one for each of them. But, I have never seen anyone try to have more than one handler
on one server.
You should remember that SMTP is for OUTGOING emails, not incoming. Therefore, on one server, even if multiple websites,
you would use the one outgoing SMTP server for all outgoing mail. This has nothing to do with the reply-to’s or from-headers.
Here is a few ways to set up SMTP using PHP at this post:
http://stackoverflow.com/questions/3525818/smtp-configuration-for-php-mail