Sending Email Error Message

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
MadQuestion
Pro Scripter
Posts: 70
Joined: Wed Nov 08, 2017 6:54 pm

Sending Email Error Message

Post by MadQuestion » Fri Nov 10, 2017 1:31 pm

I keep getting an error when sending a email....

//This is the example code
Let>SENDMAIL_STATUS=1
Let>SMTP_SSL=1
Let>SMTP_AUTH=1
Let>SMTP_USERID=[email protected]
Let>SMTP_PASSWORD=Password
Let>SMTP_PORT=465
Let>subject=Test Message
Let>me=[email protected]
Let>myname=Mr Me
Let>recipients=[email protected]
Input>body,Enter your message:
SMTPSendMail>recipients,smtp.gmail.com,me,myname,subject,body,
Message>Result of SendMail: %SMTP_RESULT%

//Resulting Message After Disconnected Is

Result of SendMail: 534 <https://accounts.google.com/signin/cont ... t=AKgnsbtX
vr8aqXJXvMXbvO-CC49y5ALACEqxR9W9JzwReoi6Z7cahlVltjQr-p9rCzf-hjrU-sUk7v
ss1INsOAX1sKGmn0bJV3vuOI5DWPMJcL3hZH_neq7lVFaIU1qF5OMJbSIsz1YW1U7ooE2c
oiYGonFTqvtX0vAgAmz6egXKeS8Qx7KS2qqCETuKn5TMV2eYjYV8Ib0TsL7e7SUymX3azc
RQRbNpCV4cPbwselw91ZbrlEViwyE> Please log in via your web browser and
then try again.
Learn more at
https://support.google.com/mail/answer/78754 w13sm8277413edk.46 - gsmtp

I was logged in to my email in a web browser as I did this

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Sending Email Error Message

Post by Marcus Tettmar » Fri Nov 10, 2017 2:25 pm

Probably need to "Allow Less Secure Apps":
https://www.google.com/settings/security/lesssecureapps

It's not "less" secure really - you're still using SSL. Just Google making us jump through security hoops.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

MadQuestion
Pro Scripter
Posts: 70
Joined: Wed Nov 08, 2017 6:54 pm

Re: Sending Email Error Message

Post by MadQuestion » Fri Nov 10, 2017 5:58 pm

I already did allow less secure apps and I have enabled the POP and IMAP in my gmail inbox still no emails being sent still same error message...

MadQuestion
Pro Scripter
Posts: 70
Joined: Wed Nov 08, 2017 6:54 pm

Re: Sending Email Error Message

Post by MadQuestion » Fri Nov 10, 2017 6:04 pm

I also did the installation process for the OpenSSL files but still no luck. Even if there is another working method for sending an email ill try setting that method up to. Any suggestions really. It does not necessarily have to be gmail I can open sevral email provider accounts such as outlook, yahoo etc

User avatar
Djek
Pro Scripter
Posts: 147
Joined: Sat Feb 05, 2005 11:35 pm
Location: Holland
Contact:

Re: Sending Email Error Message

Post by Djek » Sat Nov 11, 2017 8:06 pm

hi,
your sample code worked for me, also with gmail account,

I think its possible that you mixed up the
Let>SMTP_USERID=[email protected]
and
Let>me=[email protected]

For SMTP_USERID you MUST use your own gmail account
so change to
SMTP_USERID=[email protected]

and let me= the same [email protected] or a email adress you allowed to send through your gmail account.

kind regards,
Djek

MadQuestion
Pro Scripter
Posts: 70
Joined: Wed Nov 08, 2017 6:54 pm

Re: Sending Email Error Message

Post by MadQuestion » Sun Nov 12, 2017 7:09 pm

Thanks for your help I retried your suggestion and it worked for me finally I have the solution I need. This forum is a great way to get useful answers to any issues to do with macro scheduler. I am so glad there is a huge resource pool of knowledge here in this forum.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts