Jump to content

Sending an e-mail


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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...