Avatar of go4java
go4java
 asked on

How to send "tiny" email from command line (via Gmail)?

Hi all,

I'd like to use bmail http://www.beyondlogic.org/solutions/cmdlinemail/cmdlinemail.htm or similar to send a very short, simple plain text mail (admin notification) to another email address.

From what I read on Google, one has to use the following parms:

smtp.gmail.com (use authentication)
Use Authentication: Yes
Use STARTTLS: Yes (some clients call this SSL)
Port: 465 or 587

...and account name / password as well.

...OK....

But how to configure this with a simple command line tool such as bmail?
Any other tiny!!! solution???

Thanks.
Email ServersEmail Protocols

Avatar of undefined
Last Comment
jar3817

8/22/2022 - Mon
jar3817

You can't use bmail with gmail. Gmail requires an SSL connection to submit email and the bmail program doesn't look like it supports SSL.

The only other small cmdline email program I know of is called Blat (http://www.blat.net/) and it also doesn't support SSL. I know Yahoo also requires SSL, but not sure about any of the other free services.
go4java

ASKER
Thanks, jar3817.

I tried to get the thing running, but failed with its "complicated" syntax.
Given a standard situation with mail server address, authentication user + password, port 25: How to configure the batch file so that the whole systems runs smoothly?

Best regards
ASKER CERTIFIED SOLUTION
jar3817

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
jar3817

Oh yeah, and don't forget to put quotes around your subject in the command line, or else it'll screw up the argument numbering.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy