99% of the problems I ever had with EmailComponent were an environment
issue!

On Oct 5, 12:51 pm, Jeremy Burns | Class Outfit
<jeremybu...@classoutfit.com> wrote:
> Resolved - but I'm not sure why.
>
> I did some digging around and found this terminal command:
>
> sudo rm /private/var/mail/<username>
>
> This cleared down my unix mail box on my Mac (which is a bit dramatic because 
> it could have had important stuff in it - but I doubt it), but the emails 
> immediately began to flow through.
>
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.comhttp://www.classoutfit.com
>
> On 5 Oct 2010, at 17:02, Jeremy Burns wrote:
>
>
>
> > I am using the Email component with varying levels of success. A
> > single function that can send a number of emails sometimes works,
> > sometimes fails. And yes, I am using $this->Email->reset();
>
> > In one case I have two very similar emails that are set up the same:
>
> >    $this->Email->reset();
> >    $this->Email->from = 'an-email-address';
> >    $this->Email->to = 'another-email-address';
> >    $this->Email->sendAs = 'html';
> >    $this->Email->template = 'template_name';
> >    $this->Email->subject = 'A subject';
> >    /* $this->Email->delivery = 'debug'; - this outputs a reasonable
> > looking email text */
>
> >    $this->Email->send();
>
> > I can't see any material difference between the two; the templates
> > contain plain old html, the email addresses are valid (and sometimes
> > exactly the same on both emails) and nothing else looks odd.
>
> > Looping through the code I can see that Cake thinks all emails have
> > been sent. One of the emails always arrives, the other does not.
>
> > How do I go about debugging this and finding out why some emails work,
> > and others don't?
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others 
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups 
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to