LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

InetSendMail exception error

We have a client/server implementation whereby the client sends an email request with the particular parameters to the server side application.  The server side application uses these parameters in the InetSendMail function to email.  Everything has been working fine.  We have been gradually increasing the To: distribution list length.  Once the distribution list get’s so long, our server side application breaks.  A distribution list length of 508 characters does not work but it works at 476 characters.

 

To see what may be happening, we used the sample CVI sendmail project and ran it as a standalone executable.  The only change we made was that we increased the To: char size from 260 to 512 for our longer distribution list.  The CVI sample gave an exception error at 508.   The sample project also worked with a distribution list length of 476. 

 

This is what is causing our server application to break.

 

Even though we are seeing the exception error however, the email does get sent.

 

Attached is a screen capture of the exception error.

 

Has anybody seen this before?

 

The CVI sample project was ran using...

 

Microsoft Windows Server 2003

Standard Edition

SP2

Intel(R)Xeon(TM) CPU 2.80GHz

2.00GB RAM

 

Thanks

0 Kudos
Message 1 of 2
(2,935 Views)

Yes, this does look a bug in the InetSendMail function. I've reported it as Bug ID: 290737. Thanks for letting us know!

 

Until this gets fixed I recommend you break up the recipient list into strings no greater than 250 characters and call the function multiple times, if you have to.

 

Sorry about this.

 

Luis

0 Kudos
Message 2 of 2
(2,926 Views)