- Jan Hrbacek
- PowerBuilder
- Thursday, 15 July 2021 12:17 PM UTC
Hello,
We are using mailSession object to send emails from application created in the PowerBuilder 2017 R2. While mail functionality seems to work fine with classic Outlook it doesn't work with Outlook 365 when mailbox is moved to cloud.
Does the mailSession object support cloud Outlook 365? Could you please advice me how can I make the mailing functionality work with Outlook 365?
Thanks,
Jan
mSes = create mailSession
mRet = mSes.mailLogon ( "Outlook","",mailNewSession! )
If mRet <> mailReturnSuccess! Then
MessageBox("Mail logon : Logon to the mail failed" , StopSign!, ok!,1)
mRet = mSes.mailLogoff ()
return
End If
mAttach.FileType = mailAttach!
mAttach.PathName = ls_attach_name
mAttach.FileName = ls_attach_name
mMsg.AttachmentFile[1] = mAttach
mRet = mSes.mailsend ( mMsg )
If mRet <> mailReturnSuccess! Then
MessageBox("Mail send : Send through the mail failed" , StopSign!, ok!,1)
return
End If
mRet = mSes.mailLogoff ()
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.