Email Errors - AC not sending ANY emails

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
hassonmike
Lieutenant (LT)
Lieutenant (LT)
Posts: 76
Joined: Tue Apr 19, 2011 2:13 pm
Contact:

Email Errors - AC not sending ANY emails

Post by hassonmike » Fri Aug 12, 2011 8:35 am

I happened to browse into the error log and notice a bunch of messages like these "


8/8/2011 5:37:18 PM Warn Error sending email with subject 'Confirmation - Order Number 9433'. Failure sending mail.; Unable to read data from the transport connection: net_io_connectionclosed.

8/8/2011 4:54:28 PM Warn Error sending email with subject 'Customer added a note to Order Number 9191'. Failure sending mail.; Unable to read data from the transport connection: net_io_connectionclosed.



There is one for every email that should have been sent out since monday morning. No changes have been made that I am aware of. Is this is a server issue? What can I do about this?

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Email Errors - AC not sending ANY emails

Post by Katie » Sat Aug 13, 2011 7:46 am

Hello,

If the email has been working up until now, then it's likely an issue with your email server. This is a communication issue. Have you gone into the email config area and tried using the Test Email feature? This might help narrow down the issue so you know if it is completely failing, or if it is working sometimes with error.

If you search at google, you will likely find the answer for this issue. Here is one example -

http://forums.asp.net/t/924682.aspx/1/1 ... tionclosed

From this discussion, there were a couple possible solutions to try. From my experience, I would look at the email server and see if something was changed recently.

Good Luck,
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
hassonmike
Lieutenant (LT)
Lieutenant (LT)
Posts: 76
Joined: Tue Apr 19, 2011 2:13 pm
Contact:

Re: Email Errors - AC not sending ANY emails

Post by hassonmike » Mon Aug 15, 2011 12:34 pm

Thank you for your response. The mail server was the first thing I checked, and nothing has changed, the email account being used is fully able to send and receive emails on its own, and the credentials used in AC have been checked and rechecked.

I have searched the web, but most of the information (including the link you gave) refers to manually configuring the mail server, but because ours is hosted, I don't think that most of that applies/I am not sure how to apply it.

Could the web UI not be interfacing properly with the config? Could AC be blocking this somehow? All connections seem good to/from my mail server, so Im not sure what/where else to look.

User avatar
mikek
Commander (CMDR)
Commander (CMDR)
Posts: 112
Joined: Wed Oct 15, 2008 9:30 pm
Location: Boston, MA
Contact:

Re: Email Errors - AC not sending ANY emails

Post by mikek » Mon Aug 15, 2011 1:00 pm

What this error means is that System.net.mail was unable to find the smtp server.

To resolve the issue, check that the SMTP Server Host in AbleCommerce control panel settings resolves to the correct smtp server IP. You can also try to replace the smtp host name
with the actual smtp server IP and see if it still throws the same exception.
Mike Kolev

User avatar
hassonmike
Lieutenant (LT)
Lieutenant (LT)
Posts: 76
Joined: Tue Apr 19, 2011 2:13 pm
Contact:

Re: Email Errors - AC not sending ANY emails

Post by hassonmike » Mon Aug 15, 2011 1:08 pm

Thanks for the suggestion - I used the SMTP server host IP address in AC but it does still give the same error. I have also verified the IP resolves by using it through a web browser to access the mail server.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Email Errors - AC not sending ANY emails

Post by Katie » Tue Aug 16, 2011 8:19 am

Something had to have changed prior to last Monday. You just need to do some detective work and figure out what it was...does the email server require authentication, and if so, have the username & password changed? Does the server require SSL, and if so, are the certificate and the root authority certificates all updated? I guess these would be questions to ask your host.

When you swapped out the host name with the IP, the test of the email server is part of that function. In AC, if there were no connection, it would have failed and a red text message would have appeared on the page. Do you see the "SAVE & TEST CONFIG" button? The program won't accept the values entered unless they are actually working. Did you get a different message here? You should have.

Thanks,
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
hassonmike
Lieutenant (LT)
Lieutenant (LT)
Posts: 76
Joined: Tue Apr 19, 2011 2:13 pm
Contact:

Re: Email Errors - AC not sending ANY emails

Post by hassonmike » Tue Aug 16, 2011 10:14 am

I find these out from the host - in the meantime, D do not get any red text when saving and testing, as you are suggest, instead, I get green text saying "Server configuration was updated but the test resulted in error: Failure sending mail."

User avatar
hassonmike
Lieutenant (LT)
Lieutenant (LT)
Posts: 76
Joined: Tue Apr 19, 2011 2:13 pm
Contact:

Re: Email Errors - AC not sending ANY emails

Post by hassonmike » Thu Aug 18, 2011 5:22 pm

Though it seems that no chnages have been made to the mail server, switching to a diffrent mail server seems to have resolved the issue. Thank you all for your help.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Email Errors - AC not sending ANY emails

Post by Katie » Fri Aug 19, 2011 10:28 am

Thanks for letting us know. I'm glad it's working for you now...

I did some more digging and wondered if it could have been a permissions issue. This is copied from another forum, and I thought it might be good info to have here as well....just in case this was the issue.
The problem turned out to be a permissions issue. I'm in the process of porting websites from a Windows 2000 box to a Windows 2008 platform and I missed a trick on the SMTP service config in Windows 2008.

Go to Internet Information Services (IIS) 6.0 Manager > SMTP Virtual Server > Right-click Properties > Access tab > Authentication button.

By default in Windows 2000, all the boxes are ticked (checked), but in Windows 2003 and Windows 2008 only Anonymous access is ticked. You have to select Integrated Windows Authentication to be able to send email over the network (ie not via the pickup directory nor exposing credentials in web.config). I also chose to untick Anonymous access because it seemed like a security hole waiting to be exploited.

You do not need to enable relaying for localhost or the IP address of this host computer. Relaying is usually really bad news, so unless you have strong IT comms skills avoid it like the plague.

This authentication configuration also works with a selected IP address or the All unassigned (see the General tab).
No need to respond. I just wanted to post this since we're seeing a lot of migrations from Windows 2000 to Windows 2008.

Thanks,
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
hassonmike
Lieutenant (LT)
Lieutenant (LT)
Posts: 76
Joined: Tue Apr 19, 2011 2:13 pm
Contact:

Re: Email Errors - AC not sending ANY emails

Post by hassonmike » Fri Aug 19, 2011 1:39 pm

Curious, where in the site code do email setting get saved?

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

Re: Email Errors - AC not sending ANY emails

Post by mazhar » Mon Aug 22, 2011 2:45 am

Emails settings are being stored in ac_StoreSettings table in Database. Using API code you can save a setting like

Code: Select all

Token.Instance.Store.Settings.SetValueByKey("key","value")
while you get value by doing something like

Code: Select all

string value = Token.Instance.Store.Settings.GetValueByKey("key")

Anklejive
Ensign (ENS)
Ensign (ENS)
Posts: 13
Joined: Sat Oct 12, 2013 4:46 pm

Re: Email Errors - AC not sending ANY emails

Post by Anklejive » Fri Mar 27, 2015 3:39 pm

I am using AC7 and noticed that in the past several months emails the site is tasked with sending are not getting to my customers.

A customer wrote me to tell me that he was trying to retrieve his password and never got an email notification.

Here are some recent entries in the log:
2/17/2015 12:26:13 PM Warn Error sending email with subject 'Password Reset Request at Anklejive'. Mailbox unavailable. The server response was: <z.harper1989@yahoo.com> No such user here
3/25/2015 8:51:40 AM Warn Error sending email with subject 'Confirmation - Order Number 11088'. Mailbox unavailable. The server response was: <katesmom99@cox.net> No such user here
3/25/2015 10:36:40 AM Warn Error sending email with subject 'Your order has shipped from Anklejive'. Mailbox unavailable. The server response was: <katesmom99@cox.net> No such user here
3/25/2015 10:42:55 AM Warn Error sending email with subject 'Anklejive: SMTP Settings Updated'. Mailbox unavailable. The server response was: <kevin@stjohngroup.com> No such user here

All of these email addresses are accurate and confirmed.

I double checked to see if my password was correct and it was.

Any ideas?

Thanks,
Kevin

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Email Errors - AC not sending ANY emails

Post by Katie » Fri Mar 27, 2015 4:41 pm

There must be some issue with you email server configuration. What happens when you use the test feature from the email settings page? Here is a link to the docs if you need to know more -

http://help.ablecommerce.com/mergedProj ... ttings.htm

It's really hard to say what the problem is.
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

Anklejive
Ensign (ENS)
Ensign (ENS)
Posts: 13
Joined: Sat Oct 12, 2013 4:46 pm

Re: Email Errors - AC not sending ANY emails

Post by Anklejive » Sat Mar 28, 2015 8:06 am

Thanks, Katie. I did, and received an email: The SMTP Settings for Anklejive were recently updated. Receipt of this email confirms the new settings are working properly.

Could it be something else?

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Email Errors - AC not sending ANY emails

Post by Katie » Sun Mar 29, 2015 7:46 am

The error messages indicate "The server response was: <xxx@xxx> No such user here".

This is a response from the server, not from AbleCommerce. We are just giving you the message as it is given to us. It wouldn't even matter if that email existed within AbleCommerce anywhere. You can send any email to any person who has a valid box.

Have you tried sending an email to any of these addresses outside of AbleCommerce, and also using the FROM address that is used within the AC email templates?
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

Anklejive
Ensign (ENS)
Ensign (ENS)
Posts: 13
Joined: Sat Oct 12, 2013 4:46 pm

Re: Email Errors - AC not sending ANY emails

Post by Anklejive » Mon Apr 06, 2015 7:30 am

Hi, Katie. All the email addresses are valid. This morning I tried to test it by retrieving my own password using the "Forgot User Name or Password?" link on the login.aspx page.

I checked the error log after having completed the information and I saw this at the top: Failure sending mail.; Unable to read data from the transport connection: net_io_connectionclosed.

Thoughts?

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Email Errors - AC not sending ANY emails

Post by Katie » Mon Apr 06, 2015 8:34 am

Hi,

I tried to google the error message, and this page had quite a few possible things to look for.

https://social.msdn.microsoft.com/Forum ... tionclosed

This is really outside of AbleCommerce, so you need to have the person who maintains your email server take a look at this message as well.

Thanks
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

Post Reply