CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    CDO Objects - How to Use Attachments ?

    Hi,

    Can u tell me how to use Attachments using Collaboration Data Objects 1.21 Library. If u can guide me to any site where I can go through some examples based on CDO it would be fantastic.

    Regards

    Robert


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: CDO Objects - How to Use Attachments ?

    sample code from MSDN#

    set objMail = CreateObject("CDONTS.Newmail")
    objMail.From = "[email protected]"
    objMail.to = "[email protected]"
    objMail.Subject = "Bad News"
    objMail.Body = "I owe you £50"
    objMail.AttachFile("c:\images\logo.bmp", "Our logo")

    objMail.Send
    set objMail = nothing





Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured