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. Problem in sending mail to External Mail account?

Problem in sending mail to External Mail account?

Scheduled Pinned Locked Moved ASP.NET
helpcomsysadminsecurityquestion
1 Posts 1 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
    MudkiSekhon
    wrote on last edited by
    #1

    I am trying to send Mail through System.Web.MailMessage. When I send the mail to an address that is local to Smtp Mail Server, it reaches at the destination address. Suppose my Smtp Server is mail.123.com and my mail address is sandy@123.com. When I send mail to this address through Web.MailMessage class,it reaches the destination address with ease. However when i want to send the mail to an address that is external to SMTP Server(suppose sandy@gmail.com),it shows me an exception Exception Details: System.Runtime.InteropServices.COMException: The server rejected one or more recipient addresses. The server response was: 550 Authentication is required for relay Source Error: Line 47: mail1.Subject="Just to say Hi"; Line 48: System.Web.Mail.SmtpMail.Send(mail1); When I send the mail through Outlook Express through sandy@123.com, it easily reached at sandy@gmail.com but the above said programming method is not working. Please suggest me the solution for the above problem and any settings that I need to perform Thanks, Sandy

    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