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

Member Avatar for akany
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);

}

thanx alot:cheesy:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.