Skip to main content
v5.32
operator
manufacturer
Last updated on

Email notifications for errors and reports

The Charge Controller can be configured to send email notifications for critical errors and periodic session reports. This feature is useful for remote monitoring and diagnostics, but can be affected by several layers of configuration and network behavior.

This guide helps with setting up the SMTP configuration and identifying common pitfalls.

1. Configuration

  1. Log in to the Config UI using the Operator Login Credentials
  2. Apply the following configuration:

SettingInfo
Email provider account usernameYour SMTP account's email address or username
Email provider account passwordThe password or app password for the account
SMTP server and portSMTP hostname (e.g. smtp.example.com) and port (usually 587 or 465)
SMTP connection securityEither STARTTLS (recommended) or SSL/TLS
'From:' addressEmail sender address (often same as username)
'To:' address(es)Recipient address(es) (can be the same or different)
Location in outgoing emailsOptional field for including device site or installation location
info

Look up the settings needed for your email provider on their website and apply accordingly.

  1. At the bottom of the Config UI, click , then click to apply the changes
  2. (Optional) Under Backend, click to validate your settings. An email should arrive within a few minutes.

Read on if you haven't received a test email.

2. Troubleshooting

2.1. Test with Mailtrap

Mailtrap is ideal for testing:

  • Accepts fake addresses
  • No spam filter issues
  • View messages instantly

and testing with it helps isolate Charge Controller-side vs. provider-side issues.

2.2. Mailtrap SMTP configuration

  1. Log in to the Config UI using the Operator Login Credentials
  2. Apply the following configuration:

  3. Enter the Mailtrap credentials into the corresponding Config UI fields under Backend > Email notification
  4. At the bottom of the Config UI, click , then click to apply the changes
  5. Under Backend, click to validate your settings. An email should arrive within a few minutes.

2.3. Troubleshooting flow

3. Common issues

SymptomLikely CauseFix
Nothing happensVPN blocks connectionDisable VPN, try hotspot
TLS handshake failsSTARTTLS blockedUse port 587 and check firewall
Login rejectedNo App Password usedUse provider-generated App Password
Mail not receivedSpam/junk filterUse Mailtrap or check spam folder
Works from PC onlyOutdated TLS on the Charge ControllerUpdate firmware or test from PC

4. Charge Controller-side retry checklist

  • Confirm the Charge Controller has internet access
  • Disable VPN or test off corporate network
  • Use Mailtrap SMTP config first
  • Try port 587 with STARTTLS
  • Use plain text body only
  • Check logs for send_email() errors

5. If still stuck, test externally

curl --ssl-reqd --url smtp://sandbox.smtp.mailtrap.io:587 \
--user "username:password" \
--mail-from you@example.com \
--mail-rcpt you@example.com \
--upload-file email.txt

Or:

import smtplib
from email.message import EmailMessage

msg = EmailMessage()
msg.set_content("Test email")
msg['Subject'] = "Test"
msg['From'] = "you@example.com"
msg['To'] = "you@example.com"

smtp = smtplib.SMTP("sandbox.smtp.mailtrap.io", 587)
smtp.starttls()
smtp.login("your_username", "your_password")
smtp.send_message(msg)
smtp.quit()