A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » General XP issues or comments
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Send email via a command prompt



 
 
Thread Tools Display Modes
  #1  
Old May 29th 20, 03:06 AM posted to microsoft.public.windowsxp.general
Andy[_16_]
external usenet poster
 
Posts: 337
Default Send email via a command prompt

I use ubuntu, but am curious if this problem occurs with Windows as well.

I used to be able to send emails to yahoo using a command line.

However, both yahoo and gmail eliminated the ability for LESS SECURE APPS TO ACCESS EMAIL which stopped ssmtp(allows sending of emails) from working. (ssmtp: Authorization failed (535 5.7.0 (#AUTH005) Too many bad auth attempts.)

Does that occur when trying to do so from a command prompt in Windows?

Thanks,
Andy
Ads
  #2  
Old May 29th 20, 09:43 AM posted to microsoft.public.windowsxp.general
Ralph Fox
external usenet poster
 
Posts: 474
Default Send email via a command prompt

On Thu, 28 May 2020 19:06:01 -0700 (PDT), Andy wrote:

I use ubuntu, but am curious if this problem occurs with Windows as
well.

I used to be able to send emails to yahoo using a command line.

However, both yahoo and gmail eliminated the ability for LESS SECURE
APPS TO ACCESS EMAIL which stopped ssmtp(allows sending of emails)
from working.



Gmail only considers an app to be "less secure" when the app is
using one's main Google account password.

Was there anything preventing one of these alternatives from being
used ?

(a) Use an "app password" in place of one's main Google account
password when sending mail.
https://support.google.com/accounts/answer/185833
or
(b) Turn on "Less secure app access" in one's Google account
settings.
https://support.google.com/accounts/answer/6010255


2-Step-Verification must be turned on to *create* an app password,
but it can be turned off again afterwards and the app password will
still work.


(ssmtp: Authorization failed (535 5.7.0 (#AUTH005) Too many bad auth
attempts.)

Does that occur when trying to do so from a command prompt in
Windows?



If you were specifically looking for a Windows command line program
which supported OAuth2, then read this thread:
https://alt.comp.os.windows-10.narkive.com/So5sqzzo/oauth2

Otherwise, either (a) or (b) above should work the same in Windows as it
does in Ubuntu.


--
Kind regards
Ralph
  #3  
Old May 29th 20, 07:51 PM posted to microsoft.public.windowsxp.general
No_Name
external usenet poster
 
Posts: 627
Default Send email via a command prompt

On Fri, 29 May 2020 20:43:21 +1200, Ralph Fox
wrote:

On Thu, 28 May 2020 19:06:01 -0700 (PDT), Andy wrote:

I use ubuntu, but am curious if this problem occurs with Windows as
well.

I used to be able to send emails to yahoo using a command line.

However, both yahoo and gmail eliminated the ability for LESS SECURE
APPS TO ACCESS EMAIL which stopped ssmtp(allows sending of emails)
from working.



Gmail only considers an app to be "less secure" when the app is
using one's main Google account password.

Was there anything preventing one of these alternatives from being
used ?

(a) Use an "app password" in place of one's main Google account
password when sending mail.
https://support.google.com/accounts/answer/185833
or
(b) Turn on "Less secure app access" in one's Google account
settings.
https://support.google.com/accounts/answer/6010255


2-Step-Verification must be turned on to *create* an app password,
but it can be turned off again afterwards and the app password will
still work.


(ssmtp: Authorization failed (535 5.7.0 (#AUTH005) Too many bad auth
attempts.)

Does that occur when trying to do so from a command prompt in
Windows?



If you were specifically looking for a Windows command line program
which supported OAuth2, then read this thread:
https://alt.comp.os.windows-10.narkive.com/So5sqzzo/oauth2

Otherwise, either (a) or (b) above should work the same in Windows as it
does in Ubuntu.


It never occurred to me to try it but I wonder if there is a DOS
program that will talk to an Email server. At the host end, it really
only sees what you send it, no matter what software you use. You may
need your own server tho and not one of those Spam generators like
Google or Yahoo that probe you every time you poke at them.
  #5  
Old May 29th 20, 10:32 PM posted to microsoft.public.windowsxp.general
J. P. Gilliver (John)[_7_]
external usenet poster
 
Posts: 603
Default Send email via a command prompt

On Fri, 29 May 2020 at 14:51:01, wrote:
[]
It never occurred to me to try it but I wonder if there is a DOS
program that will talk to an Email server. At the host end, it really
only sees what you send it, no matter what software you use. You may
need your own server tho and not one of those Spam generators like
Google or Yahoo that probe you every time you poke at them.


As you say, the server only sees what you send it; it has no idea what's
generating it. There certainly are DOS email clients; in most cases,
they're what we (some of us) used before Windows! SMTP and POP (or POP3,
to give its original full name) are old protocols. Some servers have
increased login security, but once login is achieved, the majority still
talk with the old protocols. (Some might insist on encryption, but I
think most will operate without it if you want. Some might want you to
log into their web interface once, to enable "use less secure", but once
that's done, you can use your old software. Though I think they have a
tendency to turn the requirement back on.)

I don't know if there are any DOS mail clients that work with IMAP
rather than POP, but there's no technical reason why none should.
--
J. P. Gilliver. UMRA: 1960/1985 MB++G()AL-IS-Ch++(p)[email protected]+H+Sh0!:`)DNAf

I reckon in a few years we'll have GoogleBum. You'll type in someone's name
and it will show you what their bum looks like. Even if they've never posted a
nude picture, it will reconstruct their bum from bits of their face and leg
and whatever else they can find. - Charlie Brooker, RT 2014/12/13-19
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 11:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 PCbanter.
The comments are property of their posters.