How to send email in trpc

how do i send a email with a trpc mutation using gmail?
16 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nano.dev
nano.dev2y ago
google removed the option to turn on allow less secure apps and its giving me a error
cje
cje2y ago
this has nothing to do with trpc anything that works in node will work
nano.dev
nano.dev2y ago
true
nano.dev
nano.dev2y ago
response: '535-5.7.8 Username and Password not accepted. Learn more at\n' + '535 5.7.8 https://support.google.com/mail/?p=BadCredentials z13-20020ac86b8d000000b003995f6513b9sm1344877qts.95 - gsmtp',
Check Gmail through other email platforms - Gmail Help
Set up IMAP and change your SMTP settings to read Gmail messages in other mail clients, like Microsoft Outlook and Apple Mail. When you use IMAP, you can read your Gmail messages on multiple devices,
cje
cje2y ago
btw you almost certainly want to use an external service for this unless you like landing in peoples spam folders
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nano.dev
nano.dev2y ago
its for a contact form
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nano.dev
nano.dev2y ago
ye
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nano.dev
nano.dev2y ago
y not i have a email for all my web dev stuff and it would be nice if my contact form would go to it
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nano.dev
nano.dev2y ago
how would i do it?
Matvey
Matvey2y ago
You can use gmail, just generate an app password for SMTP in the google settings 'nodemailer' is the library for sending emails, just google how to use gmail with nodemailer
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server