Create an email account with cpanel
Setting up SMTP
In Old CPanel
Email Accounts >>
go to the particular email account >> Configure Email Client
ON Updated CPanel
Email Accounts >>
Go to the particular email account >> Manage
On the next page >> Connect Devices
uder Configuration
Tab
*most likely you will get smtp and pop3 settings, in the first email you get from your host when you set up the email
Using Gmail account and space for the email you created
https://www.doteasy.com/domain-email-and-website-hosting-articles/importing-your-domain-email-account-into-your-gmail-account
https://www.hostinger.in/tutorials/email/how-to-set-up-gmail-for-your-own-domain
For Outgoing Email
- Login to Gmail
- Click Settings Icon
- Click on
Accounts and Import
Tab - Look for
Send mail as:
- Look for
(Use Gmail to send from your other email addresses)
just below it - click
Add another Email Address
- Configure SMTP settings correctly
- Averification email will be sent to that email with verification code
- Enter the verification code
For Incoming Email
- Click
Add amail acocunt
to the right ofCheck mail from other accounts:
- Set
POP3
settings
Using Gmail mailservers in your custom apps like PHPMailer
https://support.google.com/accounts/answer/185833
Create & use App Passwords
1 . Login to Gmail
- Go to
manage accounts
- Go to
Security
tab - Enable
2-Step Verification
- Set up
App Password
, a 16 digit password will be automattically generated by google . This should be set as $mail->Password while you use php mailer, not the login password - Secure connection (
SSL/TLS
) is required: Tick the checkbox.this is important
if you use PHPmailer, you must set $mail->SMTPSecure =PHPMailer::ENCRYPTION_
STARTTLS/STARTSMTPS, based on this setting - Normally the server settings for Gmail will be like
SMTP server($mail->Host) : smtp.gmail.com
SMTP port($mail->port) : 587
|
|