This project is read-only.

SMTP host was not specified Error

Sep 15, 2014 at 3:06 PM
I am getting SMTP host was not specified error.Please give me solution for this.

InnerException = No Inner Exception Found
Message = The SMTP host was not specified.
Source : System
StackTrace : at System.Net.Mail.SmtpClient.CheckHostAndPort()
at System.Net.Mail.SmtpClient.get_ServicePoint()
at System.Net.Mail.SmtpClient.Dispose(Boolean disposing)
at System.Net.Mail.SmtpClient.Dispose()
at IQEmailExtractor.EmlExtension.ToEMLStream(MailMessage msg, Stream str)
at IQEmailExtractor.EmlExtension.SaveMailMessage(MailMessage msg, String filePath)
at IQEmailExtractor.Program.ConnectToEmailServer(List`1 objLstGenericInvoicesImport)
TargetSite : Void CheckHostAndPort()
HelpLink : No HelpLink Found
Sep 16, 2014 at 1:46 AM

I could not reprodcut your bug in my environment.
Please show me your reproduct code.
It help me to solve your problem.

Sep 25, 2014 at 7:26 AM
Hi Higty... Thanks for your reply...

Well I have 2 servers we will name it X & Y..... Now when i deployed my package which is console application on the web server "X" it was working perfectly but when I deployed on the Data Base server "Y" it is currently give me SMTP host was not specified Error

Now the most challenging thing I think something is blocking on my database "Y" server what info should I shared with you to reproduce the issue. Also let me know what port should i open on the firewall to check about my problem.
Oct 24, 2014 at 9:54 AM
Hi Highty I solved the issue.

There was an issue with the publish. so I rebuilding the exe from another machine solved the issue.