You are here: Re: mail() and pdf attachment « PHP Programming Language « IT news, forums, messages
Re: mail() and pdf attachment

Posted by damezumari on 10/05/07 10:45

Hi Michael,

Thank you for answering!

$fromname = $_SESSION['myname'];
$fromaddress = $_SESSION['myemailaddress'];
$headers = "From: \"".$fromname."\" <".$fromaddress.">\n";
$bcc = $_SESSION['myemailaddress'];
$headers .= 'Bcc: '.$bcc. "\n";
$headers .= "\nMIME-Version: 1.0\n" .
"Content-Type: multipart/mixed;\n" .
" boundary=\"{$mime_boundary}\"";

This was my offending code!

I had too many line shifts (\n) in $headers.

I changed the last line to:

$headers .= "MIME-Version: 1.0\n" .
"Content-Type: multipart/mixed;\n" .
" boundary=\"{$mime_boundary}\"";

and then it worked!

Regards,

Jan Nordgreen

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация