skulky Posted May 12, 2009 Share Posted May 12, 2009 Hi, I am trying to send emails to an external mail server. The website resides on an IIS server. Is there something I need to change inside the ini_set so that emails will go directly to the external mail server? ini_set("SMTP","mail.domain.com"); ini_set("sendmail_from", "user@domain.com"); Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/157778-php-mail-code-on-iis-server-to-send-to-external-mail-server/ Share on other sites More sharing options...
ldougherty Posted May 15, 2009 Share Posted May 15, 2009 You can do it the way you are doing via the individual page or if you want all PHP sites on the server to sent through the same SMTP server you would adjust the following values in your php.ini ; For Win32 only. SMTP = mail.domain.com smtp_port = 25 ; For Win32 only. sendmail_from = me@example.com Quote Link to comment https://forums.phpfreaks.com/topic/157778-php-mail-code-on-iis-server-to-send-to-external-mail-server/#findComment-834890 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.