1. Andres Slachevsky
  2. PowerServer Mobile
  3. Friday, 26 April 2019

 

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
0
Votes
Undo

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
There are no comments made yet.
  1. Thursday, 2 May 2019
  2. PowerServer Mobile
  3. # 1
Chris Pollach Accepted Answer Pending Moderation
0
Votes
Undo

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
My Problem is with the Web Application.
  1. Andres Slachevsky
  2. Friday, 26 April 2019
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. Chris Pollach
  2. Friday, 26 April 2019
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. Andres Slachevsky
  2. Monday, 29 April 2019
There are no comments made yet.
  1. Friday, 26 April 2019
  2. PowerServer Mobile
  3. # 2
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.