Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MAPI .msgNoteText Problem

Status
Not open for further replies.

DarrenWard

IS-IT--Management
Feb 15, 2002
217
0
0
GB
I have just written some code that reads in-comming emails and replies to them with attached files, but I am getting weird results with the .msgNoteText property.

THIS WORKS;
thisform.MAPIMessages.Reply
thisform.MAPIMessages.msgNoteText = " "

thisform.MAPIMessages.AttachmentIndex = 0
thisform.MAPIMessages.AttachmentPathName = "C:\MyFile.dbf"
thisform.MAPIMessages.AttachmentName = "MyFile.DBF"

thisform.MAPIMessages.AttachmentIndex = 1
thisform.MAPIMessages.AttachmentPathName = "C:\MyFile.cdx"
thisform.MAPIMessages.AttachmentName = "MyFile.CDX"
thisform.MAPIMessages.Send

BUT DOES NOT IF I CHANGE THE SECOND LINE TO ANY OF THESE;
thisform.MAPIMessages.msgNoteText = " " + "Adding Text"
thisform.MAPIMessages.msgNoteText = _String
thisform.MAPIMessages.msgNoteText = " " + _String

I get an error on the send command, even if I omit the first this line it errors although the property contains the text of in the original incoming mail.

Any ideas?
Ideally I want to be able to send back the original text of the email with a copyright notice prefixed to it.

Darren

GuiltyMaggot - The best rock band in the world!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top