1. Andres Slachevsky
  2. PowerServer Mobile (Obsolete)
  3. Friday, 26 April 2019 18:04 PM UTC

 

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
Andres Slachevsky Accepted Answer Pending Moderation
  1. Thursday, 2 May 2019 18:11 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 1

We found the solution

when the Machine where the deploy is made have the PB.INI with the edited thyen it works in every cliente machine

Comment
  1. Mitch Goldstein
  2. Thursday, 3 December 2020 04:49 AM UTC
Andres, I have the similar issue. But even in the IDE when I try to login, I keep getting MailReturnFailure! I have the pb.ini file set to UseSimpleMAPI=Yes. Can you assist?

  1. Helpful
  1. Govinda Lopez @Appeon
  2. Thursday, 3 December 2020 19:04 PM UTC
Hi Mitch,



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,
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 26 April 2019 18:41 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 2

Hi Andres;

  For deployment with your PB App's EXE, create your own PB.ini using Notepad (for example) and then add the same section and key setting information to this standalone file. Then deploy your PB.INI with the EXE in the same deployment PC's folder.

Regards ... Chris

Comment
  1. Andres Slachevsky
  2. Friday, 26 April 2019 18:50 PM UTC
My Problem is with the Web Application.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 26 April 2019 19:18 PM UTC
PowerServer Web applications should work with the standard mail commands and no PB.ini is required.

For PowerServer Mobile applications however, you need to use the AWS (Appeon Work Space) object's "mail" functions instead (eon_mobile_awsex). For example: aws.of_sendmail (lstr_content, ls_recipient, ls_cc, ls_bcc, ls_attachmentfile)



For the Mail enabled Web App(s) - have you tried this feature in various web browsers like IE, Chrome, FF, etc?
  1. Helpful
  1. Andres Slachevsky
  2. Monday, 29 April 2019 17:25 PM UTC
the customer use FF.

I will ask them to try in other server.

i will try to deploy the PB.INI maybe it also can help
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.