by IDEAL Software Support » Tue Nov 23, 2004 4:30 pm
The simplest code is:
Doc.MailSubject = "VPE Demo"
Doc.AddMailReceiver("MrX@dummyxyz.com", VMAIL_TO)
Doc.MailDoc()
Befor calling MailDoc() you could also add CC's and BCC's:
Doc.MailSubject = "VPE Demo"
Doc.AddMailReceiver("MrX@dummyxyz.com", VMAIL_TO)
Doc.AddMailReceiver("MrY@dummyxyz.com", VMAIL_CC)
Doc.AddMailReceiver("MrZ@dummyxyz.com", VMAIL_BCC)
Doc.MailDoc()
You can also add attachments (the current VPE document is attached automatically):
Doc.MailSubject = "VPE Demo"
Doc.AddMailReceiver("MrX@dummyxyz.com", VMAIL_TO)
Doc.ClearMailAttachments()
Doc.AddMailAttachment("c:\data\report.zip", "")
Doc.AddMailAttachment("c:\data\xyz.txt", "")
Doc.MailDoc()
The call above to
Doc.ClearMailAttachments()
removes the automatically attached current VPE document.
Hope, this helps.
Regards
Thorsten Radde
IDEAL Software GmbH