Lassie Posted December 4, 2006 Share Posted December 4, 2006 Does anyone have experience of sending mail to an SMTP server set up on a local windows machine.I have set my php.ini tothe 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. Link to comment https://forums.phpfreaks.com/topic/29410-setting-up-email-to-work-with-a-local-smtp-server/ Share on other sites More sharing options...
papaface Posted December 4, 2006 Share Posted December 4, 2006 http://www.php.net/manual/en/ref.mail.php#57473^^ That should help you.regards Link to comment https://forums.phpfreaks.com/topic/29410-setting-up-email-to-work-with-a-local-smtp-server/#findComment-134959 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.