Send E-Mails via Joomla-CLI-Script

21 views
Skip to first unread message

Timotheus Titus

unread,
Jun 14, 2015, 11:12:27 AM6/14/15
to joomla-de...@googlegroups.com
Hello out there,

are there any restrictions why I can not send mails via php-cli on Joomla?

I can send Mails without problems from the backend of my component; I can check them and click "send" to call "send()"-Method in the sub controller, which calls a Helper, which sends the mail.

That works great.

If I do the same via CLI, I'm getting smtp error 500. This means, as far as I know, that there is a syntax-error.

My code-snippets:


Controller: http://codepad.org/Y8aFseau
Helpers: http://codepad.org/aOa8XKEP
CLI: http://codepad.org/WHW32z9A



Var-dumping $mailer gives the following result:
http://codepad.org/T0TUQzY3

Thanks for your support :-)
Reply all
Reply to author
Forward
0 new messages