DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How to send formatted text by vbsendmail?

  1. #1
    Join Date
    Jul 2006

    How to send formatted text by vbsendmail?

    I've succesfully implemented vbsendmail in my source. I've noted that the application writes the text in raw text format, hence no formatted text. I want to copy the formatted text within a Word document to the clipboard, which is easy done af course. However how can I paste the formatted text to vbsendmail? This is part of my code :

    WordBodyStr = Clipboard.GetText

    Set poSendMail = New vbSendMail.clsSendMail
    poSendMail.Message = WordbodyStr

  2. #2
    Join Date
    Nov 2003
    Portland, OR
    You can set vbSendMail's .AsHTML property to True in order to format your message with HTML tags. I don't think you can simply copy and paste a Word document and preserve the formatting, however, because Word doesn't copy HTML to the clipboard.
    Phil Weber

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Replies: 2
    Last Post: 09-29-2002, 09:58 AM
  2. Send HTML formatted email
    By Ed Teune in forum Enterprise
    Replies: 0
    Last Post: 05-15-2002, 05:26 PM
  3. Script for scrolling
    By Mark in forum Web
    Replies: 3
    Last Post: 08-30-2001, 11:45 AM
  4. Double Text 1.0
    By George Gilbert in forum vb.announcements
    Replies: 0
    Last Post: 08-19-2001, 11:34 AM
  5. Replies: 0
    Last Post: 04-05-2000, 01:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center