Turnkey email settings
No edit summary
No edit summary
Line 34: Line 34:


'''Note!''' When you send using a service like GMail, don't forget to use the sender email in your server side job, or you might get an error message like "Incorrect login".
'''Note!''' When you send using a service like GMail, don't forget to use the sender email in your server side job, or you might get an error message like "Incorrect login".
'''Updates 2020-05-25:''' After the emailing stopped from our Portal investigations led to us doing the following:
1. We now seperate the login-email from the "from"-email. The From-email you can change via viewmodel, but the login email is always taken from the MDrivenServer settings.
2. GMail has something they call application login https://support.google.com/accounts/answer/185833?hl=en , we switched to using this to get our emailing working after it suddenly stopped.

Revision as of 12:09, 25 May 2020

Emails from a turnkey app is sent by serverside jobs running in the MDriven server used by the Turnkey site.

You can change email settings for a Turnkey Site either in the portal or in the MDriven Servers email settings

When you apply settings from the portal, the MDriven server settings are updated.

Read more about how to create serverside viewmodels for sending emails

Explanation for input fields

Field Description
SMTP Host name The name of the server, either IP-address or host name. For example smtp.gmail.com
Host port This is usually port 587 when connecting using SSL (can be left blank and default will be used)
Use SSL with SMTP When enabled, the call to the SMTP host will be using encryption
SMTP account / email The account used to login to the SMTP service, usually an email
SMTP password The password to use when logging in to the SMTP service

Notes for using Gmail

When using GMail you need to turn on "Less secure app access" (you do NOT need to create a "app password").

Log in to your GMail/Google account. Go to account settings -> Security and then enable "Access for less secure apps".

Note! When you send using a service like GMail, don't forget to use the sender email in your server side job, or you might get an error message like "Incorrect login".

Updates 2020-05-25: After the emailing stopped from our Portal investigations led to us doing the following:

1. We now seperate the login-email from the "from"-email. The From-email you can change via viewmodel, but the login email is always taken from the MDrivenServer settings.

2. GMail has something they call application login https://support.google.com/accounts/answer/185833?hl=en , we switched to using this to get our emailing working after it suddenly stopped.

This page was edited 86 days ago on 02/10/2024. What links here