DB error when test mail at install process

Description

at install dialog, input email info (user, password) and click test or save
test mail process issue message:
"DB.getDatabase: No Database Connection"
and test for sent email will always fail

reason: sent email read some configuration from database like MAIL_SEND_BCC_TO_FROM.
but database is not finish yet configuration

solution: add flag isTestEmail to Email class to distinguish case test email when install

Environment

None

Attachments

2

Activity

RedhuanO 
May 14, 2016 at 10:30 PM
(edited)


For GMAIL you also have to enable IMAP - https://support.google.com/mail/troubleshooter/1668960?hl=en
Then it works, you get an email in your mailbox, and the log shows:
testPort[74.125.68.108, 587]
testPort[74.125.68.108, 995]
testPort[74.125.68.108, 993]
06:27:14.311 EMail.send: (smtp.gmail.com) red1org@gmail.com -> [red1org@gmail.com] [44]
06:27:14.312 EMail.send: (m_auth) EMailAuthenticator[red1org@gmail.com/************] [44]
06:27:20.283 ConfigurationData.testMailServer: OK: Send Test Email to red1org@gmail.com [44]
06:27:28.931 ConfigurationData.testMailServer: OK: Mail Connect to INBOX #Msg=10078 [44]
06:27:32.438 ConfigurationData.testMail: OK: EMail = red1org@gmail.com [44]

Hiep Lq 
May 14, 2016 at 5:42 PM

if you test for gmail. don't forgot set turn on "Allowing less secure apps" for gmail
https://support.google.com/accounts/answer/6010255?hl=en

Fixed

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Created May 14, 2016 at 5:38 PM
Updated April 1, 2019 at 2:53 PM
Resolved February 20, 2019 at 3:04 PM