Jump to content

Basic Mail function not working on IIS 6.0 server


freakythumbs

Recommended Posts

I have googled & searched for answers on this one but cant figure it out - im converting my ASP pages (which successfully used the CDONTS function) to PHP and using the Mail() function but I cant even send a simple email.

 

The php.ini is set to use the localhost on port 25 and the code is:

 

<?php

// The message

$message = "Line 1\nLine 2\nLine 3";

 

// In case any of our lines are larger than 70 characters, we should use wordwrap()

$message = wordwrap($message, 70);

 

// Send

mail('[email protected]', 'My Subject', $message);

?>

 

Any reason why it wouldnt work? PHP is working fine ...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.