I'm using phpMailer in my project , and passing the message/body via a CHtml textArea.
However , long mails are not being send (or when I used just mail() , the message was empty)
Now , when I write a message in the code , with all is fine.
So fom that I conclude that the textArea is not breaking the lines (gets over 70) , I tried using word-wrap but it seems like not working.
Here's pat of my mailer:
$mail->WordWrap = 50;
$mail->Subject = ($_GET['subject']);
$mail->MsgHTML($_GET['message']);
$mail->AddAddress(Person::model()->findByPk($id)->email);
$mail->Send();
and here is the textArea:
<?php echo CHtml::textArea('message','message. . . ',array('id'=>'message','style'=>'text-align: right','cols'=>75)); ?>
Does anyone know where is the problem?
Thanks , Mark.