Customizing WordPress emails: templates and settings
Last updated: 31 December 2025
WordPress E-mails Aanpassen: Van Standaard naar Professioneel
WordPress verstuurt allerlei e-mails: wachtwoord resets, nieuwe gebruikers, commentnotificaties. Standaard zien deze er basic uit en komen ze soms niet aan. In deze gids leer je hoe je WordPress e-mails professionaliseert.
Problemen met standaard WordPress e-mails
De standaard e-mailfunctie heeft issues:
- Saaie opmaak: Platte tekst, geen styling
- Standaard afzender: "WordPress" als naam, admin@domein als adres
- Leverproblemen: E-mails belanden in spam
- Geen tracking: Geen inzicht in opens/clicks
- Beperkte aanpassing: Moeilijk te wijzigen
Afzender gegevens wijzigen
De eerste stap: professionele afzender info.
Via code (gratis)
Voeg toe aan functions.php:
// Afzendernaam wijzigen
function custom_mail_from_name($name) {
return 'Jouw Bedrijfsnaam';
}
[add_filter](/kennisbank/wordpress-hooks-uitleg)('wp_mail_from_name', 'custom_mail_from_name');
// Afzender e-mail wijzigen
function custom_mail_from($email) {
return 'noreply@jouwdomein.nl';
}
add_filter('wp_mail_from', 'custom_mail_from');
Via plugin
WP Mail SMTP (aanbevolen - zie verderop) laat je dit ook instellen via interface.
SMTP configureren (essentieel)
Standaard gebruikt WordPress de PHP mail() functie. Dit veroorzaakt leverproblemen omdat:
- Veel hosts blokkeren PHP mail
- Geen authenticatie = spam filters
- Geen retry bij falen
- Geen logging
What is SMTP?
SMTP (Simple Mail Transfer Protocol) is de standaard voor e-mail verzending. Door SMTP te gebruiken, verstuur je via een echte mailserver met authenticatie.
WP Mail SMTP instellen
-
Installeer WP Mail SMTP
- Plugins > Nieuwe toevoegen
- Zoek "WP Mail SMTP"
- Installeer en activeer
-
Kies een mailer
Opties:
- SMTP.com: Betaald, betrouwbaar
- Sendinblue: Gratis tot 300/dag
- Mailgun: Developer-friendly
- SendGrid: Schaalbaar
- Amazon SES: Goedkoop bij volume
- Outlook/Gmail: Bestaande account gebruiken
- Other SMTP: Eigen mailserver
-
Configureer credentials
Voorbeeld voor Sendinblue:
- Maak Sendinblue account
- Genereer API key
- Voer in bij WP Mail SMTP
-
Test e-mail versturen
- Ga naar WP Mail SMTP > Tools
- Verstuur test e-mail
- Controleer of deze aankomt
Provider vergelijking
| Provider | Gratis tier | Prijs daarna | Beste voor |
|---|---|---|---|
| Sendinblue | 300/dag | €19/maand | Kleine sites |
| Mailgun | 5.000/maand | $0,80/1000 | Developers |
| SendGrid | 100/dag | $15/maand | Marketing |
| Amazon SES | 62.000/maand* | $0,10/1000 | Volume |
| Gmail | 500/dag | - | Persoonlijk |
*Bij EC2 hosting
E-mail templates stylen
Nu e-mails aankomen, tijd om ze mooi te maken.
Email Templates plugin
-
Installeer "Email Templates" of "WP HTML Mail"
-
Configureer template
- Logo toevoegen
- Kleuren instellen (match je website)
- Footer met contactinfo
- Social links
-
Preview en test
- Bekijk hoe e-mails eruitzien
- Test in verschillende e-mailclients
- Check mobiele weergave
Handmatig met code
Voor volledige controle, override e-mail templates:
function custom_email_template($message) {
$header = '<html><body style="font-family: Arial, sans-serif;">';
$header .= '<div style="max-width: 600px; margin: 0 auto; padding: 20px;">';
$header .= '<img src="' . get_site_url() . '/logo.png" alt="Logo">';
$footer = '<hr><p style="color: #666; font-size: 12px;">';
$footer .= 'Met vriendelijke groet,<br>Jouw Bedrijf</p>';
$footer .= '</div></body></html>';
return $header . $message . $footer;
}
add_filter('wp_mail', function($args) {
$args['message'] = custom_email_template($args['message']);
$args['headers'][] = 'Content-Type: text/html; charset=UTF-8';
return $args;
});
WooCommerce e-mails aanpassen
WooCommerce heeft eigen e-mail systeem met meer opties.
Via WooCommerce instellingen
- Ga naar WooCommerce > Instellingen > E-mails
- Bovenaan: algemene template opties
- Header afbeelding
- Footer tekst
- Kleuren
- Per e-mail type: tekst aanpassen
Template override
Voor diepgaande aanpassingen:
- Kopieer template van
woocommerce/templates/emails/ - Naar
yourtheme/woocommerce/emails/ - Pas de template aan
E-mail customizer plugins
- Kadence WooCommerce Email Designer: Visuele editor
- YayMail: Drag-and-drop builder
- Email Customizer for WooCommerce: Eenvoudige aanpassingen
Specifieke e-mails aanpassen
Wachtwoord reset
De wachtwoord reset e-mail is cruciaal. Pas aan via:
function custom_password_reset_email($message, $key, $user_login, $user_data) {
$site_name = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
$message = "Hallo,\n\n";
$message .= "Er is een wachtwoord reset aangevraagd voor je account op {$site_name}.\n\n";
$message .= "Click here om je wachtwoord te resetten:\n";
$message .= network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . "\n\n";
$message .= "Als je dit niet hebt aangevraagd, negeer deze e-mail.\n\n";
$message .= "Met vriendelijke groet,\n{$site_name}";
return $message;
}
add_filter('retrieve_password_message', 'custom_password_reset_email', 10, 4);
Nieuwe gebruiker
function custom_new_user_email($wp_new_user_notification_email, $user, $blogname) {
$wp_new_user_notification_email['subject'] = 'Welkom bij ' . $blogname;
$wp_new_user_notification_email['message'] = "Hallo {$user->display_name},\n\n";
$wp_new_user_notification_email['message'] .= "Welkom! Je account is aangemaakt.\n\n";
$wp_new_user_notification_email['message'] .= "Log in op: " . wp_login_url() . "\n\n";
return $wp_new_user_notification_email;
}
add_filter('wp_new_user_notification_email', 'custom_new_user_email', 10, 3);
E-mail logging en troubleshooting
Logging inschakelen
WP Mail SMTP Pro bevat logging. Gratis alternatief:
Email Log plugin:
- Logt alle uitgaande e-mails
- Bekijk inhoud en status
- Handig voor debugging
Veelvoorkomende problemen
E-mails komen niet aan:
- Check spam folder
- Verifieer SMTP configuratie
- Check of domein SPF/DKIM heeft
- Test met ander e-mailadres
E-mails in spam:
- Configureer SPF record
- Configureer DKIM
- Gebruik professionele SMTP service
- Vermijd spam-triggerwoorden
Opmaak breekt:
- Test in meerdere clients (Gmail, Outlook)
- Gebruik inline CSS
- Houd HTML simpel
- Test met Litmus of Email on Acid
E-mail authenticatie (SPF, DKIM, DMARC)
Voor optimale deliverability, configureer:
SPF record
Voeg toe aan DNS:
v=spf1 include:_spf.google.com include:sendgrid.net ~all
DKIM
Je SMTP provider levert DKIM records. Voeg toe aan DNS.
DMARC
Optioneel maar aanbevolen:
v=DMARC1; p=quarantine; rua=mailto:dmarc@jouwdomein.nl
Read more in onze SPF DKIM DMARC gids.
Transactionele vs marketing e-mails
Houd ze gescheiden:
Transactioneel (WP Mail SMTP):
- Wachtwoord resets
- Orderbevestigingen
- Notificaties
Marketing (aparte tool):
- Nieuwsbrieven
- Promoties
- Campagnes
Gebruik verschillende verzendservices om reputatie te beschermen.
Kosten overzicht
| Onderdeel | Kosten |
|---|---|
| WP Mail SMTP Lite | Gratis |
| WP Mail SMTP Pro | $49/jaar |
| Sendinblue gratis tier | €0 |
| Email Templates plugin | Gratis |
| WP HTML Mail | Gratis (Pro €39) |
More information: WordPress.org documentatie
Frequently Asked Questions
How long does it take to implement this?
Implementation time varies per situation. Simple configurations can be done within an hour, more complex setups may take several hours to a day.
What are the costs?
Costs depend on your hosting provider and package. Many basic features are included for free, advanced features may incur additional costs.
Do I need technical knowledge?
You need little technical knowledge for the basics. Most hosting providers offer extensive documentation and support to help you.
Was this article helpful?
Compare hosting packages directly to find the best choice for your situation.
Related articles
What is web hosting? Explanation for beginners
Discover what web hosting is and how it works. Complete explanation about servers, domains and different hosting types for beginners.
What is VPS Hosting?
VPS hosting explained: what is a Virtual Private Server, who is it suitable for and what are the advantages compared to shared hosting?
What is an SSL Certificate?
Everything about SSL certificates: what is SSL, why do you need it and how do you recognize a secure website? Essential for every website.
What is Uptime in Web Hosting?
What does uptime mean in web hosting? Learn about uptime percentages, SLA guarantees and why 99.9% uptime is important for your website.
How much storage do I need for my website?
Discover how much disk space you really need for your website. Practical guide with examples per website type.