Bcc field issue in customer order notification template

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
sasireka.m
Ensign (ENS)
Ensign (ENS)
Posts: 10
Joined: Thu Jan 27, 2011 11:13 pm

Bcc field issue in customer order notification template

Post by sasireka.m » Wed Aug 03, 2011 5:10 am

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.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Bcc field issue in customer order notification template

Post by AbleMods » Thu Aug 04, 2011 7:38 am

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?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

sasireka.m
Ensign (ENS)
Ensign (ENS)
Posts: 10
Joined: Thu Jan 27, 2011 11:13 pm

Re: Bcc field issue in customer order notification template

Post by sasireka.m » Mon Aug 08, 2011 1:38 am

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

Post Reply