Article ID: 2458, created on Oct 29, 2007, last review on May 10, 2014

  • Applies to:
  • Pro Control Panel Windows

AdditionalInformation

View Knowledge
Knowledge ID 1226
Product : WEBppliance for Windows
Version : 3.0
Topic : FAQ

Title
How to use the MS SMTP server to relay mail using the php mail function?

Summary
How to use the MS SMTP server to relay mail using the php mail function?

Prevention


Details
To use the MS SMTP server to relay mail using the php mail function make the following configuration changes,

1) Edit php.ini and set the SMTP host as localhost.
[Mail Function]
SMTP = 127.0.0.1

2) Edit the IIS SMTP properties,

Go to the Access tab -> Relay restrictions, Relay.
Select "Only the list below"
Click Add.
Under Single computer add 127.0.0.1.
Restart IIS.

3)Test using the following sample script,
<?php
mail("myemail@example.com", "My Subject", "It Works!!");
?>

Attachments


Related Knowledge

Related Links
 
Last ModifiedUsageSatisfiedLast Used
9/14/2004 3:59:36 PM16 10/11/2007 10:49:09 PM

8e19bcddff0cc55cafe80c841132ca59 3ccb419cf98083f3bb45808fba8dbc7c 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF