VPEAddMailReceiver issues

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

VPEAddMailReceiver issues

Postby starzen » Thu Apr 17, 2008 4:49 pm

When adding a mail receipient using VPEAddMailReceiver on certain pc configurations (Windows XP / Outlook 2003) we end up getting the following display for the receipient address

=SMTP:(Name)

VpeAddMailReceiver is called with a plain email address such as foo@foo.com

when calling VpeAddMailReceiver with SMTP:foo@foo.com outlook will display it as follows

SMTP:(Name)

in both cases clicking the send button often doesnt do anything at all. The dialog doesnt close, the email is not being sent and no error is displayed. Sometimes i can click the send button mutliple times and suddenly it will send the email but not allways

This happens when the user clicks the email icon in the preview and we use OnVpeBeforeMail to change the receipient. If we use VpeMailDoc we do not seem to have an issue on the same machine.

Other programs that use mapi on the same machine have no issues sending email

Forgot to mention this is in 3.6 R4

Mike
starzen
 
Posts: 30
Joined: Tue Feb 01, 2005 12:23 am
Location: Miami, FL

Postby IDEAL Software Support » Thu Apr 17, 2008 5:32 pm

First of all, please note that VPE is not using MAPI, but Simple MAPI. This is a difference.

The other thing is that there is technically no difference, if you set a MailReceiver before calling MailDoc(), or if you set it when receiving the event OnVpeBeforeMail (which is only sent when clicking the e-mail button in the toolbar of the preview).

This is, because internally VPE does the following when receiving the button-clicked event from the toolbar button:
1) VPE sends the OnVpeBeforeMail event to your application
2) Your application sets the MailReceiver in the event handler
3) Control is returned to VPE and VPE calls the MailDoc() function

This is the same like setting a MailReceiver before calling MailDoc().

VPE v4.0 was released 8 months ago and we do not maintain VPE v3.60 anymore. Do you have the option to try the same thing on the specific machine with VPE v4.0?

Hint: if your problem only occurs on specific machines, try installing a newer version / service release of Outlook, so a newer Simple MAPI DLL might be installed.
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 14 guests

cron