AddMailReceiver

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

AddMailReceiver

Postby Obernier » Mon Oct 08, 2007 4:15 pm

We are using the function AddMailReceiver to initialise the e-mail address of the receiver. Sending the message we get an error "receiver not reachable".
Looking at the properties of the contact:
instead of having "SMTP" in the type of mail, we have the e-mail adress.

I don't see any properties to set this information. Would there be a way to initialise this field with a VPE function ?
Obernier
 
Posts: 25
Joined: Thu Jul 12, 2007 10:28 am

Postby IDEAL Software Support » Mon Oct 08, 2007 4:46 pm

Use AddMailReceiver( "[SMTP:<receiver e-mail address>]" )

e.g.: AddMailReceiver( "[SMTP:someone@somewhere.com]" )
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Postby Obernier » Tue Oct 09, 2007 10:00 am

Using your solution, in the receiver area we get =SMTP:someone@somewhere.com<someone@somewhere.com>" .

This solution works, but it does not respect our standard.
Would there be a way to have the adress written in a normal way
(As : someone@somewhere.com) ?
Obernier
 
Posts: 25
Joined: Thu Jul 12, 2007 10:28 am

Postby IDEAL Software Support » Tue Oct 09, 2007 12:55 pm

Using the square brackets is the standard. What mail software are you using?
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Postby Obernier » Tue Oct 09, 2007 12:58 pm

We are using Outlook 2002 - 2003
Obernier
 
Posts: 25
Joined: Thu Jul 12, 2007 10:28 am

Postby IDEAL Software Support » Wed Oct 10, 2007 8:45 am

Maybe you may not use the square brackets, please see the following thread (can also be found by searching for "SMTP"): http://idealsoftware.com/phpBB2/viewtopic.php?t=165
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Postby Obernier » Wed Oct 10, 2007 9:57 am

If i use with the square brackets or without the square brackets
i get the same result :
=SMTP:someone@somewhere.com<someone@somewhere.com
Obernier
 
Posts: 25
Joined: Thu Jul 12, 2007 10:28 am

Postby Obernier » Wed Oct 10, 2007 11:15 am

Just to let you know that this functionality used to work with the version 3.10. The problem appeared with the version 3.60
Obernier
 
Posts: 25
Joined: Thu Jul 12, 2007 10:28 am

Postby IDEAL Software Support » Thu Oct 11, 2007 5:12 pm

We tested it right now with Outlook 2003, and we have no "=" in front of the e-mail recipient's address. Everything works here as expected and as it should. Maybe you have a configuration problem.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Postby Obernier » Thu Oct 25, 2007 2:45 pm

We are using the solution you gave us :
Use AddMailReceiver( "[SMTP:<receiver e-mail address>]" )

But now we are having an other problem:
The message is sent with the option :
"message sent with the RTF Format"

Consequently, our client cannot read the pdf file joined withe the e-mail.

thank you for your solution.
Obernier
 
Posts: 25
Joined: Thu Jul 12, 2007 10:28 am

Postby IDEAL Software Support » Fri Oct 26, 2007 2:29 pm

This is a problem of the mail client. You should be able to configure this. VPE does not instruct the mail client to use RTF.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Postby Obernier » Tue Oct 30, 2007 3:07 pm

On the same client pc we made these 4 tests:

test 1
--> Version VPE 3.10 and using the function without "SMTP" and including
a pdf file attachement.
chReport:AddMailReceiver( "someone@tiscali.fr" ,1 ).

the result is:
--> the e-mail is sent correctly
--> the e-mail is received correctly with the file attachement
--> messagerie type : "SMTP"
--> Internet Format : "best format for Outlook"
from the sender
--> A: someone@tiscali.fr
for the receiver:
--> from : someone@tiscali.fr

test 2
--> Version VPE 3.10 and using the fuction with "SMTP" and including a
pdf file attachement.
chReport:AddMailReceiver( "[SMTP:someone@tiscali.fr]" ,1 ).

the result is:
--> the e-mail is sent correctly
--> the e-mail is received correctly with the file in attachement
--> messagerie type : "SMTP"
--> Internet Format : "best format for Outlook"
from the sender
--> A: someone@tiscali.fr
for the receiver:
--> from : someone@tiscali.fr

test 3
--> Version VPE 3.60 and using the function without "SMTP" and including
a pdf file attachement.
chReport:AddMailReceiver( "someone@tiscali.fr" ,1 ).

the result is:
--> the e-mail is not sent .
--> messagerie type : "someone@tiscali.fr"
--> Internet Format : "Format RTF"
from the sender
--> A: =SMTP:someone@someone.fr <someone@someone.fr>


test 4
--> Version VPE 3.60 and using the fuction with "SMTP" and including a
pdf file attachement.
chReport:AddMailReceiver( "[SMTP:someone@tiscali.fr]" ,1 ).

the result is:
--> the e-mail is sent .
--> the e-mail is not received correctly
--> the file in attachement is converted in binary format
and cannot be read.
--> messagerie type : "SMTP"
--> Internet Format : "RTF Format"
from the sender
--> A: =SMTP:someone@someone.fr <someone@someone.fr>
for the receiver:
--> from : [SMTP:someone@someone.fr]

In conclusion, today we cannot send e-mails with a file attachement.
We cannot modify the clients parameters .
Last edited by Obernier on Mon Nov 05, 2007 12:33 pm, edited 1 time in total.
Obernier
 
Posts: 25
Joined: Thu Jul 12, 2007 10:28 am

Postby IDEAL Software Support » Tue Oct 30, 2007 6:05 pm

Please use VPE v4.0 trial version. We do not maintain v3.60. If the problem persists in v4.0, then please tell me the exact configuration you are using, i.e.:

1) Exact version of Outlook (and any service pack)
2) Windows version and installed service pack.
3) Are you running an Exchange server? If so, exact version and service pack.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Postby Obernier » Mon Nov 05, 2007 1:48 pm

We have tried the VPE v4.0 trial version. Unfortunately, we still have a problem sending e-mails.

The message is still sent with the RTF Format, so that the clients still can not read the PDF attachement files.

1)Exact version of Outlook (and any service pack)
Outlook 2003 SP2

2) Windows version and installed service pack.
Windows 2000 SP4

3) Are you running an Exchange server? If so, exact version and service pack.
Exchange server 2003 SP2
Obernier
 
Posts: 25
Joined: Thu Jul 12, 2007 10:28 am

Postby IDEAL Software Support » Mon Nov 05, 2007 3:33 pm

We have currently no Exchange server installed. But I remember that we had to adjust some settings (at least in Outlook) to make things work. VPE itself just uses Simple MAPI and it does not instruct the mail client to use different attachment types than the ones supplied.

So this is very likely a system administrative problem. Have you tried to adjust any settings? We can install and configure Exchange, but this will require some time.

You should also try to use the flag VMAIL_RESOLVE_NAME in the call to AddMailReceiver(). This is the only difference to the code in v3.10, where this flag was supplied automatically.

Regards
Thorsten Radde
IDEAL Software GmbH
Last edited by IDEAL Software Support on Mon Nov 05, 2007 3:39 pm, edited 1 time in total.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Next

Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 5 guests