Jump to content

sendmail PHP5 IIS6 problem


Recommended Posts

I am attempting to configure IIS6 and PHP5 to enable the sending of email on my local machine for testing purposes.

 

I have followed several tutes to configure the Default virtual Mail Server for IIS6, setting relay and connection details for 127.0.0.1 and localhost, and the php.ini sendmail settings and attempted to execute the following simple test script...

 

<?php
if(mail('me@somewhere.com','test subject','test message'))
{
echo "ok";
}
else
{
echo "not ok";
}
?>

 

Obviously I would have my actual gmail email address in place of the me@somewhere.

 

Php.ini settings are...

 

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
sendmail_from = root@localhost

 

My problem is that the script returns 'OK', but I am not receiving any emails.

 

Does any one have any suggestions as to things I could look into?

 

 

 

Cheers

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.