you should use smtp if you send emails locally. especially if you do not
know how to set up the environment for sending php mails using mail() etc
its always easier to use the smtp protocol then.
it also has the advantage to always be the same on every environment.
Am Dienstag, 7. August 2012 18
Does it work if you send the email from a controller? Does it work if
you send the email from a normal PHP script?
On Tue, Aug 7, 2012 at 6:09 AM, NewBie wrote:
> I write a Shell for sending email like this :
>
> class SendMailShell extends Shell {
> function main() {
> App::import(
I write a Shell for sending email like this :
Controller =& new Controller();
$this->Email =& new EmailComponent();
$this->Email->startup($this->Controller);
$this->Email->reset();
$this->Email->to = 'Jonny ';
$this->Email->subject = "Subject";
$thi