Email is not sent using Google Mail Server - Laravel 5.4 - email

I am using Google Mail server (14 trails and will buy 5$/month) with digitalocean hosting. https://gsuite.google.com/pricing.html?tab_activeEl=tabset-companies
Below .env is as below:
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=info#mydomain.com
MAIL_PASSWORD=passwordofinfo#mydomain.com
MAIL_ENCRYPTION=tls
When send it from local computer, the mail sending function works well. But When I upload the website to server, I got below error with mail sending function:

You can try mail driver or sendmail instead of smtp
MAIL_DRIVER=smtp
to
MAIL_DRIVER= mail or sendmail

Related

Vesta / Cloudflare DNS/ Can't connect to mail server with outlook client

I started to use Cloudflare, but I got some problems with mail management.
I can receive and send emails through Vesta Roundcube webmail. But my outlook client stopped working. I can't add my email to any email client such as Apple Mail or Outlook. I think it does not receive a message from the mail server. I am stuck, I don't know where to look next.
This is my config on Cloudflare. And it seems fine. My web and email is on a different webserver.
Any idea of what should be changed?
I finally fixed it. Change your mail A record from "Proxied" to Dns only.

how to setup mail exchange to send out email from xampp

I would like to send out notification from my php website. However I am using exchange. When I set up in sendmail.ini and php.ini. I dono what to key in for the smtp for my email exchange.
I would like to send out notification from my php website. However I am using exchange. When I set up in sendmail.ini and php.ini. I dono what to key in for the smtp for my email exchange.
I would like to send out notification from my php website. However I am using exchange. When I set up in sendmail.ini and php.ini. I dono what to key in for the smtp for my email exchange.
Anyone could help?
Exchange server is an SMTP server like all other internet e-mail servers.
Use the host name of your Exchange server, and port 25 or 465 (for SMTP/SSL).
Perhaps your Exchange server requires authentication. That is normal if you want to send to outside domains. In that case, you need to configure that as well.
You should ask your Exchange admins for the details, if you don't have them.

Setting up Send only mail server

I am setting a mail server for one of my website for which I am using external ZOHO mail server. But for sending mails through the website I am using postfix mail server. Now the issue I am facing is when I send mail through my website to some other mail eg. tushar#gmail.com it send the mail with no issue but if I send mail to one of my own domain email e.g. care#example.com the mail is not received.
I have follows this tutorial to setup send the only postfix: and followed SPF record and DKIM setup using this and this.
I resolved the problem by removing $myhostname variable from mydestination, which probably changed the way mail was sent. Earlier it was through local and now it is being sent through smtp

Gmail doesn't show own domain mail

I have changed my domain provider to Goddady, also I have my own server so I set domain DNS to this server...
Inside cPanel, I changed mail DNS to google DNS, and all the email is received on the mailboxes correctly.
The problem comes when I try to send mails from Wordpress to any mail from the same domain, gmail doesn't show it, but the email are achieving the server.
From webmail I can check this, only the wordpress mails are arriving to the server, but no to gmail mailbox.
If I try to send mail from Wordpress to another mail (not same domain) it works...
Any ideas?
Thanks a lot
Solution: Open server ports 465 and 587 and set gmail smtp in Wordpress

How to configure easyphp 5.3.9 to send an email by using gmail as Server instead localhost

I'm trying to send an email using easyphp 5.3 as localhost and joomla 2.5. I've just configurate joomla from site->global configuration->server to send an email using port 465 and SMTP.gmail.com as SMTP host and by introducing my gmail account and password. The trouble is that the email is not sent I think because I've not configurated easyphp for it (I've seen a PHP mailer inside easyphp)
Some help please.
Thank you