How to use my servers SMTP details to send emails in Laravel? - laravel

Currently, I'm using sendgrid as email service in my Laravel applications. I just curious to know can I use my server's SMTP details to send emails, like in WordPress.

Related

Use multiple sender address in Laravel Email

How to use different sender address in sending emails in Laravel. What i want is to send some emails from one email id and some mails from second email id but gmail is picking up every time the configuration done in env not from mailable class.
You can't replace sender with Google SMTP service.
Google rewrites the From and Reply-To headers in messages you send via it's SMTP service to values which relate to your gmail account.
GMail does allow sending via different addresses or alias but this is for sending via the GMail web app, see Here
If you own the domain you are supposedly sending from, use the Gmail for Domains , and setup a "myapp#mydomain.com" account.
Or, use another SMTP provider

what the best way to send verify mail and reset password mail from server?

im using digitalOcean vps and i upload my laravel projects but i have some problem with postfix all mails come as spam.
i did all things about smtp (spf, dkim ... etc) and test on (https://mail-tester.com) and i got (9/10) score but all mails still come as spam.
whats is the best way to delivery all mails (verify, reset password ...etc) to users without third party like (mailgun ...etc).
thank you
you can use zoho mail to link your domain to zoho mail account
if delivered mails didn't receive into inbox try to install ssl to your domain and send messages over SSL

Is there an API to get e-mail smtp information (for GMail)

I want to send an e-mail using gmail API.
I want to know if the email was received successfully. And if not, what the problem. (Such as SMTP Log)
I can use Google Admin G-Suite if need.
How can I do it?
Thank you.
What you are looking for is Request read receipt after an email is sent. This would notify the sender when the recipient reads the email.
This is not something that is currently available in the gmail api. you may want to consider submitting a feature request here

Codeigniter How to send mails but to my localhost folder

Yii2 has this feature I just want it to implement in CodeIgniter for testing purposes. I've already sent emails to gmail on one of my accounts.
Thaks.

form to mail not getting to exchange server recipient

this is terrible for me now. i used php mail function and also use Contact Form 7 plugins too on my wordpress theme. also smtp plugins too. change many smtp server. but not work. mail function and Contact Form 7 both working fine on other mail account (gmail, yahoo. hotmail or any other pop mail) not just my client pop account. because they use microsoft exchange server.
for test issue i did something like i sent mail to frist to one gmail account and i setup in gmail auto fwd to one them that pop account . it working well but this problem is in mail show where it is from (xxxx#gmail.com) .. i don't want to show that gmail address. or i want direct send to that pop account.
server is godaddy
guys any solution ?
Google doesn't allow you to send from other addresses unless you are hosting your domain with them.

Resources