he wants to use it inside a shell, so he has to use the CakeEmail class (and not the compontent!)
take a look at this question (as he already figured it out pretty good):
the only thing missing is that he should pass some settings to the class (in this case SMTP to send emails via this protocol)
other than that is is fully functional
also note that you should set the domain manually for Emails sent via CLI
@see http://cakephp.lighthouseapp.com/projects/42648/tickets/2698-cakeemail-messageid-in-cli-environment
I'm using cake 2.1 and I need to send emails by a Shell Application. I
found no documentation about it. How can I do it?
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment