I have a code in my program
mailsession lms_MAPISession
mailmessage lmm_Message
lms_MAPISession = CREATE mailsession
IF lms_MAPISession.MailLogon() = MailReturnSuccess! THEN
// Mail Sesion is ok so Populate the Message
lmm_Message.Subject = "testing"
lmm_Message.NoteText = "test send attachement file"
lmm_Message.Recipient[ 1 ].RecipientType = mailTo!
lmm_Message.Recipient[ 1 ].Name = 'soo'
lmm_Message.Recipient[ 1 ].Address = 'soo@gmail.com'
IF lms_MAPISession.MailSend( lmm_Message ) = MailReturnSuccess! THEN
Messagebox( 'Mail', 'Message was sent.' )
Else
Messagebox( 'Mail', 'Message was unable to sent.' )
END IF
lms_MAPISession.MailLogoff()
END IF
DESTROY lms_MAPISession
Although I received message of "Message was sent", but when I check my Outlook, it was unsuccessfully send. May I know what happen?
Another problem is I can't add sender name in my mail, how can I do that?
Thank you very much
mailsession lms_MAPISession
mailmessage lmm_Message
lms_MAPISession = CREATE mailsession
IF lms_MAPISession.MailLogon() = MailReturnSuccess! THEN
// Mail Sesion is ok so Populate the Message
lmm_Message.Subject = "testing"
lmm_Message.NoteText = "test send attachement file"
lmm_Message.Recipient[ 1 ].RecipientType = mailTo!
lmm_Message.Recipient[ 1 ].Name = 'soo'
lmm_Message.Recipient[ 1 ].Address = 'soo@gmail.com'
IF lms_MAPISession.MailSend( lmm_Message ) = MailReturnSuccess! THEN
Messagebox( 'Mail', 'Message was sent.' )
Else
Messagebox( 'Mail', 'Message was unable to sent.' )
END IF
lms_MAPISession.MailLogoff()
END IF
DESTROY lms_MAPISession
Although I received message of "Message was sent", but when I check my Outlook, it was unsuccessfully send. May I know what happen?
Another problem is I can't add sender name in my mail, how can I do that?
Thank you very much