SMAPI and mapirecipdesc + Microsoft Outlook 2013

Discussions related to Visual Prolog
User avatar
Tonton Luc
VIP Member
Posts: 500
Joined: 16 Oct 2001 23:01

SMAPI and mapirecipdesc + Microsoft Outlook 2013

Unread post by Tonton Luc » 29 Apr 2014 13:53

Hi,

Using SMAPI + Microsoft Outlook 2013 (+ Windows7 64 bits), all enclosed files are replacing by a "winmail.dat" file (with sendMailWithAttach).

One solution is to make a modification in smapi.pro like it :

Code: Select all

clauses     form_Recips(Prev_list, [], _, Prev_list):-         !.     form_Recips(Prev_list, [Address|L], AddrType, [E|Recips]):- %        SMTP_addr = string8::mapFromString(string::format("SMTP:%s", Address)), %        E = mapirecipdesc(0,AddrType,string8::mapFromString(Address),SMTP_addr,0,null), % remplace this line by the next for M$ Outlook 2013         E = mapirecipdesc(0,AddrType,string8::mapFromString(Address),string8::mapFromString(""),0,null),         form_Recips(Prev_list, L, AddrType, Recips).
:wink:
If you've a better solution, don't hesitate to post it.
Last edited by Tonton Luc on 30 Apr 2014 8:29, edited 1 time in total.

User avatar
Thomas Linder Puls
VIP Member
Posts: 1622
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 30 Apr 2014 8:14

I do not understand what the problem is.

But in any case Microsoft has limited the SMAPI support (see for example MAPI Programming Overview).
Regards Thomas Linder Puls
PDC

User avatar
Tonton Luc
VIP Member
Posts: 500
Joined: 16 Oct 2001 23:01

Unread post by Tonton Luc » 30 Apr 2014 8:28

Hi,

When you send a mail using SMAPI + Microsoft Oulook 2013, all enclosed files are replacing by a "winmail.dat" in the mail.
In this case, if the recipient has Microsoft Outlook => there is no problem because Microsoft Outlook knows how to decrypt "winmail.dat", but if he has Outlook Express (or others), it can't read "winmail.dat".

User avatar
Tonton Luc
VIP Member
Posts: 500
Joined: 16 Oct 2001 23:01

Unread post by Tonton Luc » 17 Sep 2014 10:08

Hi,

To send mail with more of one files enclosed using sendMailWithAttach + Microsoft Outlook, change this in smapi.pro :

Code: Select all

clauses     fillMapifiledescItem(Arrayfiles, PathName, Name) = NextArrayfiles :- %        Flags = 0, Position = 0, % this line need to be change !!!         Flags = 0, Position = 0xFFFFFFFF,         NextArrayfiles = memory::append(Arrayfiles, uncheckedConvert(pointer, mapifiledesc(0,Flags, Position, string8::mapFromString(PathName), string8::mapFromString(Name), null)),             sizeofdomain(mapifiledesc)).
:wink:

drspro2
VIP Member
Posts: 78
Joined: 28 Apr 2006 12:03

Unread post by drspro2 » 20 Sep 2014 11:44

I have had the same problem, the settings in Outlook about Rtf settings can cause the problem, the have to be set to off or on.


regards

Post Reply