DarrenWard
IS-IT--Management
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!
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!