Jump to content

Setting up email to work with a local SMTP server


Lassie

Recommended Posts

Does anyone have experience of sending mail to an SMTP server set up on a local windows machine.
I have set my php.ini to
the server address and put in a sendmail from address.
my code is:

$to = "[email protected]";
$subj = "test";
$mess = "This is a test of the mail function";
$headers = "bcc:[email protected]";
mail($to,$subj,$mess,$headers);
I keep getting an unknown error.

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.