Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: Ho to add a picture in message using cdonts.session object urgent


Message #1 by "william" <william@t...> on Wed, 12 Sep 2001 07:54:51
Help me with the following

 

 

Using cdonts.session object I want a picture to appear at a certain 

location only once in the body of my html message not as an attachment at 

the top , not at the botom of my message



the sample code is below:

Set objSession_Mail = Server.Createobject("CDONTS.Session")

    objSession_Mail.LogonSMTP "WTO" , "sales@w..."

    objSession_Mail.MessageFormat  = 0

    Set objOutbox     = objSession_Mail.Outbox

    Set objNewMessage = objOutbox.Messages.Add

        objNewMessage.Subject  = "Confirmation CONTS Session"

   objNewMessage.HtmlText = message

   objNewMessage.Attachments.Add "wto.gif",cdoFileData,server.mapPath -->

("wto.gif"),"wto.gif"

 

Set objRecipient            = objNewMessage.Recipients.Add 

       objRecipient.Name       ="william"

       objRecipient.Address   = "william@t..."  

       objNewMessage.Send

       objSession_Mail.LogOff

  Set objSession_Mail        = Nothing

  Set objNewMessage           = Nothing

  Set objOutbox               = Nothing



*where --> means line continues to next line


  Return to Index