Click here to Skip to main content
13,356,318 members (59,623 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I have to send a html content as email. html contains file contains images,links,date,name etc.
But for each recipient, the name in html field will be his own name. And date will change in each day. And the html links will also get changed each day.
It is not possible to manually change it everyday?
And I am using a java program to send the bulk mail, written by me.
Is there any way to send such html email?
How can set date automatically each day?
And how can change the new link by a GUI created using java?
Posted 1-Feb-13 0:50am
agav 2-Feb-13 1:25am
Is it possible to do by using xml,xsl,xslt etc?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You just need to read the content and modify it for the different recipients and links. Create a template file so that you can locate individual fields and add the correct information at those points in the message before sending it.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You should use the JAVA Mail API for that. It's suitable.

Here are some Tutorials and helpful links:

Fundamentals on the JavaMail API[^]
Was on oracle server, don't know why they do not host it any more. Great source.

All About Java Mail[^] @

I can recommend to start with sending simple text messages, then to extend the SMTP to send HTML Messages, then add Attachments.

Please use a local Email Server for Development and Testing. HmailServer [^] is free and runs on any Windows machine. Please be aware of the auto-ban option in that, disabling that in the settings can save a lot of nerves and time.

Thunderbird portable[^] is a simple Email client which you can use for development / testing. It's compact and this way you will have your normal emails completely separated from the development.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.180111.1 | Last Updated 1 Feb 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100