Resolve Truncated Email Message When Using LabVIEW SMTP VIs

Updated Nov 5, 2026

Reported In

Software

  • LabVIEW

Issue Details

I am configuring an automated email notification system using LabVIEW on Windows 11 Pro. When I set the message to be transmitted using SMTP Email Set Message VI and send using the SMTP Email Send VI, the email message is truncated mid-sentence in the received email. No error is returned by the VIs during execution.

Solution

The LabVIEW SMTP library relies internally on C-based libraries for transmission. If a string contains a null character (0x00), the underlying library interprets the null byte as string terminator and truncates all subsequent text without throwing an error.

  1. Open the text message on front panel or block diagram containing the string data wired to the SMTP Email Set Message VI.
  2. Right-click the string indicator or constant and select Hex Display to inspect the raw data.
  3. Check the hex representation for the presence of null characters (0x00).
  4. Use the Search/Replace String Function to replace occurrences of the null character with an alternative character, such as hyphen (-).
  5. Wire the string to the message input of the SMTP Email Set Message VI.
  6. Run the VI and verify the entire email message is received without truncation.