Take the 2-minute tour ×
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It's 100% free, no registration required.

This one is confusing me and I'm wondering if any CartThrob experts out there have experienced this and have a solution.

My custom email notification and admin email notifications, both triggered by the "successful transaction" event, are identical to one another, except that the "to" line for the admin email is a static email address, while the "to" line for the custom email uses the {customer_email} global variable.

If I am logged into the CP and visit my order form in another tab to run a test transaction, the transaction is completed correctly and both the admin and custom emails are received (and admin email to the static email address and the customer email to the dynamic user-entered email address).

However, if I log out of the CP and visit the form, submitting a test transaction, only the admin email notification is received. Is there some reason that I'm missing that would cause this? A setting somewhere in CartThrob that I have missed? I have "User Must Be Logged In?" set to "no" and I do have a member ID for an "anonymous" user set for the "Logged Out Member ID" setting.

share|improve this question
    
In the CT notification settings, have you switched on the email log to see if both emails are attempted by the system? Joe –  joedixon Jan 18 '13 at 16:07
    
I've turned "CP Logging enabled?" to yes. Then submitted a test order - where would i go to see the email log? –  Jean St-Amand Jan 18 '13 at 17:13
    
Joe, I moved your answer to a comment since it's a followup question and not a direct answer. Please feel free to post a direct answer with specific how-to instructions. –  Anna_MediaGirl Jan 19 '13 at 2:34
    
Ah sorry!! You need to look directly in the exp_cartthrob_email_log database table. You could use phpmyadmin or equivalent to do this. –  joedixon Jan 20 '13 at 11:40
    
Was this ever resolved? I've been having a similar problem. –  Ponder The Web Jan 21 at 22:21
add comment

1 Answer 1

Are you sure you have the {customer_email} field displaying, and there is data in it when it's processed? Turn on CT Debugging and just before you submit to get the email, check this field is complete.

share|improve this answer
    
It's not in the template it's in the "to" email address setting as a variable. It processes correctly if I am logged into the control panel, but if I'm logged out, nothing. If i use the same email address that i used in my test on the front end in the "to" email setting, it comes through. So it's sending the email, but it's not parsing the {customer_email} variable when I'm not logged into the control panel. –  Jean St-Amand Jan 18 '13 at 17:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.