Call now to talk to an automation expert — (512) 345-2211

Knowledge Base

Enter search queries below or use the tag links to the right to browse the knowledge base by category (Show All Tags).


Using the SENDMAIL command with Gmail

To use the SENDMAIL command with the smtp.gmail.com outgoing mail server you must connect on port 587 with the /ssl option.

The syntax will look something like this:

SENDMAIL "smtp.gmail.com" "Joe Blow" "JB@somewhere.com" /port=587 /ssl /user="gmail.username@gmail.com" /pw="secret"

Robo-FTP can also connect to Gmail using implicit mode SSL on port 465 like this:

SENDMAIL "smtp.gmail.com" "Joe Blow" "JB@somewhere.com" /port=465 /sslimp /user="gmail.username@gmail.com" /pw="secret"

Gmail does not allow you to send attachments that could contain damaging executable code. Also note that with Gmail you can send messages up to 25 megabytes (MB) in size.

IMPORTANT

  • You must first run the CREATEMAIL command to create your email before you can issue the SENDMAIL command.
  • This technique will only work if you do not have multi-factor authentication turned on for your Gmail account.
  • Gmail is the property of Google Inc. so these connection requirements are subject to change.

Article last updated: 2017-02-07

Tags: Robo-FTP, SENDMAIL, email, SMTP

Need help figuring out where to start?

Our sales staff is available to answer product questions and help you determine if Robo-FTP is a good match for your project.

Call Now: (512) 345-2211