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

Article ID: 2458 
Last Review: Oct,6 2008
Author:
Last updated by: system APPLIES TO:
  • Parallels Pro Control Panel Windows

Additional information

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


Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields