Network Management
Email alerts or NCM notifications fail with error: "An invalid character was found in the mail header: ';'"
Automated email alerts from the SolarWinds Platform or Network Configuration Manager (NCM) Real-Time Change Detection (RTCD) fail to send. While alert triggers, syslog pattern matches, and configuration downloads succeed, the notification email is never dispatched. System logs record a fatal System.FormatException: An invalid character was found in the mail header: ';' during message construction.
First published date
Last published date
Overview
When configuring email notifications across the SolarWinds Platform, administrators commonly configure multiple recipient addresses separated by semicolons (;). However, if a delimiter such as a trailing semicolon, comma, or trailing whitespace is inadvertently placed in the From / Sender Email Address field or SMTP Default Sender field (e.g., SolarWinds@domain.com;), the underlying Microsoft .NET email engine fails header validation.
This causes message construction to abort with System.FormatException before the notification engine can open an SMTP transmission channel.
Symptoms
Scenario A: NCM Real-Time Change Detection (RTCD)
In C:\ProgramData\SolarWinds\Logs\Orion\NCM\NcmBusinessLayerPlugin.log:INFO SolarWinds.Cirrus.BusinessLayer.Mail.EmailSender - Sending email to admin@domain.com from SolarWinds@domain.com;
ERROR SolarWinds.Cirrus.BusinessLayer.RTNHelper - ExecuteRtn errorSystem.FormatException: An invalid character was found in the mail header: ';'.
at System.Net.Mail.DotAtomReader.ReadReverse(String data, Int32 index)
at System.Net.Mail.MailAddressParser.ParseDomain(String data, Int32& index)
at System.Net.Mail.MailAddressParser.ParseAddress(String data, Boolean expectMultipleAddresses, Int32& index)
at System.Net.Mail.MailAddressParser.ParseAddress(String data)
at System.Net.Mail.MailAddress..ctor(String address, String displayName, Encoding displayNameEncoding)
at SolarWinds.Cirrus.BusinessLayer.Mail.EmailSender.BuildMailMessage(EmailSettings mailSettings)
at SolarWinds.Cirrus.BusinessLayer.Mail.EmailSender.Send(SMTPSettings smtpSettings, EmailSettings mailSettings)
at SolarWinds.Cirrus.BusinessLayer.RTNHelper.SendMailInternal(EmailSettings email)
Scenario B: SolarWinds Platform Global Alert Actions
In C:\ProgramData\SolarWinds\Logs\Orion\ActionsExecution.log:ERROR SolarWinds.Orion.Core.Actions.Impl.Email.EmailActionExecutioner - Failed to execute email action.
System.FormatException: An invalid character was found in the mail header: ';'.
at System.Net.Mail.MailAddressParser.ParseAddress(String data)
at System.Net.Mail.MailAddress..ctor(String address)
at SolarWinds.Orion.Core.Actions.Impl.Email.EmailActionExecutioner.BuildMessage(...)
Product section
Cause
The Microsoft .NET System.Net.Mail framework enforces strict RFC 5322 compliance when constructing email headers:
- Recipients (
To:,CC:,BCC:): Support multiple email addresses separated by semicolons (;) or commas (,). - Sender (
From:): Strictly requires a single RFC-compliant email address. - Appending a trailing semicolon or punctuation to the sender address causes the parser to treat
;as an illegal character in the domain specification, triggering an unhandledSystem.FormatException.
Resolution
Remove any trailing punctuation (;, ,, or quotes) from the From / Sender address fields. No service restarts are required; changes take effect immediately.
Method 1: For NCM Real-Time Change Detection Notifications
- In the SolarWinds Web Console, go to Settings > All Settings.
- Under Product Specific Settings, click NCM Settings.
- Under Real-Time Change Detection, click Configure Real-Time Change Detection.
- Select Step 4: Config Downloads and Notifications Settings:
- Review the From Address field.
- Remove any trailing semicolon or space (e.g., change
SolarWinds@domain.com;toSolarWinds@domain.com). - (Note: Leave semicolons separating multiple recipient addresses in the recipient field intact).
- Click Submit.
- Select Step 5: NCM SMTP Server:
- Verify that the configured sender address contains no trailing punctuation.
- Click Send Test Email to confirm successful dispatch.
Method 2: For SolarWinds Platform Alert Actions
- In the Web Console, navigate to Alerts & Activity > Alerts.
- Click Manage Alerts in the top-right corner.
- Locate and edit the alert with the failing email action.
- On the Trigger Actions tab, click Edit on the Send an Email/Page action.
- Under Sender Details:
- Inspect the Sender Email Address field.
- Ensure it contains only a single clean address with no trailing semicolons, commas, or spaces.
- Click Send Test Email to validate.
- Click Save Changes.
Method 3: For Global Default Email Notification Settings
If individual alert actions use global defaults:
- Go to Settings > All Settings > Default Email Notification Settings (under Alerts & Reports).
- Check the Default From Address.
- Remove any trailing punctuation and click Save.
Verification
- For NCM RTCD: Make a minor configuration change on a monitored node. Confirm NCM downloads the config, and inspect
NcmBusinessLayerPlugin.logto verify thatSolarWinds.Cirrus.BusinessLayer.Mail.EmailSenderreportsSending email to [recipient] from [sender]without throwingSystem.FormatException. - For Alerting: Trigger the alert action or use Test Action in Alert Manager. Confirm the email arrives in the recipient inbox.