arumugaraj wrote:Hii,,
I have designed 2 different registration pages..
I need to capture all the information from 2 pages and send as email
plz help me how to do that..
okie... you should have a mail function and a mail server. this function will be called if all the information was submitted and saved to the database.
this is the mail fundtion:
for more information check the mail function in php.net
function emailme()
{
//Edit these
$email=heremail@example.com
$emailfrom='myemail@example.com';
$to = '$email';
$subject = 'Your subject here';
$message = 'This is a message place';
$from = '$emailfrom';
// Leave these three alone O:
$message = wordwrap($text, 70, "\n", true);
$headers = 'From: <' . $from . ">\r\n";
$subject = str_replace(array("\r\n", "\n", "\r"), '', $subject);
// You can edit the messages 🙂
if (mail($to, $subject, $message, $headers))
{
echo 'Mail success';
}
else
{
echo 'Mail failed';
}