Addresses don't clear between mail messages

I have built a custom Mail interface which is only required to send mail. I am using Tomcat 5.5, JSP and Servlets. I am using JDK 1.6. I can send mail with all the bells and whistles with no trouble, attachments are uploaded using an open source package, and attached to the messages, NO Problems there...
BUT, users log into my application, they click on the mail icon and check they mail and send new mail... The "sent mail" is stored in the db, no e-mail is stored in the system. The received mail, which is only actually received from other users of the system, is also stored in the DB for online viewing...which is to say the form input details used to create the mail are stored...
IF the user has selected to have the message forwarded to their "real" email account, then I create an e-mail using the JavaMail API and send it. Currently I am using James Server on my laptop to build and test it.
Now, a user may send a mail message then send another, and another...etc... BUT if I send the first mail message to russ@localhost and the second to russ@beavis and the third to russ@butthead, assuming those addresses are fine...the first will go to russ@localhost, the second will go to russ@localhost & russ@beavis and the third will go to russ@localhost & russ@beavis&russ@butthead....
In other words it is not clearing the addresses set in the previously sent mail message ... it seems that it is holding these addresses as static variables and does not provide a way to clear them...
I even tried setting the Message object to null....but it doesn't help
I couldn't find any info on this issue online anywhere... so I assume it is just me screwing up again...
Any help is greatly appreciated..

I couldn't find any info on this issue online
anywhere... so I assume it is just me screwing up
again...That's always the first assumption you should make.
Any help is greatly appreciated..Under that assumption, you should be looking at your code. First find where you assign the recipients to your message. Look at what you are assigning from. You will find that is something that allows a list of recipients. And I think you will also find that you don't clear that list when you create a new message.

Similar Messages

  • Math fonts don't display in mail messages?

    For some reason when I receive a mail message with math - fractions, equations, etc. these characters don't display.  My husband has an iPhone 4 and this isn't a problem on his phone.  I am wondering how I can get these characters to display?
    Thanks

    Hi markatos
    Hi Rick Van Vliet
    I have the same problem, and I can also (only) underline text.
    Since upgrading to Tiger (10.4.8) from Panther 10.3.9, I have experienced a few daft functional problems, eg the 'Enter' key not working on the calculator (the standard one, not the Dashboard version). This turned out to be a '.plist' problem.
    Mail was marking all outgoing mail as 'Junk' ... '.plist' problem again.
    But I cannot see how to sort this one ... at the moment I am having to format text on a Stickie then paste it into a Mail message in order to do simple things like bold headings (I don't need any more than this really). So the 'Font' palette is working. Message format is set to 'Rich Text'.
    Any ideas anyone?
    Help will be appreciated.
    Thanks in advance.
    Paul

  • Mail compose window jumps to back when adding address. As soon as I add a single character to the address window of a new mail message, it pops  under all other existing windows. If I have others open...and who doesn't? I have to then close them all.

    So.....deeply....disappointed by Lion...
    It honestly gets in the way of getting things done.
    When was the last time you had an upgrade, in any program or  OS that caused an immediate productivity drop?
    Mail windows, when adding a new address, pop under to become the lowest window in the stack...before you are done composing...
    no extra clicks..just adding ONE character to the actual address bar does it.
    Trying to add files to an online content management system is hard...it's hard because when you attempt to add the file, it disappears from
    the list, so a search must be conducted...oh not a search of your hard drive...no...it has to include ALL FILES and that takes a while, showing
    files totally unrelated to what you need or in whatever that view is, showing everything from movies to documents, to a whole range of other stuff
    that is irrelevant to what is being sought.
    I can get used to the disappearing icon tool bar...but the message threading in Mail is so strangely bad it's hard to describe. So you send out an email,
    and it had 5 points...but that was 3 emails before...A reply comes in addressing those 5 points but saying something like ..."I disagree with point number 4"
    Unless you have total recall the thread shows you only incoming mail and the LAST most recent folded up message you sent. You are forced to go digging
    into sent mail to see what that point you made 8 days eariler actually was...
    I am pleased that I don't have to have Launchpad (honestly the silliest 'feature' I've ever seen on a computer) in the dock and see no point in the juvenile Mission Control (the naming scheme is odd and reminiscent of Junior Spaceman...how ironic that we end America's manned launch capability at the same time as Launch Pad and Mission Control, both throwbacks to the 60's are added to an OS). In any case both are virtually useless tools. One, replacing the mildly useful Spaces and the other just genuinely useless.
    I'm going to give Apple until the second bug fix...but I can tell right now that Snow Leopard was a far more robust OS. The thousands of posts about this may rise to the level of AntennaGate...I hope so...It seems the only way to get Steve (for whom I have now honestly lost respect for the FIRST TIME) to address the issues is to embarrass the company publicly. Lion is a broken system, poorly conceived...and proof that the Apple methodology of no widespread user testing can and does fail. This needs to get fixed. Soon.

    It seems to have something to do with profile manager.
    I get stack traces in the "system messages" logs for the "Server" application, grrrr.
    I'll get that info and attempt to submit a but report tonight.

  • How can you scroll between mail messages in Lion mail?

    In leopard and snow leopard, you could scroll between messages in mail with a 3 finger gesture.  this feature seems to be disabled in lion....or am i missing something?  Is there any way to use gestures to scroll between messages in mail?

    Go to the Settings App
    Pick Mail, Contacts, Calendars
    On the right side you'll see under the Mail section "Add Account”
    Pick that and fill out the requested information

  • Mail 10.10.1 Don't show sent mail messages

    When I send mail after upgrading to 10.10.1 Mail doesn't show them in the sent messages box.

    Try rebuilding the mailbox. This can take awhile if you have a lot of mail.
    Rebuild mailbox

  • Mavericks Mail; difference in delete folder and trash folder?  I don't know which folder to use clearing out old messages, spam, junk and other detrious I might want to recover in the future and which folder for highly sensitive or personal  informa

    I don't know which folder to use clearing out old messages, spam, junk and other detrious I might want to recover in the future and which folder for highly sensitive or personal  in formation I want to keep confidential.

    More to my question regarding standard Mail folders, how do Trash and Delete differ in function?

  • Does MobileMe sync e-mail messages or only the account settings between computers?

    Does MobileMe actually sync e-mail messages between computers or only the account settings?

    Here's a scenario:  We have an iPhone, an iMac, and a MacBook Plus that we want to sync with MobileMe. So let's say that we check our e-mail using the iMac tomorrow. We save some new messages and delete the rest. Does MobileMe then sync (i.e. save the same messages and delete the rest on the iPhone and the MacBook Plus)? Or do we need to go through the same process with the iPhone and the MacBook Plus as we did on the iMac?
    Also, does MobileMe sync addresses, favorites, documents, etc.?
    If you delete a message on the iMac it would also automatically delete that message on the iPhone and MacBook. If you send a message from the iPhone it would appear in the sent messages folder on the MacBook. If you receive a message on the MacBook and read it then it would appear as read on the iMac, etc.
    Yes, MobileMe will sync your address book, Safari bookmarks and documents. However it's a little trickier with the documents as it involves localizing your iDisk. I'm personally not a huge fan of the tech that Apple uses for the iDisk (WebDAV) and I feel there are some better solutions out there but it will get the job done.
    It's important to add that Apple offers a 60-day, no obligation, trial of MobileMe for you to try out and see if the features are worth it for $99/year.

  • I "reply"ed to an e-mail message. The next time when I chose to write a new message and type the first letter of the person I replied to earlier, that name and e-mail address appears as a choice included in a pop up list of my contacts.

    I "reply"ed to an e-mail message. The next time when I chose to write a new message and type the first letter of the person I replied to earlier, that name and e-mail address appears as a choice included in a pop up list of my contacts. The persons name is not in my contacts and I would like to delete it from popping up. Do you know how I can do this?

    The Mail app on the iPad/iPhone/iPod Touch does have an option to clear previous recipients. You can learn to live with it.  But if you want to get rid of it, the only way to remove these cached email addresses from the Mail application is restoring the iPhone/iPod Touch as a new phone/iPod.  If you restore from backup, the cache is also restored.
    This article shows you the screens you will see during the restore:  http://support.apple.com/kb/HT1414

  • TS3988 My icloud account is not verifying it says check my mail witch I have done and I get a message say your iPhone for has been used to set up and Icloud account but still can not use the icloud can anybody help me.

    My icloud account is not verifying it says check my mail witch I have done and I get a message say your iPhone for has been used to set up and Icloud account but still can not use the icloud can anybody help me.

    Be sure you are checking the email account that you used to set up the Apple ID you used to create the iCloud account.  Also, be sure to check your spam/junk folder as well as your inbox.  The email you should receive looks like the image below.  When you get it, click the Verify Now link.
    If it still isn't there, try going to https://appleid.apple.com, click Manage your Apple ID, sign in, click on Name, ID and Email addresses on the left, then to the right look for a link to resend the verification email.

  • Several days ago some of the links in my Apple Mail messages stopped working. Specifically, the links going to some variation of "response beacon" don't work. All I see is a blank screen. Does anyone have any idea how to fix this?

    Several days ago some of the links in my Apple Mail messages stopped working. Specifically, the links going to some variation of "response beacon" don't work. All I see is a blank screen. Does anyone have any idea how to fix this?

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Moving Safari bookmarks, address book info and mail messages to new machine

    I recently got a new powerbook and would like to transfer my safari bookmarks, mail messages and address book information over to the new machine. What would be the best way to do this? I'd like to keep the old information on the desktop and simply add the information to the new machine.

    Yeah - but the kicker is, I don't want to transfer everything, just the safari bookmarks, the address book information and selected mail folders that are "On My Mac"

  • I'm downloading adobe software via my dad's account and when it's done loading, it has a message where it says it sent a verification email to my email address, but when I check it shows that it hasn't been set.  I keep clicking the resend email and it cl

    I'm downloading adobe software via my dad's account and when it's done loading, it has a message where it says it sent a verification email to my email address, but when I check it shows that it hasn't been set.  I keep clicking the resend email and it claims it does but it still hasn't sent the email to my address.  How do I fix this?

    It is probabl,y sending the email to your Dad's email address if you are using his account.

  • After 10.9.4 Update: Mail Messages Grey Out Upon Deleting-Don't Move to Trash?

    Hello,
    After 10.9.4 Update/MacBook Pro with Retina display: Mail Messages Grey Out Upon Deleting-Don't Move to Trash? I believe I must join those who are having trouble with mail after this latest update. Deleted messages just turn a light grey in the message panel and don't move to trash until after I quit and restart mail. I have also experienced the screen "Freezing" ... no spinning beach ball, just the pointer frozen. This has happened only when I use mail and requires a "hard" re-start to correct.  Is this a "feature" of the update, or is it a problem? Thanks!

    Some of your user files (not system files) have incorrect permissions or are locked. This procedure will unlock those files and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
    Back up all data.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Enter the following command in the Terminal window in the same way as before (triple-click, copy, and paste):
    sudo find ~ $TMPDIR.. -exec chflags nouchg,nouappnd,noschg,nosappnd {} + -exec chown $UID {} + -exec chmod +rw {} + -exec chmod -N {} + -type d -exec chmod +x {} + 2>&-
    This time you'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
              Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. In that window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button
    Select
               ▹ Restart
    from the menu bar.
    Quit Mail and empty the Trash. If you still can't, log out or restart the computer.

  • HT5361 When inserting pictures in a new mail message using the " photo browser" button I can view and select photos but the " choose "  button is gone. What have I done wrong?

    When inserting pictures in a new mail message using the " photo browser" button I can view and select photos but the " choose "  button is gone. What have I done wrong?

    Hi Liz,
    Sorry to hear you are having a similar problem.  Last night I went to the tool bar at the top of iphoto, clicked on "File",  then clicked "Browse Backups" in the drop down menu.    I have an external hard drive that is set up to Time Machine.   The Browse Backups  opened the iphoto pages in the Time Machine.  I selected a date one day ahead of the day I performed the now infamous update, and it showed my iphoto library as it had existed that day.   I then clicked  "Restore Library" at the bottom right corner of the Time Machine screen.   Roughly 2 hours later my iphoto was back to normal.   When I opened iphoto there was a message saying I need to upgrade my program to be compatible with the new version of iphoto(version 9.2.1).  I clicked "Upgrade" and within seconds it had done whatever upgrading it needed to do. 
    The only glitch in the restoration was that it restored the library as it appeared last week, so I no longer had photos I had imported this past weekend.   I simply went back to the Browse Backups in the drop down menu,  when Time Machine opened I selected the page showing my pictures from this weekend and again said to Restore Library.   Roughly 45 minutes later the library was restored including the most recent photos.  
    I am now a happy camper. 
    I don't know if any of this will be of help to you because your email says you are having trouble with photos imported after the upgrade was performed.   Have you had any pop up notices when you first open iphoto,  that tell you you need an upgrade to be compatible with the new iphoto?     If so have you clicked "upgrade"? 
    Good luck Liz,  if you have Time Machine running as a back up to your library, maybe you wil be able to get help there, by following my instructions above.   Otherwise,   good luck with your investigations.   I'd be interested in hearing how you make out.
    Karen

  • Contact photos in Yosemite Mail messages don't display

    My contacts all have photos and email addresses defined but mail messages only display the "initials" icon instead of their photo. This seems to be happening on both of my Macs and my iOS devices.
    Anyone experiencing this found a fix? Thanks in advance.

    Why are my messages out of order?: Apple Support Communities

Maybe you are looking for