Send email from your website using a business email service
Connect your website's contact form and notifications to a Spiderz mailbox, so messages arrive reliably and you can reply straight to the visitor. Use this when a form says "Message sent" but nothing reaches your inbox, or before a new site goes live.
Spiderz email can send your website's forms, order emails and other notifications. Bulk or marketing email isn't allowed: use a newsletter service for that.
1 Find the SMTP settings
In cPanel, go to Email Accounts and select Connect Devices next to the website's mailbox. The outgoing settings usually are:
| Setting | Value |
|---|---|
| SMTP host | mail.yourdomain.com |
| Port | 465 with SSL/TLS, or 587 with STARTTLS |
| Username | The mailbox's full address |
| Password | The mailbox's password |
2 Connect the website
Choose the steps for your site.
WordPress
Many form plugins hand mail to WordPress, which often sends it without signing in, so it gets rejected or lands in spam. Install a maintained SMTP plugin, then enter the settings from step 1 in its settings page. In WP Mail SMTP, for example, choose Other SMTP as the mailer.
A custom or AI-built site
Put the settings in the project's environment variables on the server, not in the code. A Laravel project, for example, uses:
MAIL_MAILER=smtp
MAIL_HOST=mail.yourdomain.com
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=the-mailbox-password
[email protected]
Other frameworks use similar names. Keep the file holding the password out of your public folder and out of Git. Handle API keys, environment variables and databases explains where these values go.
If an AI tool built the site, you can ask it:
Set up this project's contact form to send email by SMTP using environment variables for the host, port, username and password. Send from [email protected] to [email protected], and put the visitor's address in Reply-To. Show me which variables to set, without including any real passwords.
3 Set the From and Reply-To addresses
Set each message up like this:
From: Your Business Website <[email protected]>
To: [email protected]
Reply-To: the visitor's address
- From is always the website's own mailbox. Never use the visitor's address here: your server isn't allowed to send as their domain, so the message is likely to be rejected.
- Reply-To is the visitor's address, so selecting Reply answers them directly.
- To is fixed by your website. Don't let a form field choose the recipient, or spammers can use your form to send mail.
4 Check your domain's email records
In cPanel, open Email Deliverability and check that SPF and DKIM show as valid for your domain. These records tell other mail services that your server is allowed to send for your domain.
If your domain uses Spiderz's nameservers, they're set up for you. If your DNS is managed elsewhere, copy the records shown there. Your domain can have only one SPF record, so add Spiderz to the existing one rather than creating a second.
If your email is hosted somewhere else but the website is on Spiderz, open Email Routing in cPanel and choose Remote Mail Exchanger. Otherwise the server keeps your form's messages instead of sending them to your real inbox.
5 Test the real form
A plugin's test button checks only the connection. Submit your public form yourself, with a personal address as the visitor.
It's working when:
- the message arrives at your enquiry address, and not in spam;
- it shows the website's address as the sender;
- selecting Reply addresses your personal address.
Also try the form with a missing field and an invalid email address, to check it shows a clear error. If your site sends confirmations to visitors, check those arrive too.
If it doesn't work
The form says it sent, but nothing arrives. Check your spam folder, then the plugin's or application's email log. If there's no error at all, the site may not be using SMTP yet.
The log shows an authentication error. Check that the username is the full address and the password is the mailbox's own. If someone changed the mailbox password, update it in the website too.
The message arrives in spam. Check that Email Deliverability shows SPF and DKIM as valid, and that From is the website's own address.
Mail from the form goes to the wrong place. If your email is hosted elsewhere, check that Email Routing is set to Remote Mail Exchanger.
Still stuck? Check why email isn't sending or receiving, or contact Support with the form's address, the time you tested and the exact error from the log. Never send passwords.
Did this solve it?
Thanks for letting us know.
Sorry it didn’t. Ask Spiderz describes the problem with you and hands it to our team if needed, or you can contact Support directly.