Jump to content

Form to mail code


martin20009

Recommended Posts

I downloaded the tutorial Creating a mail form wth php and flash.
I am having problems with the code.

<?php

$to = "[email protected]";
$msg = "$name\n\n";
$msg .= "$message\n\n";

mail($to, $subject, $msg, "From: My web site\nReply-To: $email\n");

?>
[/code]

But the problem is that my website host says In order for the script to work, you need to specify, via a fifth -f parameter, the domain from which the mail is being sent. The PHP component uses SMTP (Simple Mail Transfer Protocol), and all StreamlineNet' SMTP servers have filters which ensure that the data returned by either the first or fifth mail parameter relates to one of your domains hosted by StreamlineNet and gives me the following code,

<?php

$message, "From: $email", "[email protected]" );
?>

Where do i place this line of code in the the sorce code

I am new to this and any help would be great
Thanks
Martin
Link to comment
https://forums.phpfreaks.com/topic/4788-form-to-mail-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.