How Do I Include My Email In This Code

Started on the old forum in September 2006 · view the original in the archive · old links redirect here

2 replies · 523 views · started 20 years ago · 1 min read

2 participants
stretch Developer · 130 posts #1

i want to include my email address in this code as the FROM:. how do put the code in so that when ppl receive the confirmation email my email is shown?

else{
$getid = mysql_query("SELECT * FROM 4wap_top where name = '$name' ");
while($get = mysql_fetch_array($getid)){
$id = $get['id'];
$sendto = $get['mail'];
$subject = "4WAP Toplist link\n";   
$message = "toplist, $mymail\n\nRegistration successful!\nplease place a link from your site to:\n$yoursite?id=$id\n";
mail($sendto, $subject, $message);
}

print"Registration Successful! 

please place a link from your site to:

".$yoursite."?id=".$id."
to increase your rating.

This link has also been emailed to:
".$sendto."

<a href=\"index.php\">Main Menu</a>
";

= = = = = The more you laugh...the longer you live. Read more jokes at http://fun-files.co.cc

GumSlone Administrator Principal · 1,690 posts #2
else{
$getid = mysql_query("SELECT * FROM 4wap_top where name = '$name' ");
while($get = mysql_fetch_array($getid)){
$id = $get['id'];
$sendto = $get['mail'];
$subject = "4WAP Toplist link\n";   
$message = "toplist, $mymail\n\nRegistration successful!\nplease place a link from your site to:\n$yoursite?id=$id\n";
mail($sendto, $subject, $message, "From: [email]StretchMaster@email.net[/email]");
}

print"Registration Successful! 

please place a link from your site to:

".$yoursite."?id=".$id."
to increase your rating.

This link has also been emailed to:
".$sendto."

<a href=\"index.php\">Main Menu</a>
";

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

stretch Developer · 130 posts #3

External image (may be gone) External image (may be gone) thanks, that worked. i like the email addy you used for me External image (may be gone)

the code is actualy so simple.

this is what i tried but didnot work

<?
$id = $get['id'];
$sendto = $get['mail'];
$subject = "4WAP Toplist link\n";   
$from = "mail@4wapfreaks.net";
$message = "toplist, $mymail\n\nRegistration successful!\nplease place a link from your site to:\n$yoursite?id=$id\n";
mail($sendto, $subject, $from, $message);
?>

= = = = = The more you laugh...the longer you live. Read more jokes at http://fun-files.co.cc

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close