SMTP problem

  • hi all,

    i am facing a problem in sending sucess mail

    i have created a active script to send sucess mail on sucess

    '**********************************************************************

    '  Visual Basic ActiveX Script

    '************************************************************************

    Function Main()

         Dim iMsg

         set iMsg = CreateObject("CDO.Message")

         Dim objMail

         Set objMail = CreateObject("CDO.Message")

         objMail.From = "KshitijKsah@company.com"

         objMail.To ="kshitij.sah@company.com"

         objMail.Subject="Package Suceeded"

         objMail.TextBody = "Package Suceeded"

         objMail.Send

         Set objMail = nothing

         Main = DTSTaskExecResult_Success

    End Function

    but mail is not being send and the warning that comes in event viewer is like that

    Message delivery to the remote domain 'company.com' failed.  The error message is 'The remote SMTP service rejected AUTH negotiation.

    '. The SMTP verb which caused the error is 'AUTH'.  The response from the remote server is '250-tech-portal.patni.com Hello [192.168.1.39]

    250-TURN

    250-SIZE 2097152

    250-ETRN

    250-PIPELININ'.

    please help me

    thanks

     

  • AUTH is the command to send a username and password to the mail server in order to use the SMTP service; it's required, because otherwise the server is wide open to being aboused as a spam server.

    nowhere in your code do i see the AUTH information being used.

    you should be sending your mail through your own email server, with a specific account for your mail server.

    review your code, and use the last example on this page as your model.

    http://www.w3schools.com/asp/asp_send_email.asp

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply