hello, what do i type here to use my own smtp conf...
# support-questions
k
hello, what do i type here to use my own smtp configuration ? i have an email address with password already if i need to send from that email address
Copy code
js
EmailPasswordNode.init({
        emailDelivery: {
          service: new STMPService({
            smtpSettings: {
              host: "smtp.office365.com",
              password: process.env.EMAIL_PW,
              port: 587,
              from: {
                name: "",
                email: process.env.EMAIL_ADDRESS,
              },
              secure: true
            },
          })
        },
      }),
r
hey! What you have done seems correct. What is the question here?
k
i don't know exactly what values go into what keys, i tried those but it doesn't seem to work
r
Are you getting any errors?
k
i have no errors, but my email address is not sending the password reset mail
r
Can you enable debug logs and then call the password reset API?
Also, please make sure that the email you are sending the password reset email to has been used to sign up. Otherwise supertokens doesn't send an email
(in the context of password reset)
k
ok i'm an idiot lol, signed up 😅 now i got an error
Copy code
error - [Error: 16664:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:332:
] {
  library: 'SSL routines',
  function: 'ssl3_get_record',
  reason: 'wrong version number',
  code: 'ESOCKET',
  command: 'CONN',
  page: '/api/auth/[[...path]]'
}
r
no worries! So probably try secure: false, or then give another port that allows for a secure connection
k
disabling secure worked, thanks 🙏
r
awesome
20 Views