This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Sending email without oauth2 accounts
#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
Reply
#2
Use a different email provider that doesn't enforce OAuth. You can also use a service like https://sendgrid.com/ since only sending emails is needed.
Reply
#3
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 ?
Reply
#4
Your from field is incorrect. Log return values of the mail function like here: https://forum.logicmachine.net/showthread.php?tid=4754
Reply
#5
https://forum.logicmachine.net/showthrea...6#pid30706
Reply


Forum Jump: