#1
  1. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Sep 2008
    Posts
    14
    Rep Power
    0

    Weird behavior error: -2147220973 - The transport failed to connect to the server.


    just a moved script that worked ok on one site to a new site.
    the new site with the exact same code gives the transport error.
    the cdo code is what i call the full boat, it has all the parameters i have found:
    dim objMessage
    Set objMessage = CreateObject("CDO.Message")
    objMessage.Subject = "volunteer app for " & firstName & " " & lastName
    objMessage.from = fromVariable
    objMessage.sender = fromVariable
    objMessage.To = toEmail
    objMessage.TextBody = "great news.... here's another volunteer application"
    objMessage.AddAttachment appsPath & "\" & firstName & "." & lastNameFile & ".vcf"
    objMessage.AddAttachment appsPath & "\" & firstName & "." & lastNameFile & ".pdf"
    objMessage.Configuration.Fields.Item _
    ("schema url changed so i can post/sendusing") = 2

    'Name or IP of Remote SMTP Server
    objMessage.Configuration.Fields.Item _
    ("schema url changed so i can post/smtpserver") = "mail.someDomain.com"

    'Type of authentication, NONE, Basic (Base64 encoded), NTLM
    objMessage.Configuration.Fields.Item _
    ("schema url changed so i can post/smtpauthenticate") = 1

    'Your UserID on the SMTP server
    objMessage.Configuration.Fields.Item _
    ("schema url changed so i can post/sendusername") = "myusername"

    'Your password on the SMTP server
    objMessage.Configuration.Fields.Item _
    ("schema url changed so i can post/sendpassword") = "mypassword"

    'Server port (typically 25)
    objMessage.Configuration.Fields.Item _
    ("schema url changed so i can post/smtpserverport") = 25

    'Use SSL for the connection (False or True)
    objMessage.Configuration.Fields.Item _
    ("schema url changed so i can post/smtpusessl") = False

    'Connection Timeout In Seconds (The Maximum Time CDO Will Try To Establish A Connection To The SMTP Server)
    ObjMessage.Configuration.Fields.Item _
    ("schema url changed so i can post/Smtpconnectiontimeout") = 60
    objMessage.Configuration.Fields.update
    objMessage.Send

    now here's the weird part to me anyway
    at the new site, what i call the short cdo version works!!!! see below
    dim objmessage
    Set objMessage = server.CreateObject("CDO.Message")
    objMessage.Subject = "volunteer app for " & firstName & " " & lastName
    objMessage.from = fromVariable
    objMessage.To = toEmail
    objMessage.TextBody = "great news.... here's another volunteer application"
    objMessage.AddAttachment appsPath & "\" & firstName & "." & lastNameFile & ".vcf"
    objMessage.AddAttachment appsPath & "\" & firstName & "." & lastNameFile & ".pdf"
    objMessage.Send

    anybody know what could cause this? the new site is happy to send/relay email without authentication?
    i vividly remember how i started with the 'short cdo version' at the first site and it wouldn't work, until i added all the other parms, and even with all the configuration fields it still didn't work until i had both .from and .sender
    Last edited by Nilpo; November 28th, 2008 at 01:54 AM.
  2. #2
  3. Couch Potato Wizard
    ASP Mastermind (5000+ posts)

    Join Date
    Jan 2005
    Location
    India
    Posts
    13,652
    Rep Power
    2685
    may be u need to change the server's name in this line
    Code:
    objMessage.Configuration.Fields.Item _
    ("schema url changed so i can post/smtpserver") = "mail.job1data.com"
    Also u shud'nt post username and passwords here, plz delte them and change them now as many people might have seen them here.
    Laziness is my religion and Sunday is my God

    Get the Mantra!
  4. #3
  5. ASP Hero (2000 - 2499 posts)

    Join Date
    Jun 2006
    Location
    New Springfield, OH
    Posts
    2,042
    Rep Power
    1051
    For your safety, please don't post usernames and passwords in the open.

    Thanks, Micky.

    Comments on this post

    • micky agrees : my pleasure;):D
    Don't like me? Click it.

    Scripting problems? Windows questions? Ask the Windows Guru!

    Stay up to date with all of my latest content. Follow me on Twitter!

    Help us help you! Post your exact error message with these easy tips!!
  6. #4
  7. ASP Hero (2000 - 2499 posts)

    Join Date
    Jun 2006
    Location
    New Springfield, OH
    Posts
    2,042
    Rep Power
    1051
    This error usually indicates a server configuration problem (directory permissions). Contact your support department.
  8. #5
  9. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Sep 2008
    Posts
    14
    Rep Power
    0
    thanks for the replies, i will check with provider

Similar Threads

  1. MSDE 200 installation failed
    By mzungu in forum Microsoft SQL Server
    Replies: 1
    Last Post: October 6th, 2005, 12:14 AM
  2. How to connect ftp server from ASP
    By Mamatha in forum ASP Development
    Replies: 1
    Last Post: December 10th, 2004, 12:08 AM
  3. How to connect SQL Server with ASP Page
    By rrkagrawal in forum SQL Development
    Replies: 1
    Last Post: October 7th, 2003, 10:45 AM
  4. Web serverístatistical analysis
    By cso in forum ASP Development
    Replies: 0
    Last Post: April 19th, 2003, 11:35 AM
  5. How to connect web server to a remote sql server.
    By Steve Schofield in forum SQL Development
    Replies: 1
    Last Post: July 16th, 2001, 08:30 PM

IMN logo majestic logo threadwatch logo seochat tools logo