LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SMTP Emai to multiple recipients

I'm using the "SMTP Email Send Message (Small).vi" (Labview 7.1) to send alarm messages to my cell phone using my phonenumber@vtext.com.  I'm using the verizon mail server "smtpsp.vtext.com".  I am having no trouble sending the message to one recipient, but cannot send to multiple recipients.  I've tried seperating the second email address with commas, semi-colons and even a space.  With the following in my recipient text input phonenumber@vtext.com,phone2@vtext.com or phonenumber@vtext.com;phone2@vtext.com I recieve the following error...
 
SMTP:
501 #5.5.2 syntax error 'RCPT TO:<5551234567@vtext.com,5551234567@vtext.com>'
 
If i seperate with a space or a return, i only send to the first recipient.
 
In a previous post, i see that user_1 suggests the comma, but it's definately not working for me...
 
any ideas?
0 Kudos
Message 1 of 5
(5,128 Views)

Hi andyh,

did you read the context help? Smiley Happy

May be a solution for you could be to call this vi in a loop.
Hope it helps.

Mike



Message Edited by MikeS81 on 05-23-2008 02:48 PM
0 Kudos
Message 2 of 5
(5,121 Views)
The small function is meant for just one recipient. Use the normal version of this function for use with multiple recipients, it has an array of recipients as input.
Regards,
André (CLA, CLED)
0 Kudos
Message 3 of 5
(5,115 Views)
I did read the context help...but my context help didn't have the red underline like yours...so i missed it. Smiley Happy
0 Kudos
Message 4 of 5
(5,112 Views)
Another option would be to continue using the single send.
 - Create an array of email addresses that you wish to send messages to.
 - Check the size of the array, size = n.
 - Run the for loop n times and use the for loop to automatically index the array.

There are also a number of web services available to bulk send txt messages.

Good luck.
0 Kudos
Message 5 of 5
(5,100 Views)