cancel
Showing results for 
Search instead for 
Did you mean: 

sending emails programmatically from php

martinlangley
Newbie
Posts: 3
Registered: ‎01-06-2013

sending emails programmatically from php

I bet you can't crack this one!
I'm running some PHP software (oscommerce) under xampp
in a mac osx (panther) environment. The software purports to
send email confirmation of orders but these never arrive.
I've modified php.ini as reccommended and set up a mail server for
smtp but still no joy.
Can't help me can you? 
Wimps!
1 REPLY 1
picbits
Rising Star
Posts: 3,432
Thanks: 23
Registered: ‎18-01-2013

Re: sending emails programmatically from php

The only PHP email shizzle I've played about with is below :
<?php
$to = "mywife47837983@hotmail.com";
$message = "Are you ready for bed yet ?";
mail($to, "Bedtime ?", $message,"From: dom@emaildomain.co.uk", "-fdom@emaildomain.co.uk");
?>

Have you checked any of your logfiles to see if it's flagged up why your message isn't being sent ?