I am trying to send a simple email message when a script completes. I am using Gmail and have tried the format of the example in the help docs. I still Cannot get this to work, and I am not sure what I am missing.
Let>SMTP_AUTH=1
Let>SMTP_USERID=[email protected]
Let>SMTP_PASSWORD=xxxxx
Let>SMTP_PORT=465
Let>SMTP_SSL=1
SMTPSendMail>[email protected](receiving email),smtp.gmail.com,[email protected](sending email),Automations,test,hello world,
Automatically send email when macro completes
Moderators: Dorian (MJT support), JRL
- Dorian (MJT support)
- Automation Wizard
- Posts: 1389
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: Automatically send email when macro completes
For gmail you may need to enable 'less secure' apps and/or you might also need to create an app password:
https://support.google.com/accounts/ans ... 0255?hl=en
https://support.google.com/accounts/ans ... 0255?hl=en
Yes, we have a Custom Scripting Service. Message me or go here
Re: Automatically send email when macro completes
That did it. Appreciate the help!
- Dorian (MJT support)
- Automation Wizard
- Posts: 1389
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: Automatically send email when macro completes
Always happy to help.
Yes, we have a Custom Scripting Service. Message me or go here
Re: Automatically send email when macro completes
I was just informed that we are looking to do this with Outlook as well, is there any setting similar to Google that I need to change somewhere to get it to work? I have the macro set up with all of the correct info for Outlook, but that is not working.
- Dorian (MJT support)
- Automation Wizard
- Posts: 1389
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: Automatically send email when macro completes
If it's Office 365 you could try something like this.
Code: Select all
Let>server=smtp.office365.com
Let>SMTP_AUTH=1
Let>[email protected]
Let>SMTP_PASSWORD=Password
Let>SMTP_PORT=587
Let>SMTP_SSL=1
Let>SMTP_USETLS=3
Let>subject=Hello
Let>body=Please find the attached
Let>[email protected]
Let>myname=John Smith
Let>attach=C:\myfile.txt
Let>[email protected]
SMTPSendMail>recipients,server,me,myname,subject,body,attach
Yes, we have a Custom Scripting Service. Message me or go here
Re: Automatically send email when macro completes
Perfect this worked, thanks again!