Skip to main content

Sending messages

8 replies [Last post]
hangstrap
Offline
Joined: 2004-04-25

Is it possible to send a message without displaying the message compose window of the default mailer?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
hangstrap
Offline
Joined: 2004-04-25

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.

Richard

andriana_ria
Offline
Joined: 2009-12-08

Hi,

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.

Thanks,
Ria

zombi
Offline
Joined: 2003-06-26

You should use JavaMail.

andriana_ria
Offline
Joined: 2009-12-08

Yes, but javamail requires us to set the smtp server. What I needed is sending mail automatically via outlook (if available in user PC)

Anonymous

Yes, you can. Major email client support "silent" mode, where you can send out the message without displaying the composer window.

-Paul

hangstrap
Offline
Joined: 2004-04-25

How do I set up this mode?

I presume that I set something on class Message, but what?

Nothing in the API

Anonymous

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.

-Paul

robogeek
Offline
Joined: 2003-06-18

Why worry about this? Using SMTP you can send any email any time. Javamail is the right tool for this, most likely.