How to send email in trpc

how do i send a email with a trpc mutation using gmail?
16 Replies
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
nano.dev
nano.dev17mo ago
google removed the option to turn on allow less secure apps and its giving me a error
cje
cje17mo ago
this has nothing to do with trpc anything that works in node will work
nano.dev
nano.dev17mo ago
true
nano.dev
nano.dev17mo 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
cje17mo ago
btw you almost certainly want to use an external service for this unless you like landing in peoples spam folders
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
nano.dev
nano.dev17mo ago
its for a contact form
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
nano.dev
nano.dev17mo ago
ye
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
nano.dev
nano.dev17mo 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 User17mo ago
Message Not Public
Sign In & Join Server To View
nano.dev
nano.dev17mo ago
how would i do it?
Matvey
Matvey17mo 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 User17mo ago
Message Not Public
Sign In & Join Server To View