Jump to content

[SOLVED] email from form issue


Albatross

Recommended Posts

Mornin all!  :D

 

I have a html form application that gets processed by some php code, returns a result page to the applicant, stores the info in a db, and emails myself and another person.

 

The problem I have is that when I get the email, I see the domain server email addy, not the registered domain.

 

(ex : bob@webhostprovider.com  instead of molly@retribution.com)  (both are techincally correct but I want my paid domain used....not the default webhost domain.  Based on the code below, is there a way I can change it so that I get the domain that I want?

 

$inputfield00=@($_POST['name']);
$inputfield01=@($_POST['history']);
$inputfield02=@($_POST['recruiting']);
$inputfield03=@($_POST['email']);
$inputfield04=@($_POST['im']);
$inputfield05=@($_POST['charname']);
$inputfield06=@($_POST['charage']);
$inputfield07=@($_POST['bio']);
$inputfield08=@($_POST['strengths']);
$inputfield09=@($_POST['whatship']);
$inputfield10=@($_POST['responsibilities']);
$inputfield11=@($_POST['sample']);

$mailto="me@domain.com";
$mysubject="Application for '$_POST[name]'.";

$mail = 'An application requires your review.:

Message: '.$message.'
Field 1: '.$inputfield00.'
Field 2: '.$inputfield01.'
Field 3'.$inputfield02.'
Field 4 '.$inputfield03.'
Field 5 '.$inputfield04.'
Field 6'.$inputfield05.'
Field 7'.$inputfield06.'
Field 8'.$inputfield07.'
Field 9'.$inputfield08.'
Field 10'.$inputfield09.'
Field 11'.$inputfield010.'
Field 12'.$inputfield11;

$header .= "Application";

mail($mailto, $mysubject, $mail, $header);
?>

 

(This is all of the mailer code.)

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.