Reputation: 13182
My email setting in env like this :
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=secret
MAIL_ENCRYPTION=tls
It works. But, I want to change email sender. So I don't use email sender gmail
My boss gives me a new email setting like this :
Mail Client Manual Settings
Secure SSL/TLS Settings (Recommended)
Username:[email protected]
Password:secret
Incoming Server:
palasik.in-hell.com
IMAP Port: 9xx
POP3 Port: 9xx
Outgoing Server:
palasik.in-hell.com
SMTP Port: 465
IMAP, POP3, and SMTP require authentication.
Non-SSL Settings (NOT Recommended)
Username:[email protected]
Password:secret
Incoming Server:
mail.secretshop.id
IMAP Port: 1xx
POP3 Port: 1xx
Outgoing Server:
mail.secretshop.id
SMTP Port: 587
IMAP, POP3, and SMTP require authentication.
I want to ask some questions
What is the difference between Secure SSL / TLS Settings and Non-SSL Settings?
what is the difference between incoming Server and Outgoing Server?
What new setting is more suitable?
I tried like this:
MAIL_DRIVER=smtp
MAIL_HOST=mail.secretshop.id
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=secret
MAIL_ENCRYPTION=tls
Is it the best choice?
Upvotes: 0
Views: 6792
Reputation: 2531
Its always recommended to use SSL as it is secured & reduces the changes of the sent mail being filtered by the recipient's host as spam.
Most email accounts have two servers:
The server that lets you send mail is called an outgoing, or SMTP server. The server that lets you receive mail is called an incoming, POP, or just Mail server.
To change the sender config in Laravel use in .env file:
MAIL_DRIVER=smtp
MAIL_HOST=palasik.in-hell.com
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=secret
MAIL_ENCRYPTION=ssl
Upvotes: 2
Reputation: 1220
You can setup the config on config/mail.php
or on the .env
of your app.
Upvotes: 0