Site settings
Set up email (SMTP)
Kufi has SMTP built in, so you don't need an SMTP plugin. Send all your site's email through your mail provider under Kufi → Email so contact form messages, password resets and order emails arrive instead of landing in spam.
Why
Many hosts send WordPress email without proof that it really comes from your domain, so it lands in spam or disappears. Sending through your email provider fixes that.
Built in, for every plugin
Kufi's SMTP settings do the job of an SMTP plugin such as WP Mail SMTP or FluentSMTP. They apply to every email your site sends through WordPress: Kufi contact forms, password resets and new user emails, Kufi Commerce and WooCommerce orders, and any other plugin that uses WordPress email. Set it up once here.
Set it up
- Go to Kufi → Email (or the Email step of the setup wizard).
- Tick Send through SMTP.
- Fill in the details from your email provider (table below).
- Enter your address under Send a test to and click Save and send test.
The top of the page says where your site's email goes right now: your mail server (with port and sender address), or the host's PHP mail.
If the test fails, you'll see the mail server's error, which points to the setting to fix. If it says the host's PHP mail took the email, SMTP isn't on yet: tick Send through SMTP, fill in your mail server and test again.
| Field | What to enter |
|---|---|
| SMTP host | Your provider's outgoing server, for example smtp.gmail.com, smtp.office365.com or smtp.hostinger.com. |
| Encryption and port | Usually TLS on port 587 or SSL on port 465. |
| Username | Usually your full email address. |
| Password | Your mailbox password, or an app password (see below). Stored encrypted; never shown again. Leave empty to keep the saved one. |
| From email | An address on your own domain, ideally the same as the username. Empty uses the username (or, without SMTP, the admin email when it's on your domain). |
| From name | Your site or company name. |
Provider notes
| Provider | Host and port | Password |
|---|---|---|
| Google Workspace / Gmail | smtp.gmail.com, TLS 587 |
An app password (Google Account → Security → App passwords). Requires 2-step verification. |
| Microsoft 365 / Outlook | smtp.office365.com, TLS 587 |
Your password; your admin may need to allow "Authenticated SMTP" for the mailbox. |
| Hostinger | smtp.hostinger.com, SSL 465 |
Your mailbox password. |
| Brevo, Mailgun, SendGrid, Amazon SES | See the provider's SMTP page | An SMTP key from the provider, not your login password. |
Common test errors
| Error mentions | Fix |
|---|---|
| Authentication, "Username and Password not accepted", 535 | Wrong username or password. Gmail needs an app password. |
| Could not connect, timed out | Wrong host or port, or the host blocks that port. Try the other port (587 with TLS or 465 with SSL). |
| Sender address rejected | The From email must be an address the mailbox may send as. Use the same address as the username. |
| Certificate | Use the host name exactly as the provider gives it. |
The most secure setup
Put the details in wp-config.php instead. They override the form and lock those fields, and the password never sits in the database. You can also put only the password there and fill in the rest on the page; Send through SMTP stays yours to switch unless KUFI_SMTP_HOST is set:
define( 'KUFI_SMTP_HOST', 'smtp.example.com' );
define( 'KUFI_SMTP_PORT', 465 );
define( 'KUFI_SMTP_SECURE', 'ssl' ); // tls, ssl or none
define( 'KUFI_SMTP_USER', 'hello@example.com' );
define( 'KUFI_SMTP_PASS', 'your-password' );
A different sender for store emails
Kufi Commerce sends receipts, shipping updates and welcome emails from the sender set here. To use another address for store emails only, such as orders@yourdomain.com, fill in Kufi → Commerce → Settings → Emails and invoices → Sender. It shows the site's sender as a reminder, and it doesn't change the sender of the site's other emails. With SMTP, most providers only accept the mailbox you sign in with or an alias of it, so set the address up as an alias first. Send test email on the same page sends a sample store email to any address you enter.
Good to know
- Use only one mail plugin. If WP Mail SMTP, FluentSMTP or similar is active, leave Send through SMTP off in Kufi.
- The saved password is encrypted with your site's security keys. If those keys change (for example after a security cleanup or a migration that regenerates them), enter the password again.
- Contact form messages are saved under Kufi → Messages even when email fails, so nothing is lost.
- Also set SPF, DKIM and DMARC records for your domain at your provider. They tell other mail servers your emails are genuine.
More in Site settings
Still need help?
Tell us what you are trying to do and what you see. We read every message.