It's all well and good, but I have a production system that sometimes refuses 
to send order confirmation emails out, even though the format of them are 
identical and the recipient gets other emails. Have spent a disproportionate 
amount of time trying to locate them but its hard when its a bit random. I'm 
not blaming the email component - I just wish there was a better way of 
tracking down those sort of errors.

Jeremy Burns
Class Outfit

[email protected]
http://www.classoutfit.com

On 5 Oct 2010, at 18:09, j.blotus wrote:

> 99% of the problems I ever had with EmailComponent were an environment
> issue!
> 
> On Oct 5, 12:51 pm, Jeremy Burns | Class Outfit
> <[email protected]> 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
>> 
>> [email protected]http://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 [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected] 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at 
> http://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 [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to