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 = "you@yourdomain.com";
$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", "fuser@userdomain.com" );
?>

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.