IMDTouchKnowledge BaseShop main store

Troubleshooting

Why a Comfort Panel SendEmail fails with SMTP errors

HMI and touchscreens Published 8 min read

Short answer

A Comfort Panel sends email by opening its own TCP connection to the SMTP server, so a SendEmail failure with SMTP errors is almost always the panel's network path: test the server and port with telnet from the panel's own segment, and if port 25 is blocked have the network team release 587 or 465. Calling SendEmail twice in one alarm event is fine once one recipient works.

On this page
  1. What the panel needs to send email
  2. Why the same project works on a PC but fails on the panel
  3. The diagnostic order
  4. Worked example: reaching 10.108.32.135 on port 25 from the panel's segment
  5. Setting the mail parameters in the project
  6. When the default port stays blocked
  7. Sending to two recipients from one alarm
  8. Questions asked

SendEmail on a Comfort Panel fails with SMTP errors for one reason more often than any other: the panel cannot open its own connection to the SMTP server on the port the project names. The mail function runs inside the panel, so the panel — not your engineering PC — needs a routed path across the plant network and an open port on the mail server. Prove that path with a telnet connect test from a PC on the panel's own network segment, and if the port is blocked, have the network team release a port the server actually answers on and enter it in the panel's runtime settings. Calling SendEmail twice in one alarm event to reach two recipients is fine; get one recipient working first.

What the panel needs to send email #

SendEmail makes the panel itself the mail client. The panel resolves the server address the project names, opens a TCP session to that address on the configured port — the runtime-settings default — and speaks SMTP to hand over the message. When the mail server is an internal company relay, none of that involves the internet: the traffic stays on the plant network, and the panel needs a route, not a gateway to the outside.

Concretely, the panel needs four things:

  • a routed path from the panel's subnet to the server's subnet, across every switch and VLAN boundary in between;
  • the configured port open end to end, including any firewall or access list between the machine network and the server network;
  • working DNS, when the server is entered by name rather than by address;
  • a sender address the relay will accept.

Machine networks are segmented on purpose, and mail sent from an HMI is often simply not permitted yet. That is why a mail function that has never worked on a panel usually fails at the network step, not in the project — and why the error text on the panel points in the wrong direction.

Why the same project works on a PC but fails on the panel #

The mail settings travel with the project; the network does not. On your engineering PC, mail is sent from the PC's location, with the PC's name resolution and the PC's allowed ports. Load the project into the panel and the sending location becomes the panel's machine network — often a different VLAN with no route to the relay at all. That the project works from your PC proves the mail settings are plausible and says nothing about the panel's path.

The symptom pair of mail working in simulation or PC runtime but failing from the panel has its own step-by-step walkthrough in why an HMI sends email in simulation but not from the panel. If the runtime is WinCC flexible on the panel rather than a Comfort Panel project in TIA Portal, the settings and the messages differ, and why WinCC flexible email fails with a connection error is the checklist for that product.

Do not read the error text as a diagnosis. A panel that reports an SMTP authentication error while no user and password are configured is describing a transaction that never completed cleanly: the session dropped partway, and the runtime reports the failed SMTP step. Treat authentication and wrong-email-address messages as second-order symptoms — prove the connection first, then audit the settings.

The diagnostic order #

Work the fault in this order; each result decides the next step:

  1. Run a telnet connect test to the mail server on the configured port, from a PC that sits on the same switch or VLAN as the panel — not from a desk in the office network.
  2. If the connect attempt times out or is refused, stop editing the project. The fault is the path: take the failed test to the network team and ask for a route from the panel's subnet to the server plus one released SMTP port.
  3. If the server greets the test client, the path and port are good. Move to the project settings — sender address, authentication setting — and ask the mail administrator what the server's log says about the panel's attempts.
  4. Change the configured port only to a port the server really answers on, confirmed by the same connect test on the new port.
  5. Once one recipient works end to end, add the second SendEmail call for the second address.

Worked example: reaching 10.108.32.135 on port 25 from the panel's segment #

Inputs:

  • Mail server: 10.108.32.135, the internal company relay this plant's mail settings name (it also answers to the name escasemwm05.adsint.biz; test by address so DNS stays out of the first test).
  • Port: 25, the documented runtime-settings default and the port the project currently names.
  • Test client: a PC wired to the same switch or VLAN as the panel, with the Windows Telnet client enabled — the test needs a client on the panel's own segment to say anything about the panel's path.

Rule in words: a TCP connect that reaches a live SMTP listener is answered with a greeting line beginning 220 before any mail content is exchanged. A timeout or an immediate refusal means the route or the port is closed somewhere between that switch and the server. A ping that answers proves reachability, not an open mail port, which is why the port check is done with telnet — the method Microsoft documents for testing SMTP communication with Telnet, starting with enabling the Telnet client (https://learn.microsoft.com/en-us/exchange/mail-flow/test-smtp-telnet).

Run it from the command prompt on that PC:

telnet 10.108.32.135 25

Outcomes:

  • a greeting line beginning 220, followed by the server's own name — the port is open and the path from the panel's segment is good;
  • the cursor hangs until the attempt times out — something between the panel's segment and the server drops that port, typically the firewall or a missing inter-VLAN route;
  • an immediate refusal — the server was reached but is not listening on that port.

Result: whichever line appears, it describes the same connection SendEmail makes from the panel, so a timeout on this test is a timeout for the mail function.

Decision: a 220 greeting moves the fault into the project settings and the server's rejection log. A timeout or refusal means stop editing the project and take the failed test to the network team, asking for a route from the panel's subnet plus one released port the relay answers — 587 (submission) and 465 (SMTPS) are the usual candidates — then repeat this test on the new port before touching the project again.

Setting the mail parameters in the project #

With the path proven, check what the project tells the panel. The mail parameters sit in the HMI device's Runtime settings under the E-mail entries: the SMTP server, the port and the sender identity. Siemens documents this configuration for panels, including specifying the SMTP server and, where the server demands it, a valid value in the sender field the manual calls 'eMail address of sender' (https://docs.tia.siemens.cloud/r/en-us/v20/wincc-sm-rtserver-panels-comfort-panels-rt-advanced/e-mail-notification-from-runtime-panels-comfort-panels-rt-advanced/configure-secure-e-mail-notification-from-runtime-panels-comfort-panels-rt-advanced). Match the authentication setting to the server — on an internal relay that requires no credentials, authentication stays off.

Enter the server by address first: a server name only resolves when the panel's segment has a usable DNS server, and the name adds a second variable to a test that should have one. If the address works and the name does not, ask the network team for a DNS server the panel's VLAN may reach, then switch the project back to the name if the site standard wants names.

If the port test passed and the settings match the server but mail still fails, ask the mail administrator for the relay's rejection log. The log names the reason the server refused the panel's message, which no panel-side error text will.

When the default port stays blocked #

Port 25 is blocked by design across much of the internet and inside many companies, because it is the port mail abuse uses; plenty of networks refuse it outright. If the connect test fails while the relay itself is healthy, the fix belongs to two people, and naming them speeds it up:

  • the mail server administrator, who confirms which ports the relay actually answers on;
  • the network team, who confirms which of those ports the firewall releases between the panel's VLAN and the server.

The usual released ports are 587 for submission and 465 for SMTPS. Enter the released port in the runtime settings, repeat the connect test on it, then send one test mail from the panel. If that port requires encryption or a login, configure the secure e-mail variant in the same runtime settings, following the vendor page cited above.

Ask the network team to open that one route and port; do not work around a blocked port by exempting the panel from the plant's network segmentation.

Sending to two recipients from one alarm #

Yes — call SendEmail twice in the same alarm event, one call per address; the function accepts repeated calls from one event and runs them in the order placed. Capability is not the catch; sequencing is. Prove one recipient end to end first: while the connection to the server is down, both calls fail identically, and that identical failure is itself evidence the fault is the path, not the number of calls. If the alarm can retrigger in quick bursts, leave roughly half a second between the calls as a practical buffer — bench practice, not a documented limit.

So the decision for the two-address case: two calls are fine; add the second only after the first address delivers.

Questions asked

Can I call SendEmail twice in the same alarm event to reach two recipients?

Yes, one call per address, executed in sequence. Prove one address end to end first, then add the second call. If both calls fail the same way, the cause is the connection to the server, not the number of calls.

Does the panel need internet access to send email through an internal server?

No. The mail server in this kind of setup is an internal company relay on a private address, so the message never leaves the plant network. What the panel needs is a routed path to that server and an open mail port on it. Internet access matters only when the mail server is an external provider, which a machine-network panel is usually not permitted to reach anyway.

Why does the panel report an SMTP authentication error when no user or password is configured?

The error text describes the failed mail transaction, not your credentials. With authentication switched off, an authentication message usually means the session never completed cleanly, because the route or the port dropped it partway. Prove the connection first. If the error survives a successful port test, ask the mail administrator for the server's rejection log; some relays refuse messages from clients they do not recognize, and the log names that reason.

Should the SMTP server be entered by name or by IP address?

Test with the IP address first. A server name only works when the panel's network resolves DNS, and a name that resolves on the engineering PC can still fail from the machine network if the panel has no reachable DNS server.

Keep reading

  • Troubleshooting

    Why WinCC flexible email fails with a connection error

    No Siemens mail module is needed: the WinCC flexible runtime on the TP177B is the SMTP client, and its RJ45 port reaches a router like any IP node. Gmail requires TLS on submission ports 465 and 587, which the old runtime is reported not to negotiate, so point the panel at a local relay on port 25 and let the relay handle TLS upstream.

    HMI and touchscreens

  • How-to

    Showing a PLC Connection Fault on a Comfort Panel Alarm Display

    Enable the Comfort Panel's connection and disconnection system alarms, add an alarm buffer view, and drive a persistent HMI-local status tag from their events, because the system message shows for about 2 seconds and then leaves the screen while values freeze; a PLC clock heartbeat adds a stale-data check.

    HMI and touchscreens

  • Troubleshooting

    Getting Unconfirmed Alarm Status Out of a C-More Panel

    No tag on the EA9 exports alarm-confirmation state to the PLC, so the buzzer cannot follow the C-more confirm action. Latch the alarms in the PLC, acknowledge them with a panel pushbutton that writes a PLC bit, and run the buzzer while any alarm stays unacknowledged; the PLC to Panel Beep ON/OFF tag can mirror the same state onto the panel beep.

    HMI and touchscreens