[RESOLVED] 'Send Test Email' works, website generated emails don't work

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
Running hmailserver on IIS 8, windows 8 server. Note, SSL is not set/enabled on hmailserver, I have tried with SSL and had the same outcome.

The 'Send Test Email' function works fine, and I get the email through:


If I run a test order, contact form, email a friend, etc. it fails with the following error in the log:

Log level:   Error

Short message:   Error sending e-mail. The SMTP server requires a secure connection or the client was not authenticated. The server response was: Authentication required

Full message:   System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: Authentication required at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception) at System.Net.Mail.SmtpClient.Send(MailMessage message) at Nop.Services.Messages.EmailSender.SendEmail(EmailAccount emailAccount, String subject, String body, String fromAddress, String fromName, String toAddress, String toName, String replyTo, String replyToName, IEnumerable`1 bcc, IEnumerable`1 cc, String attachmentFilePath, String attachmentFileName, Int32 attachedDownloadId) at Nop.Services.Messages.QueuedMessagesSendTask.Execute()

Any advice would be appreciated.

THANKS,
Jade
8 years ago
I have fixed this.
I had added a new email account, made it the default, and left the test one there. However, even though it was set as the default it was still attempting to send through the [email protected] account *grumbles* Not sure what the "Mark as default email account" is for if it doesn't make it the default account to send mail through?!

Possible fix (which worked for me)
Go to Admin > System > Message Queue and check the from address.
If it's displaying as the wrong address (i.e. [email protected]) go to Admin > Configuration > Email Accounts. On there, go in to the incorrect account and change it to the correct details. (i.e. override it completely). -deleteing the test account might also work, but I was taking the safe option.
7 years ago
Jadelina wrote:
I have fixed this.
I had added a new email account, made it the default, and left the test one there. However, even though it was set as the default it was still attempting to send through the [email protected] account *grumbles* Not sure what the "Mark as default email account" is for if it doesn't make it the default account to send mail through?!

Possible fix (which worked for me)
Go to Admin > System > Message Queue and check the from address.
If it's displaying as the wrong address (i.e. [email protected]) go to Admin > Configuration > Email Accounts. On there, go in to the incorrect account and change it to the correct details. (i.e. override it completely). -deleteing the test account might also work, but I was taking the safe option.


I checked the Database table EmailAcount and there was no default (field UseDefaultCredentials).

Setting this on NP Dashboard won't work. (Version3.8)
6 years ago
I wanted thank Jadelina for the posted fix. Indeed the original default email was continuing to express itself as the default "from" email address. I entered my working email credentials into the default mail settings. Like Jadeline I didn't want to risk deleting that configuration. It's funny but the settings that work and pass mail in the account I set up do not work in the default account but this fixes the error issue.
6 years ago
I did a google search for this error message and found this thread.

If anyone else ends up here because a GMail address isn't sending out emails, check your security warnings in GMail.  I had to go in and confirm that the server's IP address was authorized to send email.
4 years ago
I also wanted to thank Jadelina for her response.  Even though I setup another email address that would actually authenticate, and set it as the default the system still wanted to use the email address that wasn't the default ([email protected]) to send emails (receipts). I had to delete [email protected] and then it used the email account I had setup to send email.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.