macagua / example-yii-mail

Automatically exported from code.google.com/p/yii-mail
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Issue with PHP 5.3+? #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a message using example code:
$message=new YiiMailMessage;
$message->view='myView';
$message->setBody(array('model'=>$_model), 'text/html');
$message->subject='my subject'; // <- this line will cause an exception to be 
thrown
$message->addTo($_model->username);
$message->from='anEmail@nowhere.com';

What is the expected output? What do you see instead?
Expected output: no exception

What version of the product are you using? On what operating system?
r9, Windows 7, IIS7, PHP v5.3.10

Please provide any additional information below.
I think it has something to do with the magic setter method but don't know 
enough about those, or what changed between 5.2.x and 5.3.x in these magic 
methods to diagnose further.

Original issue reported on code.google.com by eddie.gr...@gmail.com on 17 Apr 2012 at 9:04

GoogleCodeExporter commented 9 years ago
Try using an uppercase 's' in subject or use 'setSubject' directly.

Original comment by Mario.De...@gmail.com on 11 May 2012 at 8:50