Forum Moderators: coopster

Message Too Old, No Replies

Can't get mail working in php Win 2003 iis

mail windows 2003 iis

         

flashpipe

2:54 pm on May 20, 2008 (gmt 0)

10+ Year Member



I'm working with a hosting company to configure the Windows 2003 IIS server so that I can use the mail function.

I don't get any errors when I submit my test.php form, but I don't get a test e-mail message either:

<?php
mail('myemail@gmail.com', 'Subject', 'Your message here.');
?>

The phpinfo.php is at <snip>

They said they set the sendmail_from but it doesn't seem to be set...would that be the problem?

Thanks!

[edited by: eelixduppy at 3:05 pm (utc) on May 20, 2008]
[edit reason] no URLs, please [/edit]

eelixduppy

7:08 pm on May 20, 2008 (gmt 0)



Hello and Welcome to WebmasterWorld!

It could be a problem without a From header. You might want to try to add one manually to see if that fixes your problem:


mail('myemail@example.com', 'Subject', 'Your message here.','From: email@example.com' . "\r\n");

flashpipe

7:25 pm on May 20, 2008 (gmt 0)

10+ Year Member



Tried adding that to my string, but still no luck...

<?php
mail('myemail@gmail.com', 'Subject', 'Your message here.','From: email@example.com' . "\r\n");
?>

Thanks!

[edited by: eelixduppy at 7:28 pm (utc) on May 20, 2008]
[edit reason] removed url - see sticky [/edit]