Sending EMAIL to Group LIsts in ASP using Cdonts

Results 1 to 2 of 2

Thread: Sending EMAIL to Group LIsts in ASP using Cdonts

  1. #1
    Join Date
    Dec 1969

    Default Sending EMAIL to Group LIsts in ASP using Cdonts

    Hi does anyone know how to send an email group list using CDONTS<BR>OUTLOOK and microsoft exchange?<BR><BR>This code doesn&#039;t work.<BR><BR> &#039; Get the User&#039;s SMTP Email Address<BR> strRmtUser = Request.ServerVariables("REMOTE_USER")<BR> Set objUserEmail = Server.CreateObject("UserEmail.clsUsrEmail")<BR> objUserEmail.ExchServer = "NTES00"<BR> strUserAddr = objUserEmail.GetUserEMailAddr(strRmtUser)<BR><BR> &#039; Create the Email Object<BR> set objMail = server.CreateObject("CDONTS.NewMail")<BR><BR><BR> &#039; Set the message delivery variables<BR> <BR> emailTo = "MyGroup"<BR> <BR> emailFrom = strUserAddr<BR> strSubject = "DELETE THIS - This is a test message"<BR> <BR> &#039; Build the Message Body and the Message to be displayed to the browser<BR> <BR> <BR> strBody = "I am test sending to a Group LIst from a web page......please delete this."<BR><BR> &#039; Build and Send Email<BR> objMail.from = emailFrom <BR> = emailTo<BR> objMail.subject = strSubject<BR> objMail.body = strBody<BR> objMail.send<BR><BR> &#039; Destroy all Objects<BR> set objMail = nothing<BR> Set objUserEmail = nothing

  2. #2
    Join Date
    Dec 1969

    Default the email to....

    "MyGroup" isn&#039;t clarified as anything in your code above, so it doesn&#039;t know where to send the message.

Posting Permissions

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