Posts: 166
Threads: 82
Joined: Jul 2015
Reputation:
1
Hi,
As you know, we cannot use gmail to send email. App password is also ended.
Can you suggest something else that we can use with LM5
Regards
Posts: 166
Threads: 82
Joined: Jul 2015
Reputation:
1
29.05.2023, 15:09
(This post was last modified: 30.05.2023, 05:52 by savaskorkmaz.)
Hi i created a user in sendgrid then i created a smtp relay method. It gives me information like :
Integrate
Verify
How to send email using the SMTP Relay
Create an API key
This allows your application to authenticate to our API and send mail. You can enable or disable additional permissions on the API keys page.
"xxx" was successfully created and added to the next step.
xxxxx
Configure your application
Configure your application with the settings below.
Server smtp.sendgrid.net
Ports
25, 587 (for unencrypted/TLS connections)
465 (for SSL connections)
Username apikey
Password xxxx
Then I entered this information in to LM common settings like :
-- send an e-mail
function mail(to, subject, message)
-- make sure these settings are correct
local settings = {
-- "from" field, only e-mail must be specified here
from = 'xxxxxx',
-- smtp username
user = 'apikey',
-- smtp password
password = 'xxxxxx',
-- smtp server
server = 'smtp.sendgrid.net',
-- smtp server port
port = 465,
-- enable tls, required for gmail smtp
secure = 'tlsv1_2',
}
But i couldn't send email via event script used to be before.
Any suggestions ?