stealthmode666 Posted December 21, 2008 Share Posted December 21, 2008 Can someone help on this one for me? The email I have coming to me from my form has the title of this thread added at the end of it. [email protected]:1.0 I don't want this. (as you can imagine) How do I get rid of it? I need the email send as html as I have the data in a table. It's part of my header, but if I remove it my form data is scambled in my email? It shows all the html tags and coding. This is the code I use. <?php $to = ( isset ($_REQUEST['sendto']) ? $_REQUEST['sendto'] : "default 'to' email goes here" ); $from = ( isset ($_REQUEST['Email']) ? $_REQUEST['Email'] : "default 'from' email goes here" ) ; $name = ( isset ($_REQUEST['Member_Name']) ? $_REQUEST['Member_Name'] : "Default member name goes here" ) ; $headers = "From: $from"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=utf-8\n"; $subject = "Members Data From ......" $body.................. $headers2 = "From: [email protected]"; $subject2 = "Thank-you for filling in the Form "; $autoreply = "Somebody from.. will get back to you as soon as possible, Thank-you"; if($from == '') {print "You have not entered an Email Address, ....";} else { if($name == '') {print "You have not entered a ....";} else { $send = mail($to, $subject, $body, $headers); $send2 = mail($from, $subject2, $autoreply, $headers2); if($send){header( "Location: http://..../r...../thankyou.html" );} else {print "We encountered ......."; } } } ?> Link to comment https://forums.phpfreaks.com/topic/137890-solved-mime-version10/ Share on other sites More sharing options...
redarrow Posted December 21, 2008 Share Posted December 21, 2008 Look at my sig link at the email code might help. Your headers ant right look at mine. Link to comment https://forums.phpfreaks.com/topic/137890-solved-mime-version10/#findComment-720660 Share on other sites More sharing options...
stealthmode666 Posted December 21, 2008 Author Share Posted December 21, 2008 should this be my header? <?php $to = ( isset ($_REQUEST['sendto']) ? $_REQUEST['sendto'] : "default 'to' email goes here" ); $from = ( isset ($_REQUEST['Email']) ? $_REQUEST['Email'] : "default 'from' email goes here" ) ; $name = ( isset ($_REQUEST['Member_Name']) ? $_REQUEST['Member_Name'] : "Default member name goes here" ) ; $headers = 'X-Mailer: PHP/' . phpversion() . "\r\n" . "MIME-Version: 1.0\r\n" . "Content-Type: text/html; charset=utf-8\r\n" . "Content-Transfer-Encoding: 8bit\r\n\r\n"; $subject = "Members Data From ......"; Link to comment https://forums.phpfreaks.com/topic/137890-solved-mime-version10/#findComment-720664 Share on other sites More sharing options...
stealthmode666 Posted December 21, 2008 Author Share Posted December 21, 2008 Thanks Redarrow, slowly understanding, the header now shows the name of the server from which the php processing came from, as in my hosting server. Thanks for that. Link to comment https://forums.phpfreaks.com/topic/137890-solved-mime-version10/#findComment-720669 Share on other sites More sharing options...
redarrow Posted December 21, 2008 Share Posted December 21, 2008 You keep at it mate i bet you get it and then help others, you no the more you have a go the more you learn, and it good fun. your getting there just look at my code and start to alter your and it be all done trust me. and yee your nearly there i can tell lol Link to comment https://forums.phpfreaks.com/topic/137890-solved-mime-version10/#findComment-720670 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.