08-03-2019 03:47 PM
I am trying to send an email to multiple recipients use the .NET Constructor. It works great when sending to one email but how do I format the string to send to multiple recipients?
Can someone help on how the format needs to look like?
Solved! Go to Solution.
08-04-2019 01:01 AM
I'm still working on trying to get the appropriate .NET API available to check, but based on the documentation here: MailMessage-To (.NET Framework), you should be able to get a MailAddressCollection and then modify that with additional addresses to send to multiple addresses at once.
This thread might also be helpful: https://forums.ni.com/t5/LabVIEW/Send-email-on-labview-using-the-Gmail-Server-TLS/td-p/474461/page/9 (see message 84 onwards).
08-04-2019 07:06 AM
The solution is to change the property to string. Now I can send to multiple by adding the comma between the emails.