Support > Repository > Sending and receiving e-mail > Mail server configuration example
ja | en

Here is an example of setting up a typical mail server.

Send

Setting items value Remarks
Mail Server smtp.gmail.com
protocol SMTP over SSL
Using SMTP authentication To use
SMTP authentication account name XXX@gmail.com Your Gmail email account
SMTP authentication password *** Your Gmail email account password

Reception (POP)

Setting items value Remarks
Mail Server pop.gmail.com:995
account name XXX@gmail.com Your Gmail email account
password *** Your Gmail email account password

Certification issues and countermeasures

Wagby's mail sending function does not support OAuth 2.0 as an authentication method when connecting to SMTP.As a result, Gmail handles it as an application with low security and refuses connection.As for the mail reception function by POP, connection may not be made in the same way.

In this case, please refer to the following page to enable access to applications with low security.

"Allow less secure applications to access your account"
https://support.google.com/accounts/answer/6010255?hl=ja

Alternatively, you can enable 2-step verification for your Google Account and set your app password.To access from Wagby, please use the set application password as the password.

Future Wagby is planning to support OAuth 2.0 for SMTP authentication method.(Since Gmail does not support OAuth 2.0 for POP authentication, it is necessary to change the settings on Gmail side as described above.)

trouble shooting

Send

Setting items value Remarks
Mail Server smtp.office365.com:587
protocol SMTP
Using SMTP authentication To use
SMTP authentication account name - Your Office 365 email account
SMTP authentication password *** Password for your Office 365 mail account

Additional settings

  1. Stop the build of Wagby application.
  2. Create myMimeMailUtilities.properties.UTF8 in customize/resources /.
  3. Open this file with a text editor.(Please do not use "Notepad" included with Windows OS.)
  4. Add the following line.
    mail.smtp.starttls.enable=true
  5. Save the file and build it.
  6. Make sure that the description of "mail.smtp.starttls.enable = true" is included in the built wagbyapp/webapps/wagby/WEB - INF/classes/MimeMailUtilities.properties.(The above description will be included automatically on subsequent builds.)
  7. Start the application.

Client does not have permissions to send as this sender

The following error.

com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.60 SMTP; Client does not have permissions to send as this sender

This may occur when sending mail by specifying a sender (From) that is different from the mail account used for SMTP authentication.Specify the mail sender and the SMTP authentication mail account as the same one and then send the e-mail.