Web.Mail - Configuration Error.
-
Hi Friends, I developed a mail application in C#.Net. I am using gmail account to send the mail. Its working fine in my system,But not on other (of same config). Its throwing an exception "The SMTP server name is required, and was not found in the configuration source". Please help me.
Reagards Shiva
-
Hi Friends, I developed a mail application in C#.Net. I am using gmail account to send the mail. Its working fine in my system,But not on other (of same config). Its throwing an exception "The SMTP server name is required, and was not found in the configuration source". Please help me.
Reagards Shiva
Shivarudrayya H wrote:
Its throwing an exception "The SMTP server name is required, and was not found in the configuration source".
Exception clearly says what is the problem. please check that SMTP Server name and configuration that where you trying to run the application.
Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"
-
Shivarudrayya H wrote:
Its throwing an exception "The SMTP server name is required, and was not found in the configuration source".
Exception clearly says what is the problem. please check that SMTP Server name and configuration that where you trying to run the application.
Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"
I provided the right name.Here is the my code: SmtpMail.SmtpServer = "smtp.gmail.com"; msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate","1"); msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", textBox1.Text); // User name msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", textBox2.Text); // Password msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport","465"); msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusessl","true");
Reagards Shiva