09-28-2023 06:00 AM
Hello,
I used to use .NET methods to send email programmatically with LabVIEW but recently I had to switch to SMTP Email palette,
It works fine, but I don't know how to add the sender's name.
The Open Handle.vi in the palette has the "from" input, where I can specify the email address.
But I get an error if try to add the name.
With .NET I could set "Name emailaddress@domain.com" and "Name" appears when the email is received.
How can I do the same with the SMTP Email palette?
Max
09-28-2023 07:47 AM
See the shipping example <LabVIEW>\examples\Data Communication\Protocols\SMTP\Send Email using SMTP Client.vi
Reference: Send Email from LabVIEW via a Secure SMTP Server Such as Gmail
09-28-2023 07:59 AM
Thanks for you reply, but That is not using the palette I was talking about.
Here's the SMTP Email palette that I'm using detail:
09-28-2023 08:11 AM
The example is using the exact same palette.
09-28-2023 08:24 AM
Yes, this last one is the tool that I'm using.
The previous you posted used .NET.
So the question is still the same: how to add also a name along with the sender's email address?
Thanks
09-28-2023 10:13 AM
I think using the SMTP tools provided with LabVIEW, adding a From name cannot be accomplished. I tried to add custom headers but according to help, the FROM, TO, SUBJECT, all default headers can't be overwritten. You can add a Reply-to header and the name will be displayed upon clicking reply.
09-28-2023 10:27 AM
I think this as well.
I had a look too at the custom headers but the help did not seem to leave any chance for this purpose.
Most programming languages allow the "Name <address>" form for the sender... too bad NI has no way to do this in the official built in SMTP palette.
Max