IntelliJ Java IDE
The moose likes Other JSE/JEE APIs and the fly likes Priorities in JavaMail Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "Priorities in JavaMail" Watch "Priorities in JavaMail" New topic
Author

Priorities in JavaMail

Jared Krull
Ranch Hand

Joined: Sep 28, 2001
Posts: 32
Hi I'm new to the board....
I have a servlet that sends mails to my server's SMTP server. I have tested it with a few addresses, but one in perticular does not work. My WebHost said to raise the mail's priority to high, as it seems the mails are being sent ok - just not recieved.
Can I raise priority with JavaMail? I have looked on Sun but cant find what I need.
Any help would be great
TIA


C programmer gone astray
Jared Krull
Ranch Hand

Joined: Sep 28, 2001
Posts: 32
Doesnt matter...I think Ive got it....
I think you need to add something extra to the message before sending. For anyone interested;
MimeMessage message;
message.addHeader("X-Priority", "1");
 
 
subject: Priorities in JavaMail
 
Threads others viewed
Setting Priorities for Mail
List of sent items in JavaMail
how to track emails from particular mail id?
How to identify received mail is failure delivery notice mail in javamail?
javamail and pstn connection
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com