• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

help getting a php mail script working

AdamDuritz99

Diamond Member
ok go to BlingIce and fill out the form. You should recieve a thank you letter. no look where its from. it says admin@blingice.com in outlook ,but when you look at the details where its from it says nobody@neuxus.blahblah.com
this is my code
-----------------
<?php

$msg = &quot;Sender Name:\t$sender_name\n&quot;;
$msg .= &quot;Sender E-Mail:\t$sender_email\n&quot;;
$msg .= &quot;Message:\t$message\n\n&quot;;

$recipient = &quot;admin@blingice.com&quot;;
$subject = &quot;FeedBack&quot;;

$subject2 = &quot;Thank You&quot;;
$msg2 = &quot;Thank you $sender_name for your comments, we will contact you shortly.\n&quot;;
$msg2 .= &quot;Sean\n&quot;;
$msg2 .= &quot;www.blingice.com\n&quot;;


$mailheaders = &quot;From: $sender_name <>\n&quot;;
$mailheaders .= &quot;Reply-To: $sender_email\n\n&quot;;

$mailheaders2 = &quot;From: $recipient <>\n&quot;;
$mailheaders2 .= &quot;Reply-To: $recipient\n\n&quot;;

mail($recipient, $subject, $msg, $mailheaders);
mail($sender_email, $subject2, $msg2, $mailheaders2);

echo &quot;<HTML><HEAD><TITLE>Form Sent!</TITLE></HEAD><BODY>&quot;;
echo &quot;<H1 align=center>Thank You, $sender_name</H1>&quot;;
echo &quot;<P align=center>Your feedback has been sent.</P>&quot;;
echo &quot;</BODY></HTML>&quot;;

?>
<meta http-equiv=&quot;refresh&quot; content=&quot;5;URL=http://www.blingice.com&quot;>
----------------------

is there something wrong with the code?

thanks

peace
sean
 
Back
Top