ITsolutionWizard
asked on
email issue with custom error message
Have below error from just calling smtp server to send email.
Any ideas what happening and how to fix it?
or how can I get more information for my network guy to fix the issue?
System.Security.Authentica tion.Authe nticationE xception: The remote certificate is invalid according to the validation procedure. at System.Net.Security.SslSta te.StartSe ndAuthRese tSignal(Pr otocolToke n message, AsyncProtocolRequest asyncRequest, Exception exception) at System.Net.Security.SslSta te.CheckCo mpletionBe foreNextRe ceive(Prot ocolToken message, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslSta te.StartSe ndBlob(Byt e[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslSta te.Process ReceivedBl ob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslSta te.StartRe adFrame(By te[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslSta te.StartRe ceiveBlob( Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslSta te.CheckCo mpletionBe foreNextRe ceive(Prot ocolToken message, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslSta te.StartSe ndBlob(Byt e[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslSta te.Process ReceivedBl ob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslSta te.StartRe adFrame(By te[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslSta te.StartRe ceiveBlob( Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslSta te.CheckCo mpletionBe foreNextRe ceive(Prot ocolToken message, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslSta te.StartSe ndBlob(Byt e[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslSta te.Process ReceivedBl ob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslSta te.StartRe adFrame(By te[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslSta te.StartRe ceiveBlob( Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslSta te.CheckCo mpletionBe foreNextRe ceive(Prot ocolToken message, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslSta te.StartSe ndBlob(Byt e[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslSta te.ForceAu thenticati on(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslSta te.Process Authentica tion(LazyA syncResult lazyResult) at System.Net.TlsStream.CallP rocessAuth entication (Object state) at System.Threading.Execution Context.Ru nInternal( ExecutionC ontext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.Execution Context.Ru n(Executio nContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.Execution Context.Ru n(Executio nContext executionContext, ContextCallback callback, Object state) at System.Net.TlsStream.Proce ssAuthenti cation(Laz yAsyncResu lt result) at System.Net.TlsStream.Write (Byte[] buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Wr ite(Byte[] buffer, Int32 offset, Int32 size) at System.Net.Mail.SmtpConnec tion.Flush () at System.Net.Mail.ReadLinesC ommand.Sen d(SmtpConn ection conn) at System.Net.Mail.EHelloComm and.Send(S mtpConnect ion conn, String domain) at System.Net.Mail.SmtpConnec tion.GetCo nnection(S ervicePoin t servicePoint) at System.Net.Mail.SmtpTransp ort.GetCon nection(Se rvicePoint servicePoint) at System.Net.Mail.SmtpClient .GetConnec tion() at System.Net.Mail.SmtpClient .Send(Mail Message message) at
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
try
{
List<string> list = new List<string>();
list.Add("ryu@us.jvckenwoo d.com");
bool result = Company.B2B.Business.SmtpE mailer.Sen dEmail(lis t, "ryu@test.test.com", "", "", false);
Response.Write("Working(Y/ N): " + result);
}
catch (Exception ex)
{
Response.Write(ex);
}
}
</script>
Any ideas what happening and how to fix it?
or how can I get more information for my network guy to fix the issue?
System.Security.Authentica
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
try
{
List<string> list = new List<string>();
list.Add("ryu@us.jvckenwoo
bool result = Company.B2B.Business.SmtpE
Response.Write("Working(Y/
}
catch (Exception ex)
{
Response.Write(ex);
}
}
</script>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER