-
Notifications
You must be signed in to change notification settings - Fork 8
SMTP Configuration
PadowYT2 edited this page Mar 19, 2022
·
2 revisions
Php comes with an internal mailer which lets you send emails from the server. It's very easy and quick to set up.
- Run the following command in
/var/www/pterodactyl
->php artisan p:environment:mail
- Set driver to "mail", orgin to
[email protected]
and encryption method to TLS - Go to Admin area -> Billing -> Emails -> Click Compose Email; Send yourself a test email, if it arrives, you're done.
- If you don't receive the test email in step 3; run the commands below:
sudo apt-get install sendmail
sudo sendmailconfig
- Restart Webserver:
sudo service nginx restart
ORsudo service apache2 restart
- Go back to Billing Email settings, are try sending yourself a test mail.
- Run the following command in
/var/www/pterodactyl
->php artisan p:environment:mail
- Set Driver to "smtp"
- See Information Below; After entering the details, you can check the connection here:
example.com/admin/settings/mail
- The username is your Gmail address
- The password is your Gmail account password
- The name field is your site name
- The host is smtp.gmail.com
- Port should be set to 587
- Enable the Less secure through this link. https://myaccount.google.com/lesssecureapps?pli=1
- (Not always required) Allow access via the captcha https://accounts.google.com/b/0/DisplayUnlockCaptcha
- The username is your email address (e.g. [email protected] or [email protected])
- The password is your email account password
- The name field should be your website name (though you can put anything here)
- The host is smtp-mail.outlook.com (port: 587, encryption: TLS)
- The username is the email address from your SMTP server
- The password is the password associated with your SMTP email address
- The name field is your site name, or whatever name you want to be displayed in the "From" field in the email
- The host is the hostname of your SMTP server, such as your SMTP server's IP address
Please select an item from the right sidebar to get the docs on. Our discord: https://discord.gg/vertisan-760945720470667294