get an email account from the person in-charge...
Send email with only MAIL_HOST setting
I am working on a deployment server, my company asked me to set up the email but only gave me the SMTP server host/ip address.
Literally, NO user account, NO encryption, and NO port info.
The deployment server and the SMTP server are in the same VPN network, and the guy said the setup on the SMTP server is all set.
Of course, I could not send any emails with this setting.
I could not get much info from the internet, is that possible to send an email with only a Host? If yes how can I change the settings?
MAIL_DRIVER=smtp
MAIL_HOST=10.xxx.xxx.xx
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=
Appreciate your help!
If no username is provided, laravel will not try to set one (same with encrytion)
https://github.com/laravel/framework/blob/8.x/src/Illuminate/Mail/MailManager.php#L204
Be aware that you need to provide null to make it work!
MAIL_USERNAME=null
MAIL_ENCRYPTION=null
Please or to participate in this conversation.