Hi Olaf,
Yes. The first profile was 'exchange' and we have create a new profile 'outlook', and then use logon on mapi namespace as Mike said.
Now the mails are sent without any problem from the desired profile.
Thank you very much for this clarification.
Best regards.
JpG
Hi Mike.
Thanks for your quick answer.
That is exactly what I need. So a star for you.
This parameter 'outlook2' for LOGON() was unknown for me ...
Best regard.
JPG
Hi everybody
I want to change the default Outlook account before sending a mail.
Actually, my code (VFP9 SP2) is something like this :
oOutlook=Createobject("outlook.application")
oItem=oOutlook.createitem(0)
oItem.subject ="TEST"
oItem.To="tonton@wanadoudou.fr"
oItem.Importance=2...
Jim
My user may choice between "With XFRX" for generate PDF or without XFRX (REPORT ... TO PRINTER and REPORT .. To PRINTER PROMP PREVIEW)...
And my image is always OK (image=man, woman or child)
JPG
Hi, Jimstarr
In "Expression or variable name", put a function like Img2Print()
Function Img2Print
Do case
CASE languagex = 'japanese'
RETURN 'c:\amps\data\japan01.tif'
CASE languagex = 'korean'
RETURN 'c:\amps\data\korea01.tif'
...
ENDCASE
Sorry for my poor english
JPG
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.