Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8386349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:54:43+00:00 2026-06-09T17:54:43+00:00

We have a module which will send reminder mail. We are using apache commons

  • 0

We have a module which will send reminder mail. We are using apache commons email library for sending mail. We have no issue if we send mail only one email address using addTo method of HtmlEmail, but we are encountering exception when we are trying to send the same mail to more than a user using setTo which accepts Collection.
Even commons mail javadoc mentioned that this method is to send mail to a group of email address but surprisingly its not working.
Is there any workaround to solve this problem or hint to proceed with right direction?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:54:45+00:00Added an answer on June 9, 2026 at 5:54 pm

    Did you make sure, that your Collection contains only objects of the expected Type? Exerpt from the JavaDoc for setTo(java.util.Collection):

    Set a list of “TO” addresses. All elements in the specified Collection
    are expected to be of type java.mail.internet.InternetAddress.

    Providing source code or exceptions for your problem would make it easier to help you to find the solution to your problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

in my self-defined module I have this method which will query the db and
I am using modular MVC with codeigniter. I have a module playlist in which
I am building an application which will send status requests to users (via email
I have a module which will be responsible for parsing CSV data received from
I have been using Email::Sender with Email::Sender::Transport::SMTP::TLS send email using a STARTTLS enabled relay.
I have a module which runs standalone in a JVM (no containers) and communicates
I have a module in which I created a custom page with controller and
I have create a module which at this point does nothing but exist the
So I have a common module which contains processing functions for numbers and types
I have to write a SNMP module which monitor a certain server application that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.