Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dib258's avatar
Level 11

What configuration to use mail php

Hi,

I'm about to deploy a website and I'm on the .env configuration in Forge.

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=null

What should I put in here to be able to use the normal mail() php function ?

Do I need to install and configure something specific on my Digital Ocean server ?

Thanks in advance !

0 likes
1 reply

Please or to participate in this conversation.