Sending email without oauth2 accounts - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Sending email without oauth2 accounts (/showthread.php?tid=4790) |
Sending email without oauth2 accounts - savaskorkmaz - 29.05.2023 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 RE: Sending email without oauth2 accounts - admin - 29.05.2023 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. RE: Sending email without oauth2 accounts - savaskorkmaz - 29.05.2023 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 ? RE: Sending email without oauth2 accounts - admin - 29.05.2023 Your from field is incorrect. Log return values of the mail function like here: https://forum.logicmachine.net/showthread.php?tid=4754 RE: Sending email without oauth2 accounts - admin - 30.05.2023 https://forum.logicmachine.net/showthread.php?tid=2341&pid=30706#pid30706 |