Jump to content

Sending an e-mail


mickeymouse
 Share

Recommended Posts

I want to send an e-mail.
Is this not correct code?
The first time I tested it, the e-mail went through.
Now it just doesn't go.
Do I need to have an e-mail account with my web service provider in order to have my code send an e-mail?

$to = $MyEMailaddr;
$subject = 'My Website';
$message = $mymsg;
$headers = 'UserID & Password' . '\r\n';
mail($to,$subject,$message,$headers);

I'm sure $MyEMailaddr contains the correct e-mail address (I have the proof).  Same with $Mymsg.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...