Windows Vista Forums

script to send html email?

  1. #1


    Glenn Guest

    script to send html email?

    I found this script from the scripting guys, but it sends in plain text. Is
    there anyway to modify it to send it in html format?



    Thanks

    Set objEmail = CreateObject("CDO.Message")

    objEmail.From = me@xxxxxx
    objEmail.To = "me@xxxxxx"
    objEmail.Subject = "Server down"
    objEmail.Textbody = "Server1 is no longer accessible over the network."

    objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
    "exchange"
    objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
    objEmail.Configuration.Fields.Update

    objEmail.Send



      My System SpecsSystem Spec

  2. #2


    Dominic Johnson Guest

    Re: script to send html email?

    objEmail.HTMLBody = "<html><body>...</body></html>"

    More info here:

    http://msdn.microsoft.com/en-us/libr...EXCHG.10).aspx

    Dominic

      My System SpecsSystem Spec

script to send html email?

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I send an email in HTML format? 9Chiens Live Mail 4 27 Dec 2009
script to determine password expire date and send email notificati Eero J PowerShell 43 09 Oct 2009
html script rive0108 Chillout Room 0 02 Jul 2009
Can not view html with script dialog box Orione Vista General 0 06 Jun 2007
Example of a script converted to HTML with syntax highlighting Roman Kuzmin PowerShell 0 15 Mar 2007