I have Mail with “Click to Download Invoice” link But I want this PDF As a attachment in my Mail. Using Springboot Java [on hold]2019 Community Moderator ElectionDownload attachments using Java MailSending Email in Android using JavaMail API without using the default/built-in appSend Email IntentUnable to download PDF attachment with java by using JavaMailDownloading Java JDK on Linux via wget is shown license page insteadSending mail attachment using Javajava mail Api want to show attachment linkjava mail download link for attachmentAttachment downloaded in “File” format instead of pdfHow to attach invoice PDF instead of packing slip in magento 2
Power Strip for Europe
How does Ehrenfest's theorem apply to the quantum harmonic oscillator?
After `ssh` without `-X` to a machine, is it possible to change `$DISPLAY` to make it work like `ssh -X`?
How do electrons receive energy when a body is heated?
Can the alpha, lambda values of a glmnet object output determine whether ridge or Lasso?
Can I negotiate a patent idea for a raise, under French law?
Doubts in understanding some concepts of potential energy
Does an unused member variable take up memory?
What will happen if my luggage gets delayed?
Specifying a starting column with colortbl package and xcolor
Why do we say ‘pairwise disjoint’, rather than ‘disjoint’?
How can I manipulate the output of Information?
What is better: yes / no radio, or simple checkbox?
Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?
Finitely many repeated replacements
Signed and unsigned numbers
How many characters using PHB rules does it take to be able to have access to any PHB spell at the start of an adventuring day?
Why is a very small peak with larger m/z not considered to be the molecular ion?
Are all players supposed to be able to see each others' character sheets?
Which situations would cause a company to ground or recall a aircraft series?
Why do phishing e-mails use faked e-mail addresses instead of the real one?
Recommendation letter by significant other if you worked with them professionally?
Is this Paypal Github SDK reference really a dangerous site?
From an axiomatic set theoric approach why can we take uncountable unions?
I have Mail with “Click to Download Invoice” link But I want this PDF As a attachment in my Mail. Using Springboot Java [on hold]
2019 Community Moderator ElectionDownload attachments using Java MailSending Email in Android using JavaMail API without using the default/built-in appSend Email IntentUnable to download PDF attachment with java by using JavaMailDownloading Java JDK on Linux via wget is shown license page insteadSending mail attachment using Javajava mail Api want to show attachment linkjava mail download link for attachmentAttachment downloaded in “File” format instead of pdfHow to attach invoice PDF instead of packing slip in magento 2
I am Creating a Link and attaching that to Email as Click to download Button but Now I want to Attach that PDF in Email Instead of Click to Download.
java spring-boot email email-attachments
put on hold as unclear what you're asking by Scary Wombat, Dale Burrell, Vogel612, Gilles Gouaillardet, Pablo Cegarra Mar 7 at 6:52
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
I am Creating a Link and attaching that to Email as Click to download Button but Now I want to Attach that PDF in Email Instead of Click to Download.
java spring-boot email email-attachments
put on hold as unclear what you're asking by Scary Wombat, Dale Burrell, Vogel612, Gilles Gouaillardet, Pablo Cegarra Mar 7 at 6:52
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
I am Creating a Link and attaching that to Email as Click to download Button but Now I want to Attach that PDF in Email Instead of Click to Download.
java spring-boot email email-attachments
I am Creating a Link and attaching that to Email as Click to download Button but Now I want to Attach that PDF in Email Instead of Click to Download.
java spring-boot email email-attachments
java spring-boot email email-attachments
asked Mar 7 at 5:07
ukdevukdev
13
13
put on hold as unclear what you're asking by Scary Wombat, Dale Burrell, Vogel612, Gilles Gouaillardet, Pablo Cegarra Mar 7 at 6:52
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as unclear what you're asking by Scary Wombat, Dale Burrell, Vogel612, Gilles Gouaillardet, Pablo Cegarra Mar 7 at 6:52
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Nothing specific to spring-boot here.
You can attach pdf to email and for that you need 2 MimeBodyParts, one for the main message body and one for the attached file:
Multipart multipart = new MimeMultipart();
MimeBodyPart messageBodyPart = new MimeBodyPart();
String message = "file attached. ";
messageBodyPart.setText(message, "utf-8", "html");
multipart.addBodyPart(messageBodyPart);
MimeBodyPart attachmentBodyPart = new MimeBodyPart();
attachmentBodyPart.attachFile(new File(filePath+"/"+fileName), "application/pdf", null);
multipart.addBodyPart(attachmentBodyPart);
mail.setContent(multipart);
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Nothing specific to spring-boot here.
You can attach pdf to email and for that you need 2 MimeBodyParts, one for the main message body and one for the attached file:
Multipart multipart = new MimeMultipart();
MimeBodyPart messageBodyPart = new MimeBodyPart();
String message = "file attached. ";
messageBodyPart.setText(message, "utf-8", "html");
multipart.addBodyPart(messageBodyPart);
MimeBodyPart attachmentBodyPart = new MimeBodyPart();
attachmentBodyPart.attachFile(new File(filePath+"/"+fileName), "application/pdf", null);
multipart.addBodyPart(attachmentBodyPart);
mail.setContent(multipart);
add a comment |
Nothing specific to spring-boot here.
You can attach pdf to email and for that you need 2 MimeBodyParts, one for the main message body and one for the attached file:
Multipart multipart = new MimeMultipart();
MimeBodyPart messageBodyPart = new MimeBodyPart();
String message = "file attached. ";
messageBodyPart.setText(message, "utf-8", "html");
multipart.addBodyPart(messageBodyPart);
MimeBodyPart attachmentBodyPart = new MimeBodyPart();
attachmentBodyPart.attachFile(new File(filePath+"/"+fileName), "application/pdf", null);
multipart.addBodyPart(attachmentBodyPart);
mail.setContent(multipart);
add a comment |
Nothing specific to spring-boot here.
You can attach pdf to email and for that you need 2 MimeBodyParts, one for the main message body and one for the attached file:
Multipart multipart = new MimeMultipart();
MimeBodyPart messageBodyPart = new MimeBodyPart();
String message = "file attached. ";
messageBodyPart.setText(message, "utf-8", "html");
multipart.addBodyPart(messageBodyPart);
MimeBodyPart attachmentBodyPart = new MimeBodyPart();
attachmentBodyPart.attachFile(new File(filePath+"/"+fileName), "application/pdf", null);
multipart.addBodyPart(attachmentBodyPart);
mail.setContent(multipart);
Nothing specific to spring-boot here.
You can attach pdf to email and for that you need 2 MimeBodyParts, one for the main message body and one for the attached file:
Multipart multipart = new MimeMultipart();
MimeBodyPart messageBodyPart = new MimeBodyPart();
String message = "file attached. ";
messageBodyPart.setText(message, "utf-8", "html");
multipart.addBodyPart(messageBodyPart);
MimeBodyPart attachmentBodyPart = new MimeBodyPart();
attachmentBodyPart.attachFile(new File(filePath+"/"+fileName), "application/pdf", null);
multipart.addBodyPart(attachmentBodyPart);
mail.setContent(multipart);
answered Mar 7 at 5:11
AlienAlien
5,25431127
5,25431127
add a comment |
add a comment |