Is it possible to send a message without displaying the message compose window of the default mailer?
I guess I am going to have to give a real example
We have a rich java client application that allows a user to do a simple mail merge operation.
He selects a number of clients that he want to send email to, selects some fields from the database and then composes the email message.
Our application then uses JDIC to display the first email message in outlook. The user can then send it.
Our application then asks the user if it should display each email message in turn.
If the user selects â€œyesâ€ then each email is displayed in outlook in turn.
If the user selects â€œnoâ€ then the other email messages are sent (via outlook) without displaying them.
I am sure that there a many better ways of doing a mail merge, but this is what the customer requested.
Is there already any function to support the silent sending? My application gives an option for user to display the outlook message or automatically send it. until now, I haven't find any solution on how to automatically sending it.
You should use JavaMail.
Yes, but javamail requires us to set the smtp server. What I needed is sending mail automatically via outlook (if available in user PC)
Yes, you can. Major email client support "silent" mode, where you can send out the message without displaying the composer window.
How do I set up this mode?
I presume that I set something on class Message, but what?
Nothing in the API
Well, we planned to do this in our API. However, this feature was canceled due to important security reason. We do not hope anybody can use this API to send silent email containing import system information like your passwd, etc. So, you wouldn't find this feature in our API.
Why worry about this? Using SMTP you can send any email any time. Javamail is the right tool for this, most likely.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.