Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use cPanel email accounts to send confirmation emails in laravel?

I have uploaded my laravel project onto the production server. Locally, I was using my personal gmail account to send confirmation emails to new users. Since I've uploaded it already, I created an email account in cpanel "[email protected]". How do I use this in my Laravel project?

  1. Can I use this to send email confirmations to new users? Or do I need to create another service provider like Mandrill or Mailchimp?
  2. If I can use this, what is the settings? Sorry I'm very new.
like image 461
Paul Lucero Avatar asked Jul 26 '16 23:07

Paul Lucero


People also ask

Can I use cPanel email?

You can also use your cPanel server as a mail server. Read on to learn more about cPanel Webmail and how to login to check your email accounts' inboxes!

Can I use cPanel email on Gmail?

You can now use your cPanel email address from directly within an existing Gmail account. When you Compose a new email, you will see the option to choose which email address you are sending from.


1 Answers

In .env file add following details

MAIL_DRIVER=smtp
MAIL_HOST=your_host
MAIL_PORT=your_port
MAIL_USERNAME=your_mail_username
MAIL_PASSWORD=your_mail_password
MAIL_ENCRYPTION=your_encryption
like image 65
Edwin Thomas Avatar answered Sep 28 '22 16:09

Edwin Thomas