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 8773503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:18:40+00:00 2026-06-13T18:18:40+00:00

As of know my email application was supporting only plain text with attachments. I

  • 0

As of know my email application was supporting only plain text with attachments. I was handling it in a simple way if attachment list is null,
simply send the mime message and if attchment list is not null, i was creating body part for each attachment and one for body. Adding them
in multipart which is set in to mime message.

But now need to support the html part and inline images(where images will be sent as attachment
and html body will be referreing).I know the basics of mime i.e how to create the body parts for each mime type. But really i am not getting
how to create the body parts at run timw when i do not what body and attachment list will contain. For example body can contain only plain
text or html body or html body with attachment or html body with inline image with attachment or plain body with attchment.

Frankly i am not getting
how to process the emailbody and attachment list for above mentioned permuations and combinations.(for example some time i need to create top
message as multipart/mixed containg body parts as mulipart/alternative and another body part plain, bla bla….). Is there standard
code handling these all scenarios based on body content and attachment list. Please point me in right direction?

here is the old method signature which was supporting only plain text with attachments

  public void sendMimeEmail(List toMailAddresses,
  String fromMailAddress,   String body, List<AttachmentData> attachments) {}
  • 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-13T18:18:42+00:00Added an answer on June 13, 2026 at 6:18 pm

    I don’t think there’s any magic here. You just need enough “if” statements to cover the cases.

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

Sidebar

Related Questions

I want to know how can i send an email with a standard text
Hey, i'm creating an application and would like to know, is there a way
Possible Duplicate: How to send an email? I have some simple winform application. In
I know I can configure tt_news to automatically set author and email to a
I know that there can be multiple values for an email, but I'm not
Dose anyone know how to get email address book for supplied email address and
Disclaimer: I know there are better ways to track email open rates, which are
Does anyone know how to allow users to edit another user´s email in a
I use an email registration and confirmation in my project (yes, I know about
I want to attach a video and send email from my application. I downloaded

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.