454 5.7.3 Client does not have permission to submit mail to this server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nitindel
    New Member
    • Dec 2007
    • 67

    454 5.7.3 Client does not have permission to submit mail to this server

    Hi All,
    Greetings....

    I am working on ASP, VBScript ,Javascript.... ...and in one piece of module i want to send mail . and i am using ASP Persits software...

    but the error is very peculiar as shown below:

    454 5.7.3 Client does not have permission to submit mail to this server

    Below is the code that i am using ...
    [Code]
    Set Mail = Server.CreateOb ject("Persits.M ailSender")
    Mail.host = session("lanip" )
    fromid = "abc@abc.co m"
    toid = Request.Form("t o")
    mailbody = Request.Form("b ody")
    Mail.AddAddress toid
    Mail.From = fromid
    mail.username = session("muser" )
    mail.password = session("mpass" )
    Mail.subject = "Your User ID and Password for PMIS"
    Mail.IsHTML = true
    Mail.Body = mailbody
    strErr = ""
    bSuccess = False
    On Error Resume Next
    Mail.Send
    'Response.Write (err.descriptio n)
    If Err <> 0 Then
    strErr = Err.Description

    Response.Write "Error encountered: " & Err.Description
    'else
    ' bSuccess = True
    End If

    [Code]

    Also...i have used CDO..... but all in Vain.....
    CDO is also not working...

    Please let me know in detail what all possible resons can be for this particular error......

    Thanks & regards
  • CroCrew
    Recognized Expert Contributor
    • Jan 2008
    • 564

    #2
    It sounds like your SMTP is requiring authorization to use it services. I see that you are passing in information in the correct places.

    [code=asp]
    mail.username = session("muser" )
    mail.password = session("mpass" )
    [/code]

    But, is what you’re passing (session("muser" ) and session("mpass" )) a valid account on the mail server that you are using? Verify that it is.

    If that did not help; then check to see if your session might be getting abandoned before this script runs. Place more error checking around your code to test if the session exists at that point.

    Hope this helps~

    Comment

    Working...