#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2004
    Posts
    1
    Rep Power
    0

    Need help writing CDO script in Cold Fusion


    Can anyone help me write this ASP script in Cold Fusion (without using cfmail)?

    Set objMessage = CreateObject("CDO.Message")
    objMessage.Subject = "Example CDO Message"
    objMessage.From = "whatever@whatever.com"
    objMessage.To = "email_address@hotmail.com"
    objMessage.TextBody = "This is some sample message text."

    '==This section provides the configuration information for the remote SMTP server.
    '==Normally you will only change the server name or IP.

    objMessage.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

    'Name or IP of Remote SMTP Server
    objMessage.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "myispsmtp.server.com"

    'Server port (typically 25)
    objMessage.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

    objMessage.Configuration.Fields.Update

    '==End remote SMTP server configuration section==

    objMessage.Send


    Thanks
    -Karen
  2. #2
  3. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,264
    Rep Power
    968
    I know nothing about ASP. Also, why would you NOT want to use CFMAIL? Is this script sending an email?

IMN logo majestic logo threadwatch logo seochat tools logo