PHP Question

They have: 38 posts

Joined: Dec 2002

I have a php script that after filling out a form will email a link to a friend:

<?
include "PHP_Lib.php";
$subject = $HTTP_GET_VARS["Subject"];
mail("$Recipient_Email","Please check this link out","$Recipient_First_Name,

Please check this link out: $message

Thanks,
$Contact_First_Name $Contact_Last_Name");
?>

How can I get it so that the "From" address in the email looks like it is coming from the sender?

Thanks!

Jody

He has: 1,016 posts

Joined: May 2002

Add "FROM: Name " to the mail() function...

Example: mail($from_email, $subject, $email_body, $from)

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.