Use SMTPSendMail with Gmail

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
philmcmannis
Newbie
Posts: 10
Joined: Tue Jun 26, 2007 2:46 pm

Use SMTPSendMail with Gmail

Post by philmcmannis » Thu Jun 28, 2007 7:15 pm

Is it possible to use SMTPSendMail with Gmail. I have my gmail account turned on to utilize SMTP but the command doesn't seem to be working. I'm going to go on a limb and assume it's because SMTPSendMail doesn't use SSL or something like that.

Anyone have experience with this?

Thanks
________
Honda SL70
Last edited by philmcmannis on Sat Feb 12, 2011 4:02 am, edited 1 time in total.

User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu Jun 28, 2007 7:31 pm

I have not set this up but I would think it should work. You didn't say that you have set up authentication or that you specified a port, the Gmail site states:
Outgoing Mail (SMTP) Server - requires TLS:
smtp.gmail.com (use authentication)
Use Authentication: Yes
Use STARTTLS: Yes (some clients call this SSL)
Port: 465 or 587
Macro Scheduler SMTPSendMail help states:
If you are using an SMTP server that requires authentication, you can enable authentication by setting SMTP_AUTH to 1, and then setting SMTP_USERID and SMTP_PASSWORD to the username and password that you need to connect to the SMTP server. e.g:

Let>SMTP_AUTH=1
Let>SMTP_USERID=myuser
Let>SMTP_PASSWORD=frogslegs


By default the port used by SMTPSendMail is 25. If you need to change the port number set the value of SMTP_PORT.
Any of this helpful?

philmcmannis
Newbie
Posts: 10
Joined: Tue Jun 26, 2007 2:46 pm

Post by philmcmannis » Thu Jun 28, 2007 7:38 pm

I have authentication setup. Current code is below. Result Unable to connect to server

Code: Select all

Let>SENDMAIL_STATUS=1
Let>SMTP_AUTH=1
Let>[email protected]
Let>SMTP_PASSWORD=password
Let>SMTP_PORT=465
SMTPSendMail>Recipients,smtp.gmail.com,email,Name,Subject,Body,
Message>%SMTP_RESULT%

________
Volcano Classic Vaporizer
Last edited by philmcmannis on Sat Feb 12, 2011 4:02 am, edited 1 time in total.

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

Post by Marcus Tettmar » Thu Jun 28, 2007 8:04 pm

It will not work. SMTPSendMail does not support SSL/TLS.

Authentication (where a username/password is required) is not the same thing as encryption.
Last edited by Marcus Tettmar on Thu Jun 28, 2007 8:07 pm, edited 1 time in total.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Thu Jun 28, 2007 8:06 pm

Gmail requires TLS encryption, and (unless something has changed) macroscheduler sendmail doesn't support that so it's not going to work. I have played with this extensively and have not found a mainstream free email that can be used this way. I use an upgraded ($20?/yr) Yahoo account for my automated email.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Jun 28, 2007 9:59 pm

Mozilla Thunderbird can be set up as an email client to send/receive emails from free gmail accounts. Does that help?
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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