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. server rejected address

server rejected address

Scheduled Pinned Locked Moved ASP.NET
comsysadminhelp
4 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.
  • L Offline
    L Offline
    lhahehal
    wrote on last edited by
    #1

    hi there why do i receieve the error The server rejected the sender address. The server response was: 501 Bad address syntax Line 42: SmtpMail.SmtpServer = "smtp.aaa.com.sg" Line 43: SmtpMail.Send(Message) <----- in red -- modified at 6:01 Thursday 9th February, 2006

    L L I 3 Replies Last reply
    0
    • L lhahehal

      hi there why do i receieve the error The server rejected the sender address. The server response was: 501 Bad address syntax Line 42: SmtpMail.SmtpServer = "smtp.aaa.com.sg" Line 43: SmtpMail.Send(Message) <----- in red -- modified at 6:01 Thursday 9th February, 2006

      L Offline
      L Offline
      Le centriste
      wrote on last edited by
      #2

      501 means:

      501 Syntax error in parameters or arguments

      You probably have an error in the address, such an invalid character, or format. Please post the offending address, and if possible the complete code (SMTP part only). -------- "I say no to drugs, but they don't listen." - Marilyn Manson

      1 Reply Last reply
      0
      • L lhahehal

        hi there why do i receieve the error The server rejected the sender address. The server response was: 501 Bad address syntax Line 42: SmtpMail.SmtpServer = "smtp.aaa.com.sg" Line 43: SmtpMail.Send(Message) <----- in red -- modified at 6:01 Thursday 9th February, 2006

        L Offline
        L Offline
        lhahehal
        wrote on last edited by
        #3

        Dim Message As New MailMessage Message.To = "031799@asd.com Message.From = "ACCA Bank" Message.Subject = "Your Password" Message.Body = "Here is your login password : " & pass SmtpMail.SmtpServer = "smtp.aaa.com.sg" SmtpMail.Send(Message)

        1 Reply Last reply
        0
        • L lhahehal

          hi there why do i receieve the error The server rejected the sender address. The server response was: 501 Bad address syntax Line 42: SmtpMail.SmtpServer = "smtp.aaa.com.sg" Line 43: SmtpMail.Send(Message) <----- in red -- modified at 6:01 Thursday 9th February, 2006

          I Offline
          I Offline
          Ista
          wrote on last edited by
          #4

          lhahehal wrote:

          The server rejected the sender address. The server response was: 501 Bad address syntax

          is your answer. the sending address is malformed 1 line of code equals many bugs. So don't write any!!

          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