Jump to content

[SOLVED] MIME-Version:1.0


stealthmode666

Recommended Posts

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

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 ......"; 

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

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.