QEmailMessage probleme
Thu, 03/03/2011 - 18:24
Hello everyone. I have a problem with the coding (I think) that I send emails. Made in the emails contain the following characters:
the message object starts with: =? UTF-8? Q? purpose of my message
and the horns of message I find everywhere the following characters: = 0A
Does anyone know the problem?
Thank you very much.

Hi Ourri,
we encountered the same problem on our end.
after a few research, we figured out that the length of the message title was causing the issue. If the title has more than 75 characters, the email got sent with all those weird tags.
Here is a small piece of code for which I was able to reproduc the problem every time.
<?php
require_once('../qcubed.inc.php');
$objMessage = new QEmailMessage();
$objMessage->From = "no-reply@hotmail.com" ;
$objMessage->To = 'my-email@gmail.com';
$objMessage->Subject = "123456789012345678901234567890123456789012345678901234567890123456789012345" ;
$objMessage->HtmlBody = "<h1>TITLE</h1><p>CONTENT</p>" ;
QEmailServer::Send($objMessage);
$objMessage->To = 'my-email@gmail.com';
$objMessage->Subject = "1234567890123456789012345678901234567890123456789012345678901234567890123456" ;
$objMessage->HtmlBody = "<h1>TITLE</h1><p>CONTENT</p>" ;
QEmailServer::Send($objMessage);
?>
you might want to try it ou tand shorten the title and see if it actually help.
Mike
Is there any solution to this problem other than shorten the subject line down to 75 characters?
Brynjar
hello brynjar,
Actually I use phpmailer class for responds to my needs:
http://code.google.com/a/apache-extras.org/p/phpmailer/
It work very fine.