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 : [email protected]  instead of [email protected])  (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="[email protected]";
$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
https://forums.phpfreaks.com/topic/39592-solved-email-from-form-issue/
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.