Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Web.Mail - Configuration Error.

Web.Mail - Configuration Error.

Scheduled Pinned Locked Moved C#
csharphelpsysadminworkspace
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shivarudrayya H
    wrote on last edited by
    #1

    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

    A 1 Reply Last reply
    0
    • S Shivarudrayya H

      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

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      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"

      S 1 Reply Last reply
      0
      • A Abhijit Jana

        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"

        S Offline
        S Offline
        Shivarudrayya H
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups