Hello All,
We are moving a PB11.5 Application to PB2017 Under Appeon Universal
in the mailLogon we recieved a mailReturnLoginFailure! both in Client/Server and Web App in the development Machine (With PB Installed)
we found in the documentation that the following line must be included in the PB.INI
[PB] UseSimpleMAPI=yes
After adding the line and restarting PB and the Web APP the Issue was solved in both enviroments
My question is what i need to do in the client machines (Web Application only) to make it work.
I Small test with this code:
MailSession mail_ses
MailReturnCode mail_ret
MailMessage mail_msg
mailFileDescription mAttach
mail_ses = Create MailSession
mail_ret = mail_ses.MailLogon ( mailNewSession! )
choose case mail_ret
case mailReturnSuccess!
messagebox("OK","mailReturnSuccess!")
case mailReturnFailure!
messagebox("Error","mailReturnFailure!")
case mailReturnLoginFailure!
messagebox("error","mailReturnLoginFailure!")
case mailReturnInsufficientMemory!
messagebox("error","mailReturnInsufficientMemory!")
case mailReturnUserAbort!
messagebox("error","mailReturnUserAbort!")
case else
messagebox("error","Otro error")
end choose
mail_msg.Subject = 'Extracto Caja Médica'
mail_msg.NoteText = 'TEST'
mail_msg.ReceiptRequested = false
mail_msg.MessageSent = false
mail_msg.Recipient[1].address = "slachevsky@gmail.com"
mail_msg.Recipient[1].name ='ANDRES S'
mail_msg.Recipient[1].RecipientType = MailTo!
mail_ret = mail_ses.MailSend (mail_msg)
choose case mail_ret
case mailReturnSuccess!
messagebox("OK","mailReturnSuccess!")
case mailReturnFailure!
messagebox("Error","mailReturnFailure!")
case mailReturnLoginFailure!
messagebox("error","mailReturnLoginFailure!")
case mailReturnInsufficientMemory!
messagebox("error","mailReturnInsufficientMemory!")
case mailReturnUserAbort!
messagebox("error","mailReturnUserAbort!")
case else
messagebox("error","Otro error")
end choose
mail_ses.MailLogoff ()
Any advice
Perhaps you need to make sure that the correct PB.INI file is being edited and that there is no left over somewhere that might be affecting the IDE.
Just an idea...
Regards,