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. sending mail with asp.net

sending mail with asp.net

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-nettutorialworkspace
6 Posts 3 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
    Sebastian T Xavier
    wrote on last edited by
    #1

    hi everybody, i tried to send email message from an asp.net application using following code imporrts system.web.mail ----------> dim objmail as new mailmessage() objmail.from=txtfrom.text objmail.sub=txtsub.text objmail.to=txtto.text objmail.body=txtbody.text dim objsm as smtpmail objsm.send(objmail) this is the code which i was used. in some machines, this works very nicely; but in some machines i got some error; "Send Using configuration is Invalid" and in some other machines i got the message like this---> "Could not access CDO Message Object" can anyone say how to solve this problem; with thanks and love Sebastian

    G M 2 Replies Last reply
    0
    • S Sebastian T Xavier

      hi everybody, i tried to send email message from an asp.net application using following code imporrts system.web.mail ----------> dim objmail as new mailmessage() objmail.from=txtfrom.text objmail.sub=txtsub.text objmail.to=txtto.text objmail.body=txtbody.text dim objsm as smtpmail objsm.send(objmail) this is the code which i was used. in some machines, this works very nicely; but in some machines i got some error; "Send Using configuration is Invalid" and in some other machines i got the message like this---> "Could not access CDO Message Object" can anyone say how to solve this problem; with thanks and love Sebastian

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      If the server where you are running this doesn't have SMTP activated, you have to specify what SMTP server to use.

      --- b { font-weight: normal; }

      S 2 Replies Last reply
      0
      • G Guffa

        If the server where you are running this doesn't have SMTP activated, you have to specify what SMTP server to use.

        --- b { font-weight: normal; }

        S Offline
        S Offline
        Sebastian T Xavier
        wrote on last edited by
        #3

        thankz dear i will chech it out bye

        1 Reply Last reply
        0
        • S Sebastian T Xavier

          hi everybody, i tried to send email message from an asp.net application using following code imporrts system.web.mail ----------> dim objmail as new mailmessage() objmail.from=txtfrom.text objmail.sub=txtsub.text objmail.to=txtto.text objmail.body=txtbody.text dim objsm as smtpmail objsm.send(objmail) this is the code which i was used. in some machines, this works very nicely; but in some machines i got some error; "Send Using configuration is Invalid" and in some other machines i got the message like this---> "Could not access CDO Message Object" can anyone say how to solve this problem; with thanks and love Sebastian

          M Offline
          M Offline
          mbbisht
          wrote on last edited by
          #4

          u have to assign smtp server name in smtp object

          Mahendra

          S 1 Reply Last reply
          0
          • M mbbisht

            u have to assign smtp server name in smtp object

            Mahendra

            S Offline
            S Offline
            Sebastian T Xavier
            wrote on last edited by
            #5

            thank you very much; now it works very nicely tahanks once again

            1 Reply Last reply
            0
            • G Guffa

              If the server where you are running this doesn't have SMTP activated, you have to specify what SMTP server to use.

              --- b { font-weight: normal; }

              S Offline
              S Offline
              Sebastian T Xavier
              wrote on last edited by
              #6

              i have tested this ; it worked very nicely; thanks

              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