Send emails from your website via SMTP (recommended for contact forms)
- 20.02.2026 00:57
-
- deliverability
- email setup
- smtp
- website
For contact forms and website notifications, we recommend sending email via authenticated SMTP instead of PHP mail(). SMTP improves reliability and deliverability and reduces the chance of your messages being rejected or marked as spam.
This article is tailored for GARMTECH Hosting and GARMTECH.Email / hosting mailboxes.
SMTP settings for GARMTECH
Use the secure SMTP settings below:
| Setting | Value |
|---|---|
| SMTP server | Service server hostname (check in My.GARMTECH for your email/hosting service) |
| Port | 465 |
| Encryption | SSL/TLS |
| Authentication | Required |
| Username | Your full email address |
| Password | The mailbox password (or an app password if 2FA is enabled) |
Step 1 – Create a mailbox for sending
- If you use hosting mailboxes, create a mailbox in Plesk → Mail.
- If you use GARMTECH.Email, make sure the mailbox exists and you know its password.
Step 2 – WordPress (recommended method)
- Install an SMTP plugin (for example, WP Mail SMTP).
- Open the plugin settings and enter the SMTP details from the table above.
- Set the “From Email” to the same mailbox you authenticate with.
- Send a test email from the plugin.
Step 3 – Custom PHP scripts (example)
If your site uses PHPMailer or a similar library, configure it with SMTP authentication:
$mail->isSMTP();
$mail->Host = 'YOUR_SERVICE_HOSTNAME';
$mail->Port = 465;
$mail->SMTPSecure = 'ssl';
$mail->SMTPAuth = true;
$mail->Username = 'you@yourdomain.com';
$mail->Password = 'YOUR_PASSWORD';
Common issues
- SMTP authentication failed → verify the password; if 2FA is enabled, use an app password.
- Certificate/SSL error → use the correct service hostname (it must match the server certificate).
- Emails go to spam → make sure SPF/DKIM/DMARC are set for your domain and that the “From” address matches the authenticated mailbox.
Related Articles
Comments
Add Comment