Hi,
I need to send an email using MAPI but there is a problem if the email client is Outlook 2003.
An error like "Unable to send message with any account available". There isn't any problem using Outlook 2000 or other mail client.
I read various thread about this problem (MAPI and Outlook) on the FW newsgroup but without a solution.
Is there anyone that know a solution at this moment ?
I attached after the send routine that show the problem.
Thanks in advance.
Best Regards
Marco Turco
************************
#include "FiveWin.ch"
#include "Mail.ch"
function InteractiveMessage()
paramet cSubject,cBody,aFrom,aFiles
local oMail
for i:=1 to len(aFrom)
aFrom[i,1]:=alltrim(aFrom[i,2])
aFrom[i,2]:=alltrim(aFrom[i,2])
next
oMail:=tMail():New( cSubject,cBody,,,,, .f., .t.,,afrom,aFiles)
ACTIVATE MAIL oMail
return