javax.mail.internet -> Changing the name of a file send as attachment.

S

Sergio Juan

Hi.

I'm doing a program that checks pairs of files (one old, stable, and one
created by a process I'm checking) for differences, and sends an email if
any is found.

The files that must match are stored in different directories and have the
same name. Now the application is going to be run in "remote mode" and sends
e-mail to an user if an error happens. I would like to send both files in
the same mail as attachments, but AFAIK the email will have two files with
the same name, and the user won't be able to know which one is the new and
which one is the stable one and which one the new one.

I know, I could rename one of them, but it would be more efficient if I can
somehow just change the name that is in the email. Does anyone know how to
achieve this?

Thanks In Advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top