Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2004
    Posts
    285
    Provided Answers: 1

    Unanswered: Sending mail with CDO

    Good day,

    I am having a problem with CDO.Message.
    When I send a mail using it it takes, and I have timed it, 32 seconds every time to send the mail. Can anyone help and explain why this is?

    My code is as follows:
    Set myMail=CreateObject("CDO.Message")
    myMail.Subject = “This is the subject”
    myMail.From = "From@Email.com"
    myMail.To = “To@Email.com”
    myMail.TextBody = “This is the body of the message”
    myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = SMTP Server name
    myMail.Configuration.Fields.Update
    myMail.Send
    set myMail=nothing

    Please help.

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Can you shove a
    Code:
    Response.Write Now()
    Between each line to narrow down which line is taking the longest?
    George
    Home | Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •