E-mail code

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

E-mail code

Postby IDEAL Software Support » Tue Nov 23, 2004 4:29 pm

I am using visual basic - can anyone send me some code using e-mail in VPE - thanks Jerry
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Postby 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
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 41 guests