/    Sign up×
Community /Pin to ProfileBookmark

Create e-mail via servlet

Hi,

I’m currently implementing a web application which creates certain documents (PDF and DOC) using a servlet and displays them in a browser.

Now mail functionality is to be added as follows: after the document has been created, it is sent to a particular address as an e-mail attachment.

What I want to achieve is that the servlet creates the mail as a mime message in a way that the browser automatedly opens Outlook after it has received the message from the servlet. Unfortunately, for security purposes it is impossible to send the mail directly from the servlet-containes, but the mail must be returned to the client first.

Anyone got any idea???

Thanks, Alex

to post a comment
Java

1 Comments(s)

Copy linkTweet thisAlerts:
@Mr__RamMar 18.2006 — Modify & Try with this code

[upl-file uuid=7af30b5d-7481-468a-b9be-916a64db48b9 size=3kB]SendMail.zip[/upl-file]
×

Success!

Help @mauroalberti spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...