Help with mailsession.
- How-to
- David Tozer
- PowerBuilder
- Tuesday, 12 October 2021 02:01 AM UTC
I would like to send a mailing to people who attended a conference that I was involved in organizing. It seems I can't get the mail session started.
I have the following code in PowerBuilder.
mailsession lms_1
mailrecipient lmr_1
mailMessage lmmsg
mailFileDescription lmfd
mailReturnCode mRet
lms_1 = CREATE mailsession
mRet = lms_1.mailLogon ()
The return code (mRet) is mailReturnFailure!
When I create the object the sessionid = 0.
The PowerBuilder version I have is 2021.
My OS is Windows 10 64bit. It is up to date and I have Office 365 (Outlook) installed.
The ini file is updated with the addition of "UseSimpleMAPI=yes" to the [PB] section.
Can anyone tell me what I am missing to get the mail working.
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.