gmail

gmail

June 14, 2024 | seedling, permanent

tags :

#

Setting up to send emails from the server #

Creating App Password to use it in the server as password, it is possible to create app password only after enabling multi factor authentication. ref ref 2

using (var smtp = new Smtp())

    // connect and use the App Password instead of the main Google account password
    smtp.Connect("smtp.gmail.com", 465, SslMode.Implicit);
    smtp.Login("example@gmail.com", "haiqdcoiefewedxq");

    // do something ...

    smtp.Disconnect();

sentry #

ref

mail.backend: 'smtp' # Use dummy if you want to disable email entirely
mail.host: 'smtp.gmail.com 8'
mail.port: 25
mail.username: 'example@gmail.com'
mail.password: 'xxxxxxxxxxx'
mail.use-ssl: true
mail.from: 'example@gmail.com'


Links to this note

Go to random page

Previous Next