Yes that is what i did.. forgot that i had made this question, but now when your here perhaps you can take a look at my code and check if im doing it the best way. It is working but perhaps i misunderstood something... like the part where i get the alias... im not verry experienced with this
[ March 14, 2007: Message edited by: simon valter ]
What you did seems to be correct. Except for the way you are looking for the alias. When I was searching the web I've managed to find something more satisfying:
But a question to you, maybe you've ran into this. Do you know if its possible to encrypt email w/ .cer instead of .pfx? I got that working, but users on the receiving end seem to be having troubles decoding it. So I'm wondering if its at all possible.
I am trying to digitally sign emails using the code which you have provided but it is not working for me. I am getting an error "the type jakarta.mail.internet.mimemultipart cannot be resolved". What i am missing here? is any jar missing or imports?
The post you were looking at is 19 years old - things have changed since then.
The javax name space is now jakarta so instead of importing javax.mail.internet.MimeMultipart, it would be
jakarta.mail.internet.MimeMultipart (which it sounds like you have done).
You are trying to import jakarta.mail.internet.MimeMultipart (with uppercase M), not jakarta.mail.internet.mimemultipart (with lowercase m) like you put in your post, right?
The above code is not working for me. Is there a way to to send digitally signed message?
I am able to send simple mails but those are not digitally signed. Getting many error in the above piece of code. X509Certificate is deprecated.
Post by:autobot
My favorite is a chocolate cupcake with white frosting and tiny ad sprinkles.
a bit of art, as a gift, the permaculture playing cards