MAPI - Mail, nRetcode allways returns 0 with incorrect email

MAPI - Mail, nRetcode allways returns 0 with incorrect email

Postby Jorge_T » Mon May 20, 2019 4: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,
Image

#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
--------------------------------------------------
Jorge_T
 
Posts: 38
Joined: Tue Jan 22, 2019 8:28 am

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 46 guests