HI i am getting this exception when i want to send email. plateform is server 2008 small business server. on server there is mail exchange server also working.
Element not found. (Exception from HRESULT: 0x8002802B (TYPE_E_ELEMENTNOTFOUND))
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Element not found. (Exception from HRESULT: 0x8002802B (TYPE_E_ELEMENTNOTFOUND))
Source Error:
Line 35: message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", drMailSetting.Item("mpassword"))
Line 36: SmtpMail.SmtpServer = drMailSetting.Item("mailserver")
Line 37: SmtpMail.Send(message)
Line 38: End If
Line 39: End Sub
</div>
Regards,
Irfan Ullah
Mark as Answer to those post that helps you!
IrfanUllah
Member
61 Points
83 Posts
SMTP Problem on Small Business Server 2008
Aug 22, 2011 09:34 AM|LINK
HI i am getting this exception when i want to send email. plateform is server 2008 small business server. on server there is mail exchange server also working.
Element not found. (Exception from HRESULT: 0x8002802B (TYPE_E_ELEMENTNOTFOUND))
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Element not found. (Exception from HRESULT: 0x8002802B (TYPE_E_ELEMENTNOTFOUND))
Source Error:
Line 35: message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", drMailSetting.Item("mpassword")) Line 36: SmtpMail.SmtpServer = drMailSetting.Item("mailserver") Line 37: SmtpMail.Send(message)Irfan Ullah
Mark as Answer to those post that helps you!
IrfanUllah
Member
61 Points
83 Posts
Re: SMTP Problem on Small Business Server 2008
Aug 23, 2011 08:36 AM|LINK
i just updated my code to send email using
System.Net.Mail
before it was
System.web.Mail
Irfan Ullah
Mark as Answer to those post that helps you!