How to send a couple of messages using the same SMTP connection?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Gregory_Ledenev
Posted On:   Friday, December 6, 2002 05:35 AM

It's not clear how to employ the same SMTP connection to the particular server to send a number of messages through it. Usual approach of using Transport.send(message) always opens a new connection so sending quite big number of messages using it requires significant amount of time. I've tried using transport.connect() before calling send() but no luck yet as send() doesn't use already open connection at all. Any help would be greatly appreciated.

Re: How to send a couple of messages using the same SMTP connection?

Posted By:   John_Zukowski  
Posted On:   Sunday, December 8, 2002 06:51 AM

The send method is static and doesn't care if you have connected or not. Use sendMessage.
About | Sitemap | Contact