Sending email with attachments submitted from form using apache commons HTML Email without using any temporary storage - java-8

I have a form which through which attachments are submitted and at java side I need to send an email with those attachments without storing attachment temporary anywhere. Is it possible to do that ?
my code looks like
email.attach(fileDataSource,fileName,fileName)

Related

Send email using AWS SES from template with custom data and attachment in Spring

I have Spring Boot application and I would like to send email using AWS SES SDK. I have templates for emails (added in SES) with placeholders to put some custom data/strings. Email should also contain attachment (pdf file).
I found this solution https://stackoverflow.com/a/69400797/3626048 to load template from SES and use RawEmail to send with attachment (https://docs.aws.amazon.com/code-samples/latest/catalog/javav2-ses-src-main-java-com-example-ses-SendMessageAttachment.java.html). But my problem is that in RawEmail I can't fill placeholders in my templates.
I could find and replace placeholders using String.replaceAll() method but is there any better solution?

Create an HTML file from body of an email using Cloud Flow Power Automate?

We receive order requests from some customers embedded in the email body rather than an attachment. In Outlook, I can manually save the message as HTML. I configured Power Automate to create a file from the email. I'm not sure what format it is but it isn't HTML as if I saved it directly from Outlook. I've already wrote SQL code to parse the HTML message. Redoing it in this different format is problematic because the source code doesn't align like the manually saved file.
It needs to run as a cloud flow so calling an Outlook macro from PA Desktop is not a solution.

How to read outlook email saved under local directory on pc using javax mail api

I am trying to read email saved to my localhost directory using javax mail api but I am not sure how to read from your local directory.
So I found third pary library which reads email for me and returns data in string format but not sure how to build javax mail message using those string data.
Problem trying to solve :
I want to read header from email which should be in key-value form. This comes only when you read from IMAP server.
Any help appreciated.
thank you
Happy Thanksgiving!!

How to send an HTML and PDF attachment in ses email

For my application, I am writing an lambda function in node js for sending email from ses. This email is triggered when S3 bucket gets an image. And email should contains only html content as and an pdf attachment. I have tried with sendRawEmail function, however it is sending all the things in email body (from, to, content type). Is there any proper function for this, it will be good if I get a good tutorial for this

Sending Email receipt from Authorize.net transaction on my website

I am using Authorize.net AIM on my website to accept donations/payments. Authorize.net automatically sends an email receipt to the customer once they have made the purchase, but I wish to disable this and send an email using my own email receipt template (in .html).
Previously I have sent emails using this format after I have inserted a username and email address into mySQL from a form on my website - it worked great.
I now wish to do this same thing, but instead of inserting information into a database, using the information from their donation (amount, email address, confirmation) to send them an email.
I was using Swift to send the emails. This worked great.
How would I use php to do the same thing but with the information from my authorize.net coding?
You could use Authorize.net's API and SDK and call the GetTransactionDetailsRequest with the transId and pipe the results to your customer's email with your own custom HTML email template.

Resources