# Configuring Email

https://vmshost.io/kb/a/configuring-email

## Email Connection

### Ports:

IMAP: 143, 993 
SMTP: 25, 465 (SSL), 587 (STARTTLS)

## Configuring phpvms

For email, go to cPanel, and create a new email address. Then, to configure phpVMS (this below is for phpVMS 7, but the values should be similar), use the config below:

```
MAIL_DRIVER=smtpMAIL_FROM_NAME="FROM NAME"MAIL_FROM_ADDRESS="EMAIL ADDRESS THAT WAS SETUP"MAIL_HOST=mail.vmshost.ioMAIL_PORT=465MAIL_ENCRYPTION=sslMAIL_USERNAME="EMAIL ADDRESS THAT WAS SETUP"MAIL_PASSWORD="EMAIL PASSWORD"
```
