Jump to content

Header mail() question? is this correct?


bilis_money

Recommended Posts

hi, guys

i would like to send email message into new registered user,
Is this snippet codes correct specially the Header?

[code]
//send message to new user.
$recepient = $email_new;
$subject = "Please activate your membership now!";
$contents = "Hi, $user_new  PLease activate now";

$headers = "Reply-to: $email_new";
mail($recepient, $subject, $contents, "From: Website Admin. :)", $headers);
[/code]

i'm inserting $email_new inside a $headers because i want it to be dynamic,
I want to insert the email address of the new user into that, is that
correct insertion? i mean the codes?

and also i notice that when i press the send i don't recieve the message
from this codes, please help me i'm really stumped.

Thank you very much in advance.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.