LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Send email with SMTP Email from a sender adding the name

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

0 Kudos
Message 1 of 7
(1,366 Views)

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

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 7
(1,324 Views)

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:

https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/menus/categories/data-communication/protoc...

 

0 Kudos
Message 3 of 7
(1,314 Views)

The example is using the exact same palette.

ZYOng_0-1695906676851.png

 

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 4 of 7
(1,304 Views)

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

0 Kudos
Message 5 of 7
(1,301 Views)

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. 

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 6 of 7
(1,266 Views)

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

0 Kudos
Message 7 of 7
(1,259 Views)