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. Web Development
  3. ASP.NET
  4. System.Net.Mail Help

System.Net.Mail Help

Scheduled Pinned Locked Moved ASP.NET
helpcsharpsysadmin
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.
  • M Offline
    M Offline
    mdazeemuddin
    wrote on last edited by
    #1

    Hi every body i am trying to use mail in my form i have a form name as order form i am taking all the values from the form and i create body of the mail i add from,to,and subject and body to the mail but when i try to send the mail i got some error and i make changes in web.config file also please any one can tell me what are the exact field i have to use in web.config file i will show you what i write in config file <system.net> <mailSettings> <smtp from=""> <network host="" port="3535" userName="" password="" defaultCredentials="true" /> </smtp> </mailSettings> </system.net> please tell me what i have to write in from= and in host= i am very much confused with this please help me its very urgent

    C 1 Reply Last reply
    0
    • M mdazeemuddin

      Hi every body i am trying to use mail in my form i have a form name as order form i am taking all the values from the form and i create body of the mail i add from,to,and subject and body to the mail but when i try to send the mail i got some error and i make changes in web.config file also please any one can tell me what are the exact field i have to use in web.config file i will show you what i write in config file <system.net> <mailSettings> <smtp from=""> <network host="" port="3535" userName="" password="" defaultCredentials="true" /> </smtp> </mailSettings> </system.net> please tell me what i have to write in from= and in host= i am very much confused with this please help me its very urgent

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      mdazeemuddin wrote:

      please help me its very urgent

      No, it's really not. We are glad to help you, but your inability to do your job, is not urgent to us at all.

      mdazeemuddin wrote:

      please tell me what i have to write in from= and in host=

      You need to configure this code so that it has a mail server to connect to. I didn't know you could configure this in your web config, I've just written my own code in the past, but the end result is the same. You need a mail server to send mail, and it needs to be visible to your machine for testing, and your server for running live

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      M 1 Reply Last reply
      0
      • C Christian Graus

        mdazeemuddin wrote:

        please help me its very urgent

        No, it's really not. We are glad to help you, but your inability to do your job, is not urgent to us at all.

        mdazeemuddin wrote:

        please tell me what i have to write in from= and in host=

        You need to configure this code so that it has a mail server to connect to. I didn't know you could configure this in your web config, I've just written my own code in the past, but the end result is the same. You need a mail server to send mail, and it needs to be visible to your machine for testing, and your server for running live

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        M Offline
        M Offline
        mdazeemuddin
        wrote on last edited by
        #3

        thanks for your support which is the mail server i don't and from were i can get this mail server and i am very new to .net i didn't did this before this is my first time

        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