FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour MAPI - Mail, nRetcode allways returns 0 with incorrect email
Posts: 38
Joined: Tue Jan 22, 2019 08:28 AM
MAPI - Mail, nRetcode allways returns 0 with incorrect email
Posted: Mon May 20, 2019 04:38 PM
Good afternoon everyone,

I can send emails without problems with Windows 10 and Thunderbird (MAPI), the problem is that when the address of the recipient is wrong Thunderbird detects it but the return value of the message has been sent is always 0 so when sending several messages from an application to the end there is no way to control which ones have not been sent.

I'm stuck with the subject and I can not see the solution,


#include "FiveWin.ch"
#include "mail.ch"
function EMessage()
Local oMail
DEFINE MAIL oMail ;
SUBJECT "Asunto..." ;
TEXT "Cuerpo del mensaje....." ;
TO "demo@demostracionx.com" //is a incorrect email but returns 0
ACTIVATE MAIL oMail

MsgInfo( oMail:nRetCode )

return nil
Jorge

--------------------------------------------------

Fivewin 18.10 - Harbour - BCC 7 - PellesC

--------------------------------------------------

Continue the discussion