login about faq


i have one more than 1 mail to send ,for each email i need to define new mailman object or i can reuse existing like below

mailman mm=new mailman(); int totalmails=3; for(int i=0;i<totalmails,;i++) { Email em=new Email(); mailman.sendmail(email); } or like below

int totalmails=3; for(int i=0;i<totalmails,;i++) { mailman mm=new mailman(); Email em=new Email(); mailman.sendmail(email); }

Thanks and Regards, Harish Chepuri.

asked May 27 '13 at 05:51

harishchepuri's gravatar image


It's far more efficient to use the same mailman object for multiple emails. This way the same connection to the SMTP server will be used for each email.


answered May 27 '13 at 09:21

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: May 27 '13 at 05:51

Seen: 625 times

Last updated: May 27 '13 at 09:21

powered by OSQA