Page 1 of 1

SMAPI and mapirecipdesc + Microsoft Outlook 2013

Posted: 29 Apr 2014 13:53
by Tonton Luc
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.

Posted: 30 Apr 2014 8:14
by Thomas Linder Puls
I do not understand what the problem is.

But in any case Microsoft has limited the SMAPI support (see for example MAPI Programming Overview).

Posted: 30 Apr 2014 8:28
by Tonton Luc
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".

Posted: 17 Sep 2014 10:08
by Tonton Luc
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:

Posted: 20 Sep 2014 11:44
by drspro2
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