English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
2

Hi,

I need some php code so that I can send an email when a user registers with my site. All I need is the email code.

Any ideas?

2007-08-26 09:13:18 · 6 answers · asked by jeff lemon 1 in Computers & Internet Programming & Design

6 answers

Very simple.

The mail() function in PHP sends an email. Easy as pie.

mail("sendtome@myemail.com", "subject", "message");

There are also other optional headers you can include in the email (like From, etc.). See link below.

2007-08-26 09:42:18 · answer #1 · answered by Wiseguy 4 · 0 0

Sorry Jeff, but you are becomming an annoyance.
You have asked over 150 questions on this site to get your own code to work.
You have received many good answers from decent people (working for a living).
You have not even acknowledged their replies.
You did not learnt anything from the answers you got (as your later questions are showing).
You have not made the slightest effort to learn anything.
You did not even bother to visit www.php.net to learn something (if you did, you would not ask silly questions).
WE are not here to do student's home work.
WE are not here to write YOUR code for you!
I hope others will refrain from giving you free answers to your professional problems.

2007-08-26 10:42:41 · answer #2 · answered by just "JR" 7 · 2 1

Why don't you download a copy of the php manual. It would be so much easier and quicker for you to look this stuff up yourself.

You can get it here (in multiple languages): http://www.php.net/download-docs.php

2007-08-26 11:25:52 · answer #3 · answered by Anonymous · 0 0

Look dear i don't have time right now for it so i am suggesting you that you just send a query to concern department of url given below they will surly help you or you just send me email id to me i will provide you ....shortly
http://www.commediait.com

2007-08-26 20:39:38 · answer #4 · answered by top s 3 · 0 0

some information. a million) make constructive your variables incorporate the help via echoing them out. 2) form=button isn't valid for a submit button 3) this could could desire to be achieved online in case you're no longer already as community servers could desire to be set as much as deliver emails. ----------- and finally it quite is a mail script i comprehend works. $subject = "Messages gained"; $message_body = "content textile here. n"; $headers = "From: YOUR e mail here" . "rn" . "respond-To: YOUR e mail here" . "rn" . 'X-Mailer: very own residing house page/' . phpversion(); $mail_response = mail("THERE e mail here" , $subject, $message_body, $headers);

2016-11-13 10:59:30 · answer #5 · answered by ? 4 · 0 0

hi

check this one


$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'From: info@yahoo.com'. "\r\n";
$headers .= 'Reply-To: hr@yahoo.com' . "\r\n";
$headers .= 'Return-Receipt-To: hr@yahoo.com' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

$Subject = "Sample message";
$SendMessage = "".$content."

".$content."

";

if(mail("user@yahoo.com",$Subject,$SendMessage,$headers)){
echo "send";
}else{
echo "error";
}

?>

2007-08-26 23:17:20 · answer #6 · answered by Roop 1 · 0 0

fedest.com, questions and answers