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. Send Email

Send Email

Scheduled Pinned Locked Moved ASP.NET
questioncsharpjavaasp-netcom
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.
  • A Offline
    A Offline
    ADY007
    wrote on last edited by
    #1

    Hi, My question is this .. I am creating an email sender using asp.net 1.1. Now I am using an smtp called smtp.mail.yahoo.com. This is the code i am using: objEmail.SmtpServer = "smtp.mail.yahoo.com" Now, when I am sending the email, an error message occurs telling me "CTO.message object error" Why is this please?? Thanks alot.

    Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.

    A 1 Reply Last reply
    0
    • A ADY007

      Hi, My question is this .. I am creating an email sender using asp.net 1.1. Now I am using an smtp called smtp.mail.yahoo.com. This is the code i am using: objEmail.SmtpServer = "smtp.mail.yahoo.com" Now, when I am sending the email, an error message occurs telling me "CTO.message object error" Why is this please?? Thanks alot.

      Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.

      A Offline
      A Offline
      Amit Kumar G
      wrote on last edited by
      #2

      If i am not wrong this is not your SMTP server. This is yahoo server. So you need to use your server. Amit

      A 1 Reply Last reply
      0
      • A Amit Kumar G

        If i am not wrong this is not your SMTP server. This is yahoo server. So you need to use your server. Amit

        A Offline
        A Offline
        ADY007
        wrote on last edited by
        #3

        Yes, its not my smtp but my smtp is of godaddy and it isn't working the same. :( i don't know what to do. I made another code just like this but the emails sent but nothing was really sent. objEmail.SmtpServer.Insert(0, "smtpout.secureserver.net") This code is not good I think. Can someone help please. Thanks alot Regards, Adrian www.maltatrade.org

        Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.

        R 1 Reply Last reply
        0
        • A ADY007

          Yes, its not my smtp but my smtp is of godaddy and it isn't working the same. :( i don't know what to do. I made another code just like this but the emails sent but nothing was really sent. objEmail.SmtpServer.Insert(0, "smtpout.secureserver.net") This code is not good I think. Can someone help please. Thanks alot Regards, Adrian www.maltatrade.org

          Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.

          R Offline
          R Offline
          RichardGrimmer
          wrote on last edited by
          #4

          The problem is that most public servers flat out won't let you do this, otherwise they'd be deluged with spam - so relaying is generally blocked. You need (as a previous poster told you) to use your OWN smtp server, or a public one that allows relaying (good luck!)....as a hint, SQL Server has one ;)

          "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

          A 1 Reply Last reply
          0
          • R RichardGrimmer

            The problem is that most public servers flat out won't let you do this, otherwise they'd be deluged with spam - so relaying is generally blocked. You need (as a previous poster told you) to use your OWN smtp server, or a public one that allows relaying (good luck!)....as a hint, SQL Server has one ;)

            "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

            A Offline
            A Offline
            ADY007
            wrote on last edited by
            #5

            WHAT IS MY SMTP SERVER AND HOW CAN I KNOW MY SMTP PLEASE?? I AM USING AN MS ACCESS NOT SQL :( .. THANKS FOR YOUR HELP!!

            Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.

            R 1 Reply Last reply
            0
            • A ADY007

              WHAT IS MY SMTP SERVER AND HOW CAN I KNOW MY SMTP PLEASE?? I AM USING AN MS ACCESS NOT SQL :( .. THANKS FOR YOUR HELP!!

              Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.

              R Offline
              R Offline
              RichardGrimmer
              wrote on last edited by
              #6

              Please don't shout....

              ADY007 wrote:

              WHAT IS MY SMTP SERVER AND HOW CAN I KNOW MY SMTP PLEASE

              Which bit don't you understand? Your SMTP server is an SMTP server that you control (:doh:). If you're not using SQL server, IIS also has one built in. If you still can't find one, try talking to your company's admins - most will let developers use it if they behave themselves, and failing that, you'll just have to look for one of your own to download....plenty of them kicking around - try Google.

              "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

              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