Turnkey email settings
No edit summary
(Automatically adding template at the end of the page.)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Emails from a turnkey app is sent by [[MDrivenServer periodic server-side actions|serverside jobs]] running in the MDriven server used by the Turnkey site.
Emails from a Turnkey app are sent by [[MDrivenServer periodic server-side actions|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 [[Fill in the email settings in the admin UI|email settings]]
You can change email settings for a Turnkey Site either in the Portal or in the MDriven Servers [[Fill in the email settings in the admin UI|email settings]].


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


Read more about how to create [[Emailing from an app using MDrivenServer|serverside viewmodels]] for sending emails
Read more about how to create [[Emailing from an app using MDrivenServer|serverside viewmodels]] for sending emails


==== Explanation for input fields ====
==== An Explanation for Input Fields ====
{| class="wikitable"
{| class="wikitable"
!Field
!Field
Line 13: Line 13:
|-
|-
|SMTP Host name
|SMTP Host name
|The name of the server, either IP-address or host name. For example smtp.gmail.com
|The name of the server, either an IP address or host name. For example smtp.gmail.com
|-
|-
|Host port
|Host port
Line 19: Line 19:
|-
|-
|Use SSL with SMTP
|Use SSL with SMTP
|When enabled, the call to the SMTP host will be using encryption
|When enabled, the call to the SMTP host will use encryption
|-
|-
|SMTP account / email
|SMTP account/email
|The account used to login to the SMTP service, usually an email
|The account used to login to the SMTP service, usually an email
|-
|-
Line 28: Line 28:
|}
|}


==== Notes for using Gmail ====
==== 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").
When using Gmail, turn on "Less secure app access" (see updates ''2020-05-25'' below).


Log in to your GMail/Google account. Go to account settings -> Security and then enable "Access for less secure apps".
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".
'''Note!''' When you send using a service like Gmail, don't forget to use the sender email in your serverside job, or you might get an error message like "Incorrect login".
 
'''Updates 2020-05-25:''' After the emailing stopped, our Portal investigations led to us do the following:
 
1. We now separate the login email from the "from"-email. You can change the "from"-email via the ViewModel, but the login email is always taken from the MDrivenServer settings.
 
2. Gmail has something called application login: https://support.google.com/accounts/answer/185833?hl=en. We switched to this to get our email working after it suddenly stopped.
[[Category:MDriven Turnkey]]
{{Edited|July|12|2024}}

Latest revision as of 15:48, 10 February 2024

Emails from a Turnkey app are 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

An Explanation for Input Fields

Field Description
SMTP Host name The name of the server, either an 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 use 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, turn on "Less secure app access" (see updates 2020-05-25 below).

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 serverside job, or you might get an error message like "Incorrect login".

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

1. We now separate the login email from the "from"-email. You can change the "from"-email via the ViewModel, but the login email is always taken from the MDrivenServer settings.

2. Gmail has something called application login: https://support.google.com/accounts/answer/185833?hl=en. We switched to this to get our email working after it suddenly stopped.

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