PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Body is empty when forwarding mail programmatically

Reply

Body is empty when forwarding mail programmatically

 
Thread Tools Rate Thread
Old 02-07-2003, 12:14 PM   #1
Reinhard Lehner
Guest
 
Posts: n/a
Default Body is empty when forwarding mail programmatically


Hi there!

I am trying to forward mail automatically to multiple recipients in its Send
event.
All works fine - just the body of the newly generated mails is empty?!

Here the source:
rem: xRecipients is the CSV-list of the recipients.

Dim WithEvents objMail As Outlook.MailItem

Private Sub objMail_Send(Cancel As Boolean)
Dim objMailFW As Outlook.MailItem

With objMail
Set objMailFW = .Forward
objMailFW.To = xRecipients
objMailFW.Recipients.ResolveAll
objMailFW.Send
Set objMailFW = Nothing

Cancel = True
.Delete
End With

Set objMail = Nothing
End Sub

The body of the generated mail stays empty, but all other parts like
subject, attachments, ... are ok.
What's wrong?!

I am using Outlook XP on Windows XP, Visual Basic 6.0 SP5.

Thank You very much
Reinhard


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off