# Error in email notifications Build 2859

**URL:** https://www.finalbuilder.com/forums/t/error-in-email-notifications-build-2859/5888
**Category:** Bugs
**Created:** [January 24, 2014, 12:50pm UTC](https://www.finalbuilder.com/forums/t/error-in-email-notifications-build-2859/5888 "2014-01-24T12:50:55Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![lomov](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/d6d6ee/32.png) [@lomov](https://www.finalbuilder.com/forums/u/lomov)
#### Post date: [January 24, 2014, 12:50pm UTC](https://www.finalbuilder.com/forums/t/error-in-email-notifications-build-2859/5888/1 "2014-01-24T12:50:55Z")

</div>

Hi!  
  
Is any way to resolve this?  
  
After email notification setup&nbsp;I received some errors in event log  
  
Validation email was sended and received without any errors.  
  
Failed to send email notification:  
Continua.Shared.Exceptions.EmailException: Failed to deliver email message to _ **@** _._ **&nbsp;** _  
Mail message assembly failed (error code is 1) —\> SBMIME.EElMIMEError: Mail message assembly failed (error code is 1)&nbsp;  
в SBSMTPClient.TElSMTPClient.Send(TElMessage Message)&nbsp;  
в Continua.Notification.Emailer.SendUsingSBSClient(TElSMTPClient client, TElMessage mail)&nbsp;  
— Конец трассировки внутреннего стека исключений —&nbsp;  
в Continua.Notification.Emailer.SendUsingSBSClient(TElSMTPClient client, TElMessage mail)&nbsp;  
в Continua.Notification.Emailer.Send(EmailMessage msg)&nbsp;  
в Continua.Notification.Queues.EmailQueue.SendQueuedMessages(Object args)&nbsp;  
  
  
Failed to send email notification:  
Continua.Shared.Exceptions.EmailException: Failed to deliver email message to _ **@** _.\*\*\*  
Connection lost (error code is 10054) —\> SBSimpleSSL.EElSSLClientConnectionLostError: Connection lost (error code is 10054)&nbsp;  
в SBSimpleSSL.\_\_Global.ReportConnectionLoss(Int32 ResultCode)&nbsp;  
в SBSimpleSSL.TElCustomSimpleSSLClient.DoReceive(Object Sender, Byte[]& Buffer, Int32 MaxSize, Int32& Written)&nbsp;  
в SBClient.TElSecureClient.DoReceive(Byte[]& Buffer, Int32 MaxSize, Int32& Written)&nbsp;  
в SBClient.TElSecureClient.DataAvailable()&nbsp;  
в SBSimpleSSL.TElCustomSimpleSSLClient.ReceiveData(Byte[]& Buffer, Int32& Size, Boolean ReadAll)&nbsp;  
в SBCmdSSLClient.TElCommandSSLClient.ReadFromCtl(Boolean AllowZero)&nbsp;  
в SBCmdSSLClient.TElCommandSSLClient.GetReply()&nbsp;  
в SBSMTPClient.TElSMTPClient.Login(String Domain)&nbsp;  
в Continua.Notification.Emailer.SendUsingSBSClient(TElSMTPClient client, TElMessage mail)&nbsp;  
— Конец трассировки внутреннего стека исключений —&nbsp;  
в Continua.Notification.Emailer.SendUsingSBSClient(TElSMTPClient client, TElMessage mail)&nbsp;  
в Continua.Notification.Emailer.Send(EmailMessage msg)&nbsp;  
в Continua.Notification.Queues.EmailQueue.SendQueuedMessages(Object args)

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [January 29, 2014, 7:02am UTC](https://www.finalbuilder.com/forums/t/error-in-email-notifications-build-2859/5888/2 "2014-01-29T07:02:38Z")

</div>

Hi,  
  
The messages you are seeing should be displayed as warnings in the event log e.g with a triangle icon rather than a cross.   
  
Continua actually retries sending the message 4 times, waiting 1 second between each retry. If you see a message&nbsp;“Failed to send email notification after x attempts, discarding message” or&nbsp;&nbsp;“Unexpected error while sending email notification, discarding message” then this implies that there is a problem with the setup.   
  
The&nbsp;“Failed to send email notification”&nbsp;message on its own is nothing to worry about. We will change it in the next build&nbsp;so that it is a debug only message as you don’t need to see these messages in the event log until all the retries have failed.

---

<div class="post-metadata">

### Author: ![lomov](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/d6d6ee/32.png) [@lomov](https://www.finalbuilder.com/forums/u/lomov)
#### Post date: [January 29, 2014, 9:11am UTC](https://www.finalbuilder.com/forums/t/error-in-email-notifications-build-2859/5888/3 "2014-01-29T09:11:35Z")

</div>

Hi,  
  
Thanks for reply  
  
If you say " then this implies that there is a problem with the setup." why i receive validation email by pressing “Validate” button in “Edit publisher” window without any errors??

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [January 30, 2014, 12:30pm UTC](https://www.finalbuilder.com/forums/t/error-in-email-notifications-build-2859/5888/4 "2014-01-30T12:30:45Z")

</div>

The message&nbsp;“Failed to send email notification”&nbsp;can be ignored as Continua will retry.  
  
If you see a message&nbsp;“Failed to send email notification after x attempts, discarding message” or&nbsp;&nbsp;“Unexpected error while sending email notification, discarding message” then there is a problem and we will look into this further.&nbsp;&nbsp;Are you seeing these messages?&nbsp;Are any emails being received by the recipients?  
  
If the emails are not being sent after several attempts then this suggests that there may be a problem with the content of the message. Which subscriptions are set up for this user?  
&nbsp;Have you made any changes to the tempates for the related notification types? Is the user subscribed to Event Log Messages. If so can you check if there are any other messages in the event log just before the email failure?

---

<div class="post-metadata">

### Author: ![lomov](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/d6d6ee/32.png) [@lomov](https://www.finalbuilder.com/forums/u/lomov)
#### Post date: [January 30, 2014, 11:56am UTC](https://www.finalbuilder.com/forums/t/error-in-email-notifications-build-2859/5888/5 "2014-01-30T11:56:54Z")

</div>

Hi,  
  
\> If you see a message “Failed to send email notification after x attempts, discarding message” or “Unexpected error while sending email notification, discarding message”  
\>&nbsp;then there is&nbsp;a problem and we will look into this further. Are you seeing these messages?  
Yes.  
  
Failed to send email notification after 4 attempts, discarding message:  
Continua.Shared.Exceptions.EmailException: Failed to deliver email message to _ **@** _.\*\*\*  
Mail message assembly failed (error code is 1) —\> SBMIME.EElMIMEError: Mail message assembly failed (error code is 1)&nbsp;  
в SBSMTPClient.TElSMTPClient.Send(TElMessage Message)&nbsp;  
в Continua.Notification.Emailer.SendUsingSBSClient(TElSMTPClient client, TElMessage mail)&nbsp;  
— Конец трассировки внутреннего стека исключений —&nbsp;  
в Continua.Notification.Emailer.SendUsingSBSClient(TElSMTPClient client, TElMessage mail)&nbsp;  
в Continua.Notification.Emailer.Send(EmailMessage msg)&nbsp;  
в Continua.Notification.Queues.EmailQueue.SendQueuedMessages(Object args)  
  
\> Are any emails being received by the recipients?  
No.  
  
\> If the emails are not being sent after several attempts then this suggests that there may be a problem with the content of the message. Which subscriptions are set up for this user?  
My subscription settings:  
  
 ![](https://www.finalbuilder.com/LinkClick.aspx?fileticket=19K-D4dD7QU%3d)  
Private messages was received successfully  
  
\> Have you made any changes to the tempates for the related notification types?  
No, all templates are default. In User Preferences checkbox "Receive email in HTML format&nbsp;" is unchecked.  
  
\> Is the user subscribed to Event Log Messages. If so can you check if there are any other messages in the event log just before the email failure?  
In Administration -\> Continua Server -\> Event Log I see only email notifications messages.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 31, 2014, 7:06am UTC](https://www.finalbuilder.com/forums/t/error-in-email-notifications-build-2859/5888/6 "2014-01-31T07:06:24Z")

</div>

Hi Iom   
  
 We have not been able to reproduce this error here, however we did take an update to the smtp & mime library today, please test with the next update and if it still happening then let us know.

---

<div class="post-metadata">

### Author: ![lomov](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/d6d6ee/32.png) [@lomov](https://www.finalbuilder.com/forums/u/lomov)
#### Post date: [February 17, 2014, 8:06am UTC](https://www.finalbuilder.com/forums/t/error-in-email-notifications-build-2859/5888/7 "2014-02-17T08:06:30Z")

</div>

Hi  
  
In build 2941 I received this message in Event Log  
  
Notifications&nbsp;  
  
Failed to send email notification after 4 attempts, discarding message:  
Continua.Shared.Exceptions.EmailException: Failed to deliver email message to _ **@** _.\*\*\* using new connection  
Mail message assembly failed (error code is 1). Reply from SMTP service was '250-_ **.** _.\*\*\*\* host name is unknown \*\*\*\*\*\*\*\*\*&nbsp;  
250 DSN&nbsp;  
’ —\> SBMIME.EElMIMEError: Mail message assembly failed (error code is 1)&nbsp;  
в SBSMTPClient.TElSMTPClient.Send(TElMessage Message)&nbsp;  
в Continua.Notification.Emailer.SendUsingSBSClient(TElSMTPClient client, TElMessage mail)&nbsp;  
— Конец трассировки внутреннего стека исключений —&nbsp;  
в Continua.Notification.Emailer.SendUsingSBSClient(TElSMTPClient client, TElMessage mail)&nbsp;  
в Continua.Notification.Emailer.Send(EmailMessage msg)&nbsp;  
в Continua.Notification.Queues.EmailQueue.SendQueuedMessages(Object args)&nbsp;  
  
This event has been reported 2 times.  
  
May be message ‘250 hostname is unknown’ may be ignored while sending email ?

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [February 18, 2014, 12:12pm UTC](https://www.finalbuilder.com/forums/t/error-in-email-notifications-build-2859/5888/8 "2014-02-18T12:12:05Z")

</div>

The message ‘250 hostname is unknown’ is the response from the SMTP server and is normally related to an issue with DNS or MX records.   
  
Which SMTP server are you using? &nbsp;Can you check that you can send a message to the same email address via that SMTP server using a different email client?

---

<div class="post-metadata">

### Author: ![lomov](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/d6d6ee/32.png) [@lomov](https://www.finalbuilder.com/forums/u/lomov)
#### Post date: [February 18, 2014, 7:30am UTC](https://www.finalbuilder.com/forums/t/error-in-email-notifications-build-2859/5888/9 "2014-02-18T07:30:26Z")

</div>

\> Which SMTP server are you using?  
It is our corporate e-mail server  
  
\> Can you check that you can send a message to the same email address via that SMTP server using a different email client?  
I use Windows Live Mail as email client without any errors

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [February 18, 2014, 11:34am UTC](https://www.finalbuilder.com/forums/t/error-in-email-notifications-build-2859/5888/10 "2014-02-18T11:34:21Z")

</div>

We’re not sure how we can help you any further with this. We are sending a standard email message using the&nbsp;SecureBlackbox&nbsp; component and your SMTP server is replying that hostname is not found. This suggests an issue with the network configuration, perhaps the DNS service is not able to resolve the hostname to an ip address or there is a firewall blocking access. We recommend that you investigate reasons why your SMTP server would be unable to resolve the hostname in the error message.&nbsp;

---

<div class="post-metadata">

### Author: ![lomov](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/d6d6ee/32.png) [@lomov](https://www.finalbuilder.com/forums/u/lomov)
#### Post date: [February 20, 2014, 12:12pm UTC](https://www.finalbuilder.com/forums/t/error-in-email-notifications-build-2859/5888/11 "2014-02-20T12:12:03Z")

</div>

May be message &nbsp;250-_ **.** _.\*\*\*\* host name is unknown \*\*\*\*\*\*\*\*\*&nbsp;&nbsp; is not a real error?  
  
Our system administrator said that this message may be successfully ignored while sending email.  
&nbsp;  
Could you make special build for me with more log messages in email sending&nbsp;process?
