Tell a friend

Reply

Join Date: May 2006
Posts: 32
Reputation: DATABASE is an unknown quantity at this point 
Solved Threads: 0
DATABASE DATABASE is offline Offline
Light Poster

Tell a friend

 
0
  #1
Apr 3rd, 2007
hi

i need help :lol:


how can i write a code (php) for "tell a friend" ?
i mean i want to tell a friend about a web page by sending an e-mail from the same page

thanx in advance
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 1
Reputation: akany is an unknown quantity at this point 
Solved Threads: 0
akany akany is offline Offline
Newbie Poster

Re: Tell a friend

 
0
  #2
Apr 3rd, 2007
[PHP]If($Submit) {
$headers .= "From: <YourDomain.com>\n";
$headers .= "X-Sender: <contact@YourDomain.com>\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "Return-Path: <contact@YourDomain.com>\n";
mail($recipient_email,"A message from $sender_name", "Hello $recipient_name,\nYour friend $sender_name, just found our website and thought you might be interested in it.\n\nPlease follow the link to view our site:\nhttp://www.YourDomain.com\n\nBest regards\n\YourDomain.com Support Team", $headers);

}[/PHP]
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 32
Reputation: DATABASE is an unknown quantity at this point 
Solved Threads: 0
DATABASE DATABASE is offline Offline
Light Poster

Re: Tell a friend

 
0
  #3
Apr 3rd, 2007
thanx alot:cheesy:
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC