I am making progess on the transition to the new library.
2 things so far.
1) If I try to compile the webmail project i get compile errors that DO NOT result in runtime errors.
menu_contacts.aspx has this kind of code
if(text == ""){
alert("<% Response.Write(m_WTxt["74"]); /*No Open Person*/ %>!!!");
}
This is a clever trick to get the message box content to be dynamic with code that would never compile in .Net.
Do you have any recommendations for other approaches that would compile and produce the same result?
2) I have been unsuccesful in sending mail so far.
With :::
SmtpClientEx.QuickSendSmartHost(Application["SMTPServer"].ToString(),25,"",Application["SMTPServerUserName"].ToString(),Application["SMTPServerPassword"].ToString(),m);
Result is 'Authentication isn't supported.' even after I included a valid username and password.
Authentication isn't supported. ---- at LumiSoft.Net.SMTP.Client.SmtpClientEx.Authenticate(String userName, String password) at LumiSoft.Net.SMTP.Client.SmtpClientEx.QuickSendSmartHost(String smartHost, Int32 port, Boolean ssl, String hostName, String userName, String password, String from, String[] to, Stream messageStream) at LumiSoft.Net.SMTP.Client.SmtpClientEx.QuickSendSmartHost(String smartHost, Int32 port, Boolean ssl, String hostName, String userName, String password, Mime message) at LumiSoft.Net.SMTP.Client.SmtpClientEx.QuickSendSmartHost(String smartHost, Int32 port, String hostName, String userName, String password, Mime message) at ASP.compose_aspx.SendMail() in e:\InetPub\WebMail\WebMail\compose.aspx:line 153
With :::
SmtpClientEx.QuickSendSmartHost(Application["SMTPServer"].ToString(), 25, "mail.mydomain.com", m);
Result is 'Unable to relay'.
550 5.7.1 Unable to relay for
test2@mydomain.com ---- at LumiSoft.Net.SMTP.Client.SmtpClientEx.AddRecipient(String recipientEmail) at LumiSoft.Net.SMTP.Client.SmtpClientEx.QuickSendSmartHost(String smartHost, Int32 port, Boolean ssl, String hostName, String userName, String password, String from, String[] to, Stream messageStream) at LumiSoft.Net.SMTP.Client.SmtpClientEx.QuickSendSmartHost(String smartHost, Int32 port, Boolean ssl, String hostName, String userName, String password, Mime message) at LumiSoft.Net.SMTP.Client.SmtpClientEx.QuickSendSmartHost(String smartHost, Int32 port, String hostName, Mime message) at ASP.compose_aspx.SendMail() in d:\LumisoftWebMail\WebMail\compose.aspx:line 153
On the server I am requiring authentication - so the unable to relay message makes sense. But after including the username and password the 'Authentication isn't supported doesn't make sense.
Any clues on this? Am I using the correct methods from the library?
Thanks,
Richard