04-08-2016 08:48 AM
Using the SMTP Email palette, if I include a colon in the string wired to the Subject input of 'Set Message Text Html.vi', it shows up as a question mark in the email Subject in the recipient's inbox.
For example, sending "Test Completed at 10:00AM" as the email subject turns into "Test Completed at 10?00AM" on the receiving end.
How do I properly format the Subject string to get a colon on the receiving end?
Solved! Go to Solution.
04-08-2016 01:06 PM - edited 04-08-2016 01:07 PM
I get it too. I think the problem lies in the Set Message Text.vi within the SMTP pallete. I can't get to the block diagram because it is password protected but it appears to come in correctly on the front panel.
Edit: Nope, I get it on the SMTP Express VI too.
04-11-2016 11:10 AM
What version of LabVIEW are you using? What operating system? Do you have additional languages set, besides English, on your computer?
Thanks,
04-11-2016 12:05 PM
I've got 2014 SP1 32-bit on a WIn 7 64-bit and using MS Outlook 2010. Only English is set on my PC.
04-12-2016 10:39 AM - edited 04-12-2016 10:39 AM
I am running:
LabVIEW 2015 32-bit (v15.0.0)
Windows 7 Pro 64-bit
As far as I know, English is the only language I have installed.
04-12-2016 11:44 AM
I believe the colon is reserved in smtp as a field delimiter character.
You might be able to make the colon literal by placing a backslash immediately before it.
Something like "Test Completed at 10\:00AM"
04-14-2016 09:27 AM - edited 04-14-2016 09:27 AM
Phillip,
I tried your suggestion and I get the same behavior as before but with the back slash. I've tried this with other programming languages (without the back slash) and I get the colon as expected.
I don't want to take away from MStewart's post but I'd figure I'd weigh in...
Eric
04-14-2016 10:31 AM
No worries Eric, glad to know I am not the only one having this issue.
I am getting the same result when I use the backslash.
"Test Complete at 10\:00" turns into "Test Complete at 10\?00"
04-14-2016 03:16 PM
The : (colon) is definitely a reserved SMTP field character.
You can customize the Subject content by encoding it as 8-bit and then use the hex value for colon (3A) to encode the colon. Try the exact subject text below; it worked for me using gmail.
=?iso-8859-1?Q?Test completed at 10=3A00 AM?=
https://en.wikipedia.org/wiki/MIME#Difference_between_Q-encoding_and_quoted-printable
04-14-2016 05:10 PM
You frequently see colons in subject lines, but as a part of an RE: or FW: added to the subject. So it's not like it isn't regularly used. But is it reserved because it needs to treat the foward/reply prefix specially?