There was a problem loading the comments.

Send emails from your website via SMTP (recommended for contact forms)

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

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)

  1. Install an SMTP plugin (for example, WP Mail SMTP).
  2. Open the plugin settings and enter the SMTP details from the table above.
  3. Set the “From Email” to the same mailbox you authenticate with.
  4. 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.

Share via
Did you find this article useful?  

Related Articles


Comments

Add Comment

Replying to  

Tags

© GARMTECH