TIP: Click on subject to list as thread! ANSI
echo: mystic
to: Dan Clough
from: Al Derosa
date: 2022-05-15 07:37:00
subject: Re: Password Reset email.

 DC> Re: Re: Password Reset email..
 DC> By: Al DeRosa to Paul Hayton on Sat May 14 2022 06:53 am

 DC> Okay, I've got this sorted out. I can send automated (from a script or a
 DC> cron job) emails via gmail.com still, using their "apps password". Here
 DC> are the basic steps to get this working:

 DC> 1. Log in to the gmail account you want to use for the emails. Since I
 DC> don't want to 2-factor respond every time I login to one of my "regular"
 DC> gmail accounts, I created a new account, for use with this automated
 DC> sending only. 

 DC> 2. Enable the 2-factor authentication for this account. Somewhere under
 DC> "Security" in settings.

 DC> 3. Also in the Security section, you'll see a choice/link for "Apps
 DC> passwords". Go in there, choose "Other" for the app, then give it a custom
 DC> name (I chose 'mailx' since that's what's sending my emails). Then click
 DC> "Generate" and it will give you a 16-character password to use for that
 DC> account. 

 DC> 4. Have your script or whatever (even an email app like Thunderbird I
 DC> suppose) log in with the account name and that new password, and it won't
 DC> ask you for any 2-factor stuff.

 DC> For my use (on Linux), I have a mail config file called '.mailrc' in my
 DC> home directory. Part of it's contents are:

 DC> account ReminderBoy {
 DC> set smtp-use-starttls
 DC> set ssl-verify=ignore
 DC> set smtp=smtp://smtp.gmail.com:587
 DC> set smtp-auth=login
 DC> set smtp-auth-user=XXXXXXXX@gmail.com
 DC> set smtp-auth-password=XXXXXXXXXXXXXXXX
 DC> set from="XXXXXXXX@gmail.com (Reminder Boy)"
 DC> }

 DC> This "account" is referenced from a script that calls the mailing program
 DC> 'mailx', like this:

 DC> cat report | mailx -A ReminderBoy -s "Email subject here"
 DC> recipient@XXX.net 

 DC> Works like a champ. :-)

 DC> Let me know if any of you have success with this, if you would.

Running in Windows, but I will definitely give everything here a shot, will respond back with how it goes..

Al
--- SBBSecho 3.14-Win32
                                                                                 
* Origin: The Wrong Number Family Of BBS' - Bucko's Den BBS (1:267/157.1)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.