File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 146146 "communicationServiceOptions" : {
147147 "from" : " noreply-discord@henallux.be" ,
148148 "port" : 587 ,
149- "host" : " smtp.office365.com"
149+ "host" : " smtp.office365.com" ,
150+ "tls" : {
151+ "rejectUnauthorized" : false
152+ },
153+ "debug" : true ,
154+ "logger" : true
150155 }
151156}
Original file line number Diff line number Diff line change 154154 "communicationServiceOptions" : {
155155 "from" : " noreply-discord@henallux.be" ,
156156 "port" : 587 ,
157- "host" : " smtp.office365.com"
157+ "host" : " smtp.office365.com" ,
158+ "tls" : {
159+ "rejectUnauthorized" : false
160+ }
158161 }
159162}
Original file line number Diff line number Diff line change @@ -53,8 +53,10 @@ export async function readConfig(): Promise<Configuration> {
5353 ...json ,
5454 version : `${ environment } -v${ packageInfo . version } ` ,
5555 } ;
56- config . communicationServiceOptions . auth . user = process . env . SMTP_USER ;
57- config . communicationServiceOptions . auth . pass = process . env . SMTP_PASS ;
56+ config . communicationServiceOptions . auth = {
57+ user : process . env . SMTP_USER ,
58+ pass : process . env . SMTP_PASS
59+ } ;
5860
5961 return config ;
6062 } catch ( err : unknown ) {
Original file line number Diff line number Diff line change 1+ import { ISenderAPI , SenderAPIData } from '@hunteroi/discord-verification' ;
12import { createTransport } from 'nodemailer' ;
23import SMTPTransport from 'nodemailer/lib/smtp-transport' ;
3- import { ISenderAPI , SenderAPIData } from '@hunteroi/discord-verification' ;
44
55export type SMTPServiceOptions = SMTPTransport . Options ;
66
@@ -17,9 +17,9 @@ export default class SMTPService implements ISenderAPI {
1717 await transporter . sendMail ( {
1818 from : this . #options. from ,
1919 to : data . to ,
20- subject : 'Discord Authentication Code' ,
21- text : `Hello ${ name } ! Your code is ${ code } . See you soon o/` ,
22- html : `<p>Hello ${ name } !</p><p>Your code is ${ code } .</p><p>See you soon o/</p>`
20+ subject : " Code d'Authentification Discord" ,
21+ text : `Hello ${ name } ! Ton code est ${ code } . A plus tard o/` ,
22+ html : `<p>Hello ${ name } !</p><p>Ton code est ${ code } .</p><p>A plus tard o/</p>`
2323 } ) ;
2424 }
2525}
You can’t perform that action at this time.
0 commit comments