Hello All
I've been scouring the net looking for the answer...
I'm using htmlMimeMail class from phpguru.org. It send the email just fine but I get an email that is just garbage...
What is wrong?
The content of the email looks like so:
LS09XzRhOGRhNzY1MzQwMGM5MTBlOTQ1NzA2ZDYzYjFiOWI3CkNvbnRlbnQtVHlwZTogdGV4dC9w
bGFpbjsgY2hhcnNldD0iSVNPLTg4NTktMSIKQ29udGVudC1UcmFuc2Zlci1FbmNvZGluZzogN2Jp
dAoKU1VCTUlUVEVSJ3MgSU5GTyAKRmlyc3QgTmFtZTogUnVzcwpMYXN0IE5hbWU6IFdyaWdodApF
the important parts of my code:
//instantiate the class
$mail = new htmlMimeMail5();
$mail->setFrom($submitters_fname." ".$submitters_lname." <".$submitters_email.">");
$mail->setSubject($subject);
$mail->setPriority('normal');
//assemble the email message:
$message = "SUBMITTER's INFO \n";
$message .= "First Name: " . $submitters_fname . "\n";
$message .= "Last Name: " . $submitters_lname . "\n" ;
$message .= "E-mail: " . $submitters_email . "\n\n" ;
$mail->setText($message);
$mail->setReceipt($recipient);
$mail->addAttachment(new fileAttachment($imagesrc, 'image/jpeg',new Base64Encoding() ));
$result = $mail->send(array($recipient));