• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JavaMail or Desktop API

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am currently using the Desktop API to send email to users on a network through a Java Swing application. I click a JButton, it invokes the default email client application (which is GroupWise) with prefilled data in the subject, body,to fields, etc. and then click send. This works great except for the fact that I don't want the Groupwise dialog box to appear showing all the prefilled fields. I want to send the email without being promted with the email client dialog box and having to click send. From my research I really don't think this can be done using the Desktop API. So....

1. If this can be done with the Desktop API please point me in a direction as to how this can be done.

2. If not, should I be using the JavaMail API or a different API to send the email to users on the network? I do not want to get email server admin staff involved for configurations as it is not a large project.

Basically, I need a simple way to transport messages without the hassel of invoking my email client dialog box everytime a predfined email is sent to users.

Thanks for any help.

 
Saloon Keeper
Posts: 7582
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you don't need to receive emails -just send them- check out the Aspirin library.
 
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Joe Mastro wrote:Basically, I need a simple way to transport messages without the hassel of invoking my email client dialog box everytime a predfined email is sent to users.



And just to clarify something which wasn't clear from your post: Do you care who those e-mail messages appear to come from?

I ask because your Desktop approach causes the e-mail messages to come from the person who clicks OK on the GroupWise dialog box. If you switch to some other solution which doesn't require interaction with the user, then you're going to have to decide on a "From" address, or configure one perhaps. And you might have to deal with authentication -- another thing which is taken care of when the user clicks OK on the GroupWise dialog.
 
Joe Mastro
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes I do. The e-mail messages should come from the person who clicks OK on the GroupWise dialog. The users email address is automitacally populated in the "From" box when the Groupwise client is invoked and that is how I intended it to be. It is a "ticket" application so the email gets sent to a designated staff in IT with a problem description and a ticket number. It was an MS Access vba application that is being converted to a Swing app. and in vba I used DoCmd.SendObject acSendNoObject to accomplish opening GroupWise client, filling in the fields and automatically sending the email without a GroupWise dialiog prompt.

Also to clarify original post, I originally wrote it as my application that is invoking the GroupWise email client but just the same it could be any one of the users invoking the email client also on their machine.. Not that it matters, the principal is the same....everyone has a copy of the app, each app invokes GroupWise email client on their machine and fires off email to appropriate To: destination.
 
Paul Clapham
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Joe Mastro wrote:Yes I do. The e-mail messages should come from the person who clicks OK on the GroupWise dialog. The users email address is automitacally populated in the "From" box when the Groupwise client is invoked and that is how I intended it to be.



That's what I suspected. This dialog box which pops up may be annoying but it has two important features: it automatically inserts the current user's e-mail address in the From address, and it authenticates with the GroupWise server. If you want to modify the system so that it doesn't pop up the dialog box, then you're going to have to replicate those features on your own in the modified system.
 
Joe Mastro
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess I was spoiled with using the methods of the Docmd object in vba where I could use one line of code to invoke the email GroupWise client, prepopulate all the necessary fields in the GroupWise client dialog, and send the email without ever having to see the GroupWise client dialog. I'll also check out the Aspirin suggestion. Thanks.
 
reply
    Bookmark Topic Watch Topic
  • New Topic