Does Free accounts support Emails and Attachments

Status
Not open for further replies.

james2008g

New Member
Messages
5
Reaction score
0
Points
1
I have set the from email to this account
'locallot@locallotto.x10host.com'


PHP code and email header looks something like

$header .= "From: SomeName <locallot@locallotto.x10host.com>\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: multipart/mixed; boundary=\"".$mime_boundary."\"\r\n\r\n";
$header .= "This is a multi-part message in MIME format.\r\n";
$header .= "--".$mime_boundary."\r\n";
$header .= "Content-type:text/html; charset=iso-8859-1\r\n";
$header .= "Content-Transfer-Encoding: 7bit\r\n\r\n";
$header .= nl2br($message)."\r\n\r\n";
$header .= "--".$mime_boundary."\r\n";

then an attachment
$header .= "Content-Type: application/octet-stream; name=\"".$v."\"\r\n";
$header .= "Content-Transfer-Encoding: base64\r\n";
$header .= "Content-Disposition: attachment;
filename=\"".$v."\"\r\n\r\n";
$header .= $content."\r\n\r\n";
$header .= "--".$mime_boundary."--"."\r\n";

mail("locallot@locallotto.x10host.com", $subject, "", $header);

Thanks
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
I can tell you that it doesn't support mail that doesn't have a (substantive) plain text part.
 
Status
Not open for further replies.
Top