![]() |
|
|||||||
| Forum Archive The forum archive. If you're unable to find your thread, it's bound to be here. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Sendmail problems
Hi, I am trying to use the mail function in php which sould use sendmail to send emails. The problem is that either the function isn't sending the emails or the mails are getting lost as I never recieve them.
The php script im playing with is: <?php $to = "mike@lodgeonline.me.uk"; $subject = "testmail"; $message = "this is a test"; $from = "From: mmmm@testsite.net"; $sent = mail($to,$subject,$message,$from); print $sent . "<br>"; print "message sent"; ?> The return value from the mail function is always 1 which suggests the mail function is working correctly. Any help on this would be appreciated Mike |