Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.bbs.mystic    |    Mystic Sysops are mystical nerds...    |    11,842 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 10,884 of 11,842    |
|    Al Derosa to All    |
|    Re: Password Reset email..    |
|    15 May 22 07:37:50    |
   
   From: nospam.Al.Derosa@f1.n770.z1223.fidonet.org   
      
    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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca