Sending Email in vb .Net 2003 using SMTP Sever

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Paridevi
    New Member
    • Feb 2008
    • 15

    Sending Email in vb .Net 2003 using SMTP Sever

    Hai,
    i am getting the following error

    system.runtime. interopservices .COMException.T he server rejected one or more recipient addresses.The server responce was:553 sorry, relaying denied from your location[59.92.120.52](#5.7.1)

    in sending email from client machine.i have refered their SMTP Server name and i have added that in SMTPServer access in relay option.whta is the problem here can any one help me pls.thanks in advance.
    regards
    pari
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Have you tried testing with your own email address?

    Comment

    • Chrace
      New Member
      • Feb 2008
      • 6

      #3
      That's no .Net error though.

      You need to allow relaying on your Exchange (or whatever mail server) for your IP address or LDAP login account.

      "sorry, relaying denied from your location" should give you a hint there.

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        That error message is frequently the result of not being authenticated with the SMTP Server you are using. It's in place to help prevent abuse.
        Try supply valid login credentials and see if that solves the problem.

        Comment

        • Engineer Intern
          New Member
          • Oct 2008
          • 1

          #5
          as a follow up, (and do excuse my coding ignorance): but how can I make my to field dynamic. I have multiple checkboxes and depending on what is selected different email address can be used. I tried using neseted IF statements but turned into an ugly mess. Please help!

          Comment

          • Plater
            Recognized Expert Expert
            • Apr 2007
            • 7872

            #6
            Well for the TO field you would want to have like:
            user1@domain.co m; user2@domain.co m;

            For every checkbox checked, add the username and a ";" to the TO field?

            Comment

            Working...