Email Templates not working with customer/merchant
-
- Lieutenant (LT)
- Posts: 66
- Joined: Mon Jun 22, 2009 5:49 pm
Email Templates not working with customer/merchant
Using AC Gold, I'm finding that using the keywords customer or merchant in the To and From fields doesn't work. Only when I change them to a valid email address, do they get sent out. The store has a valid default email address set.
Thanks
Rick
Thanks
Rick
Re: Email Templates not working with customer/merchant
Where are you sending the emails from? The order details screen or somewhere else?
Ryan A.
Scott's Bait and Tackle
http://store.scottsbt.com
Work In Progress
Able Gold R10
Bootstrap 3.3
Scott's Bait and Tackle
http://store.scottsbt.com
Work In Progress
Able Gold R10
Bootstrap 3.3
-
- Lieutenant (LT)
- Posts: 66
- Joined: Mon Jun 22, 2009 5:49 pm
Re: Email Templates not working with customer/merchant
These are being sent by triggers, such as when the customer places an order or an order is shipped. It also doesn't seem to be sending to the CC and BCC fields either. I've checked my spam folder.
Rick
Rick
Re: Email Templates not working with customer/merchant
Which Ablecommerce build are you using?
-
- Lieutenant (LT)
- Posts: 66
- Joined: Mon Jun 22, 2009 5:49 pm
Re: Email Templates not working with customer/merchant
Using Gold version. Customer seems to work now but it's ignoring the addresses in CC and BCC.
Re: Email Templates not working with customer/merchant
There was an issue with CC and BCC when sending the email via admin in R8 and prior Gold versions. This has been fixed in R9. If you are facing the same issue, you can try the following fix:
Open Website/Admin/UserControls/SendEmail.ascx, locate the following
and replace with
Similarly Open the code-behind file i.e. Website/Admin/UserControls/SendEmail.ascx.cs, locate the following code inside GetMailMergeTemplate() method
and replace with
Also locate the following code inside EmailTemplates_SelectedIndexChanged event
and replace with
Hope this helps.
Open Website/Admin/UserControls/SendEmail.ascx, locate the following
Code: Select all
<tr>
<th style="width:90px" valign="top">
<asp:Localize ID="ToAddressLabel" runat="Server" Text="Send To:" EnableViewState="false"></asp:Localize>
</th>
<td>
<asp:Literal ID="ToAddress" runat="Server" EnableViewState="false"></asp:Literal>
</td>
</tr>
Code: Select all
<tr>
<th style="width:90px" valign="top">
<asp:Localize ID="ToAddressLabel" runat="Server" Text="Send To:" EnableViewState="false"></asp:Localize>
</th>
<td>
<asp:Literal ID="ToAddress" runat="Server" EnableViewState="false"></asp:Literal>
</td>
</tr>
<tr>
<th>
<asp:Localize ID="CCAddressLabel" runat="Server" Text="Send CC To:" EnableViewState="false"></asp:Localize>
</th>
<td>
<asp:TextBox ID="CCAddress" runat="Server" MaxLength="250" Width="250px"></asp:TextBox>
</td>
</tr>
<tr>
<th>
<asp:Localize ID="BCCAddressLabel" runat="Server" Text="Send BCC To:" EnableViewState="false"></asp:Localize>
</th>
<td>
<asp:TextBox ID="BCCAddress" runat="Server" MaxLength="250" Width="250px"></asp:TextBox>
</td>
</tr>
Code: Select all
MailMergeTemplate mergeTemplate = new MailMergeTemplate();
Code: Select all
MailMergeTemplate mergeTemplate = new MailMergeTemplate();
mergeTemplate.CCList = CCAddress.Text;
mergeTemplate.BCCList = BCCAddress.Text;
Code: Select all
MailAddress fromAddress = emailTemplate.ParseAddress(emailTemplate.FromAddress);
Code: Select all
MailAddress fromAddress = emailTemplate.ParseAddress(emailTemplate.FromAddress);
CCAddress.Text = emailTemplate.CCList;
BCCAddress.Text = emailTemplate.BCCList;
-
- Lieutenant (LT)
- Posts: 66
- Joined: Mon Jun 22, 2009 5:49 pm
Re: Email Templates not working with customer/merchant
Thanks but this is not the problem. I'm referring to emails going out by a trigger, not from an admin page. Still need help.
Re: Email Templates not working with customer/merchant
Hello Ricksilver,
Which gold build are you using? Looking for r1-9 number. This way I can try to look at the code for that version.
Which gold build are you using? Looking for r1-9 number. This way I can try to look at the code for that version.
Ryan A.
Scott's Bait and Tackle
http://store.scottsbt.com
Work In Progress
Able Gold R10
Bootstrap 3.3
Scott's Bait and Tackle
http://store.scottsbt.com
Work In Progress
Able Gold R10
Bootstrap 3.3
-
- Lieutenant (LT)
- Posts: 66
- Joined: Mon Jun 22, 2009 5:49 pm
Re: Email Templates not working with customer/merchant
GoldR9 (build 7670)