I created new default project in ZF.
in index method I put:
- Code: Select all
$mail = new Zend_Mail();
$mail->setBodyText('This is the text of the mail.');
$mail->setFrom('somebody[at]example[dot]com', 'Some Sender');
$mail->addTo('somebody_else[at]example[dot]com', 'Some Recipient');
$mail->setSubject('TestSubject');
$mail->send();
[at] and [dot] ofc means "@ "and "." (i cant put here links and emails)
and when I open a page I get error 500 Internal Server Error... but I have this email in my mailbox.
I tested this on ZF 1.10 and 1.12. ZF CE
Regards,
lukaszl446

