Error sending email from Error Log

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
tachia
Lieutenant (LT)
Lieutenant (LT)
Posts: 61
Joined: Tue Dec 30, 2008 6:30 pm

Error sending email from Error Log

Post by tachia » Mon Nov 30, 2009 12:37 pm

Hello,

I had an issue when we changed hosting companies and the email server was not sending emails because authinication issues, becasue the password had changed. After I updated the password, I have many order confirmations, shipping notices and password reset request that did not go out to customers. I

Now that it's corrected, is there a way to send these out automatically. There are no usernames or orders associated with the password resets, is there a way to get additional details on these customers so that I can send these to the customers?

Thanks.

User avatar
Shopping Cart Admin
AbleCommerce Admin
AbleCommerce Admin
Posts: 3055
Joined: Mon Dec 01, 2003 8:41 pm
Location: Vancouver, WA
Contact:

Re: Error sending email from Error Log

Post by Shopping Cart Admin » Mon Nov 30, 2009 3:06 pm

Hello,

There isn't any way for AbleCommerce to know which ones haven't been sent. From the order admin you can resend the order notification to the customers whom ordered during the time the email server credentials were off.
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

tachia
Lieutenant (LT)
Lieutenant (LT)
Posts: 61
Joined: Tue Dec 30, 2008 6:30 pm

Re: Error sending email from Error Log

Post by tachia » Mon Nov 30, 2009 3:49 pm

Thanks for the response. I can resend the order/shipment emails manually, which will be timeconsuming. But customers that requested "Password Reset" and other updates that are not shown by customer name/order numbers, I can send those request without knowing.

I did notice a table called "Error Message" but I could not locate a similar table with customer email or order numbers to help with the others. Is there a table that has this data?

Thanks.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Error sending email from Error Log

Post by mazhar » Tue Dec 01, 2009 8:50 am

No there is no table with this information. You can't resend those requests.

websteropg
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Wed Jun 10, 2009 11:45 am
Location: Novato, CA
Contact:

Re: Error sending email from Error Log

Post by websteropg » Tue Dec 01, 2009 3:14 pm

Mike -

You said "From the order admin you can resend the order notification to the customers whom ordered during the time the email server credentials were off."

Specifically, what steps would you take in the admin to do that? When I go to any order I don't see a way to send a confirmation email.

thanks,
Richard

User avatar
Shopping Cart Admin
AbleCommerce Admin
AbleCommerce Admin
Posts: 3055
Joined: Mon Dec 01, 2003 8:41 pm
Location: Vancouver, WA
Contact:

Re: Error sending email from Error Log

Post by Shopping Cart Admin » Tue Dec 01, 2009 3:22 pm

Hello Richard,

Get to an order detail page in the admin sections:

Administration > Orders > View Order #XXXX

Click on the linked email address in the bill to section and it will take you to the page where you can select an email.
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

websteropg
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Wed Jun 10, 2009 11:45 am
Location: Novato, CA
Contact:

Re: Error sending email from Error Log

Post by websteropg » Tue Dec 01, 2009 4:05 pm

Thanks Mike, that's really good stuff!

It's pretty well hidden behind that link, since the edit icon next to the email address doesn't lead you there. A suggestion -- it would be great if there was some indication like a button or text link that said something like "Send Message".

Thanks for the rapid response.
= Richard =

websteropg
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Wed Jun 10, 2009 11:45 am
Location: Novato, CA
Contact:

Re: Error sending email from Error Log

Post by websteropg » Fri Dec 11, 2009 12:04 pm

Mike -

I've been using the mechanism you pointed out to successfully re-send out Order Confirmations emails. However, when I try to use the "Lost Password" option and send out that kind of email, the variables ($customer.UserName and ${resetPasswordLink}) go out literally as those strings, not as the intended values resolved from the database -- hence those emails are of no value to customers. This is the second most common request we get from customers for sending out specific emails, so it's important.

Any idea why the variables are not being resolved with values when sent from this location? Suggestions for fixing it?

thanks,
Richard

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Error sending email from Error Log

Post by mazhar » Mon Dec 14, 2009 5:56 am

Manual Email ability provided on order summary page is much specific to Email related to order for example order confirmation etc and doesn't work for some templates for which data is not available in that context. In a work around you can modify your Admin/Orders/Email/SelectTemplate.aspx and Admin/Orders/Email/SelectTemplate.aspx.cs files. Edit your Admin/Orders/Email/SelectTemplate.aspx file and locate following line

Code: Select all

</asp:Content>
and updater it as below

Code: Select all

    <br />
    <div class="section" style="padding:0 0 2px 0;">
        <div class="header">
            <h2 class="commonicon"><asp:Localize ID="GeneralCaption" runat="server" Text="User Password Reset"></asp:Localize></h2>
        </div>
        <div class="content">
            <table class="inputForm">
                <tr>
                    <th class="rowHeader">
                        <asp:Label ID="StoreNameLabel" runat="Server" Text="Triigers password reset Email to user:" AssociatedControlID="RequestPasswordReset" ToolTip="Triggers reset password Email"></asp:Label>
                    </th>
                    <td>
                        <asp:Button ID="RequestPasswordReset" runat="server" onclick="RequestPasswordReset_Click" Text="Change Password" CausesValidation="false" />
                    </td>
                </tr>
                <tr>
                    <asp:Label ID="SuccessMessage" SkinID="GoodCondition" runat="server"></asp:Label>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
Then edit its cs or code file and add following code just above the last curly brace

Code: Select all

protected void RequestPasswordReset_Click(object sender, EventArgs e)
    {
        Order order = OrderDataSource.Load(PageHelper.GetOrderId());
        if (order != null)
        {
            order.User.GeneratePasswordRequest();
            SuccessMessage.Text = "Message Sent";
        }
    }

Post Reply