Search
Get Started
TTC
Theo's Typesafe Cult
•
3y ago
nano.dev
How to send email in trpc
how do i send a email with a trpc mutation using gmail
?
Theo's Typesafe Cult
Join
26,249
Members
View on Discord
Was this page helpful?
Yes
No
N
nano.dev
OP
•
1/26/23, 9:04 PM
google removed the option to turn on allow less secure apps
N
nano.dev
OP
•
1/26/23, 9:04 PM
and its giving me a error
C
cje
•
1/26/23, 9:05 PM
this has nothing to do with trpc
C
cje
•
1/26/23, 9:05 PM
anything that works in node will work
N
nano.dev
OP
•
1/26/23, 9:08 PM
true
N
nano.dev
OP
•
1/26/23, 9:08 PM
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
,
C
cje
•
1/26/23, 9:09 PM
btw you almost certainly want to use an external service for this
C
cje
•
1/26/23, 9:10 PM
unless you like landing in peoples spam folders
C
cje
btw you almost certainly want to use an external service for this
N
nano.dev
OP
•
1/26/23, 9:23 PM
its for a contact form
N
nano.dev
OP
•
1/26/23, 9:28 PM
ye
N
nano.dev
OP
•
1/26/23, 9:45 PM
y not
N
nano.dev
OP
•
1/26/23, 9:45 PM
i have a email for all my web dev stuff and it would be nice if my contact form would go to it
N
nano.dev
OP
•
1/26/23, 11:00 PM
how would i do it
?
M
matvey
•
1/26/23, 11:01 PM
You can use gmail
, just generate an app password for SMTP in the google settings
M
matvey
•
1/26/23, 11:02 PM
'nodemailer
' is the library for sending emails
, just google how to use gmail with nodemailer