LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to develop an application for sending email

I believe that Bill is right. I don't believe that the LV SMTP VIs support alternate addresses. However, having said that it would be potentially possible to add the capability. You will have to get a copy of the SMTP protocol document and create the commands to implement the added capability. A SMTP server can be viewed as a command-line program to which your VIs send commands.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 11 of 13
(1,359 Views)
I think the easiest way to send BCC mail and still use the SMTP VIs (if not sending an attachment) would be to use the "SMTP Email Send Message (Small).vi" This sends a message to a single recipient. You could just loop through your BCC recipients sending each a message one at a time as in the example below:




Note you're sending to multiple "To:" recipients who will see each other in their message headers, and to multiple BCC: recipients who will only see their name in the header.


Message Edited by Bill@NGC on 07-28-2007 02:44 PM

Message 12 of 13
(1,349 Views)

I too got to wondering if it was possible to use the SMTP BCC function with the built-in VIs when I found this discussion thread.

I looked into both the v7.1 and v8.6 SMTP vis and they do not support BCC as delivered but it turns out that it is fairly trivial to modify a copy of one of the VIs to use a "BCC:" list rather than (or in addition to) a "To:" list.

 

From any of the upper-level SMTP VIs, work your way down to the SMTP header preparation/sending VI.  It's called "SMTP Email Send Message Header.vi"

In it you will find a string constant "To:" that gets added to the recipient list to form a portion of the header.

If you replace the "To:" with a "Bcc:" then the system will do BCC-style mailings.

 

 

 

It's also possible to keep the "To:" list and add a BCC and /or CC list also.

 

 

Remember that, while you are tinkering, you are messing with vi lib "worker" vis so you should probably not be saving any changes you make unless you have made a copy of this portion of the vi lib hierarchy and are working on that copy.

 

Message Edited by Warren Massey on 09-12-2008 10:54 AM
Download All
Message 13 of 13
(1,200 Views)