Page 1 of 1

Bcc field issue in customer order notification template

Posted: Wed Aug 03, 2011 5:10 am
by sasireka.m
Hi,

I have done the customer order notification mail template manually i.e. I sent this email by using the below code under the checkedout method of OnePageCheckout.aspx.cs page.

EmailTemplateCollection emailTemplates = EmailTemplateDataSource.LoadForCriteria(" Name = 'Customer Order Notification' ");
if (emailTemplates.Count > 0)
{
bool TaxEnabled = TaxHelper.IsATaxProviderEnabled();
emailTemplates[0].Parameters.Add("taxenabled", TaxEnabled);
emailTemplates[0].Parameters.Add("store", Token.Instance.Store);
emailTemplates[0].Parameters.Add("order", order);
emailTemplates[0].Parameters.Add("customer", order.User);
emailTemplates[0].Parameters.Add("payments", order.Payments);
emailTemplates[0].Parameters.Add("PaymentDetails", paymentmethods.ToString());
emailTemplates[0].Send();
}

Also i have unchecked the "Order was placed" event under the event triggers section through Administration > Configure > Email > Templates > Edit Email Template page.

and I have given the mail id for eg: email1@test.com,email2@test.com mail ids in Bcc field through Administration > Configure > Email > Templates > Edit Email Template page -> message content.

The bcc field email ids are not receiving any mails.

If the customer placed an order then the customer get three mails but the email1 & email2 users didn't receive any mail.

Note : I have ablecommerce VERSION: 7.0.5.14053.

please guide me :(

Thanks in advance.

Re: Bcc field issue in customer order notification template

Posted: Thu Aug 04, 2011 7:38 am
by AbleMods
Not sure why the BCC isn't working. Have you tried manually adding a BCC in your code to see if that'll do it?

If the customer is getting three emails, is your email template code getting fired 3 times?

Re: Bcc field issue in customer order notification template

Posted: Mon Aug 08, 2011 1:38 am
by sasireka.m
Hi Joe,

Thanks a lot for your reply.

I haven't check the bcc through my code.

I will check this and let you know the same.

Thanks
Sasireka