Configure .env Symfony 4 SwitchMailer


  • | 300 points

    Hi,

    How can I configure the .env file to be able to send emails locally in Symfony 4?

    Thank you.

    ###> symfony/swiftmailer-bundle ###

    For Gmail as a transport, use: "gmail://username:password@localhost"

    For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="

    Delivery is disabled by default via "null://localhost"

    MAILER_URL=null://localhost
    ###< symfony/swiftmailer-bundle ###


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.