JavaMail not sending all emails

Hello, I'm having an issue with JavaMail, that is kind of frustrating. i'm currently modifying a program that uses the javamail api to send errors and traces to clients if the program fails. The problem is that sometimes the emails don't send. The frustrating part is that some errors are emailed and some are not, even out of the same class, so this problem would seem to not be relegated to just a singular class.
I've enabled debugging and am not seeing anything relevant. My gut tells me that it has something to do with the subject(thought, I couldn't tell you what.)
I have debugged the code and everything is being submitted properly. The email just doesn't send.
Has anybody had this issue before?
Here's the debug trace...
DEBUG: JavaMail version 1.4ea
DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.5.0_11\jre\lib\javamail.providers (The system cannot find the file specified)
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.providers
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.address.map
DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.5.0_11\jre\lib\javamail.address.map (The system cannot find the file specified)
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "mail.esagrp.com", port 25, isSSL false
220 esa20.esagrp.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at  Mon, 1 Dec 2008 09:49:06 -0600
DEBUG SMTP: connected to host "mail.esagrp.com", port: 25
EHLO BPC
250-esa20.esagrp.com Hello [xxx.xxx.xx.xx]
250-TURN
250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-X-EXPS GSSAPI NTLM
250-AUTH GSSAPI NTLM
250-X-LINK2STATE
250-XEXCH50
250 OK
DEBUG SMTP: Found extension "TURN", arg ""
DEBUG SMTP: Found extension "SIZE", arg ""
DEBUG SMTP: Found extension "ETRN", arg ""
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "DSN", arg ""
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "8bitmime", arg ""
DEBUG SMTP: Found extension "BINARYMIME", arg ""
DEBUG SMTP: Found extension "CHUNKING", arg ""
DEBUG SMTP: Found extension "VRFY", arg ""
DEBUG SMTP: Found extension "X-EXPS", arg "GSSAPI NTLM"
DEBUG SMTP: Found extension "AUTH", arg "GSSAPI NTLM"
DEBUG SMTP: Found extension "X-LINK2STATE", arg ""
DEBUG SMTP: Found extension "XEXCH50", arg ""
DEBUG SMTP: Found extension "OK", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:<[email protected]>
250 2.1.0 [email protected] OK
RCPT TO:<[email protected]>
250 2.1.5 [email protected]
DEBUG SMTP: Verified Addresses
DEBUG SMTP:   [email protected]
DATA
354 Start mail input; end with <CRLF>.<CRLF>
From: [email protected]
To: [email protected]
Message-ID: <[email protected]>
Subject: ONYX: Error occurred while trying to create a FileOutputStream. The
parameter is either not available, or can't be created.
MIME-Version: 1.0
Content-Type: multipart/mixed;
     boundary="----=_Part_0_10605044.1228146578495"
------=_Part_0_10605044.1228146578495
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
java.io.FileNotFoundException: c:\Shared\Quantum\archive\20081201\RateAccessRequest.xml (The system cannot find the path specified)
     at java.io.FileOutputStream.openAppend(Native Method)
     at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
     at com.rates.xmlstructureobjects.SetAttributesAccessRequestDoc.<init>(SetAttributesAccessRequestDoc.java:49)
     at com.onyx.RatesInformation.<init>(RatesInformation.java:32)
     at com.onyx.testapp.main(testapp.java:55)
------=_Part_0_10605044.1228146578495--
250 2.6.0  <[email protected]> Queued mail for delivery
QUIT
221 2.0.0 esa.esagrp.com Service closing transmission channel

According to the trace, your mail server is accepting the message. If your mail server fails
to deliver the message to the recipient, you should check the logs in the mail server to see
what it's doing with the message.
It's possible that the sending mail server or the recipient's mail server has some sort of filter,
such as a spam filter, that's silently rejecting the message. If changing the content (or Subject
header) or the message causes it to be reliably delivered to the recipient, I'd look for some sort
of mail filter.

Similar Messages

  • Using JSF and JavaMail to send Automated Email

    Hi All,
    Can any one please suggest I can use JSF and JavaMail to send automated email messages i.e after a person has successfully completed a form , a message is sent to his/her email address confirming that he has succesfully registered or completed a form. I have succesfull implemeted the use of javamail for sending email meassages in a JSF web application but cant seem to figure out how i can achieve automated sending of emails in JSF. Please any ideas, tutorials or source code would be very much appreciated.
    Thanks.

    I don't understand your problem:
    You have already been able to send e-mails from a JSF webapplication, but you are not capable of sending e-mails from a JSF webapplication?!
    Automated sending of e-mails will be exactly the same as non-automated.

  • I could not open my windows live hotmail emails and could not send any emails as well,how do I make it work again?

    I could log into my windows live hotmail account but I could not send any emails or open any emails.
    == URL of affected sites ==
    http://sn122w.snt122.mail.live.com/default.aspx?wa=wsignin1.0

    Hello David.
    You may be having a problem with some extension or plugin that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    In addition, read this article:
    http://support.mozilla.com/en-US/kb/Websites+look+wrong

  • Not receiving all email to primary Apple ID address since the creation of an alias

    Not receiving all email to primary Apple ID address since the creation of an alias

    All email sent to your iCloud email alias address should be received in your iCloud inbox.  If email is being addressed to your alias when you think it should be addressed to your primary address it may be because the sender replied to an email you inadvertently sent from your alias address.  You might want to confirm that your primary address is set as your default for sending mail.  See "set default address to send from" here: http://help.apple.com/icloud/#/mm6b1a490a.

  • HT201320 I am having trouble with my wife's new iPhone 5s. She can receive her telus email but can not send any email what did I do wrong in setting up her account?

    I am having trouble with my wife's new iPhone 5s. She can receive her telus email but can not send any email what did I do wrong in setting up her account on her iPhone? I tried to just copy the info from her old iPhone.

    The sending of email is accomplished via the SMTP server. Take a moment to get back into Settings>Mail, contacts, calendars and select the account. Go to the SMTP server and check to make sure that username and password are entered in all of the appropriate places. If you cannot get it to work after trying to just change those settings, remove the account from the phone and recreate it. When recreating, make sure you enter the username and password in every location, even if the phone says optional. Make sure you have the settings from either the email provider or from the other device. Make sure that SSL is on or off as necessary.

  • Can not send new emails after upgrading to firefox 13

    can not send new emails thru att.net (which is yahoo) since upgrading to firefox 13. Says "loading" and nothing happens. Can send new emails thru gmail

    Hi,
    Not sure about ATT but plain yahoo.com seems to be okay. Can you also please check this in a [https://support.mozilla.org/en-US/kb/Managing-profiles new profile]. If the new profile is okay, you can then [https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox] on the old (previous) profile via '''Help''' ('''Alt''' + '''H''') > '''Troubleshooting Information'''.

  • Outlook Client not showing all emails

    Hi,
    We have signed up for emails on domains.live.com for the domain name kamtress.com 
    We setup Outlook clients in our office using IMAP.
    But the outlook client does not show all emails and also shows lots of copies of sent emails while we would have sent only one.
    Could you please help us out with this issue as to how this can be rectified?
    We use Outlook 2013 on Windows 7.
    Thank you.

    Hi,
    First of all, please make sure your Outlook is fully patched.
    Then, please log on your web mail and check if you can see all your emails. If so, please open your Outlook, go to File > Info > Account Settings > Account Settings > Highlight your Imap account and click
    Change > in the Change Account wizard, check how you set the 'Mail to keep offline' slider. Change it to
    All and then check if you can see all your emails in Outlook now.
    If problem persists, please try to create a new mail profile in Control Panel and set up your IMAP account in the new profile to check if it helps. To configure an email account via IMAP, please refer:
    http://support.microsoft.com/kb/829918/en-us
    Please let me know the result.
    Regards,
    Steve Fan
    TechNet Community Support

  • More than 10 email accounts in TB - Not Showing all emails

    Not showing all emails in UNIFIED Inbox Folder
    I HAVE SETUP MORE THAN 10 EMAIL ACCOUNTS IN TB. THEN I SENT A TEST EMAIL TO ALL OF MY EMAIL ACCOUNTS.
    WHEN I CHECK INBOX OF INDIVIDUAL EMAIL ACCOUNT, THERE IS EMAIL AND SHOWING IN INDIVIDUAL INBOX OF ALL EMAIL ACCOUNTS BUT UNFORTUANTELY IT IS NOT SHOWING IN UNIFIED FOLDER of ALL INBOXES. Unified Inbox Folder of all Emails Accounts is only showing few of them.
    PLS ADV.

    Please don't raise multiple threads for the same problem. Follow up at your OP at https://support.mozilla.org/en-US/questions/1003448.
    P.S. Writing ALL CAPS is considered shouting.

  • Can not send any email from IPhone 5, I get......A copy has been placed in

    Can not send any email from IPhone 5, I get......A copy has been placed in
    your Outbox. The sender address "jvcrews@" has been rejected
    by the server.
    <Email Edited by Host>

    I have the same problem, but I can send and receive e-mails from my home base.  When out of the range of my home I get this message: "
    A copy has been placed in your outbox.  The sender address: "[email protected]" was rejected by the server."

  • .Mac account not receiving all emails

    I am not receiving all emails to my main .Mac account. I do receive emails and would never known there was a problem until people started calling to find out why I haven't responded. I have a main .Mac account and two alias accounts, but the address that the emails are being sent to are my main account. Any ideas?

    The junk mailbox is empty. I checked my preferences and disabled it for now to see if that will make a difference. I do have some Rules set up to filter known "sales" emails to delete or change the color but I have not set up any rules to move or filter from friends.

  • TS3899 iPhone 5 email will not send however emails sent via Pages or yahoo are sending ok? Help

    iPhone 5 email will not send however emails sent via Pages or yahoo are sending ok? Help

    I inserted the code and i am still getting the same error. Here's what i'm getting.
    Developer Details:
    E-mail couldn't be sent. Error returned: authentication failure [SMTP: Invalid response code received from server (code: 535, response: 5.7.3 Authentication unsuccessful)]. (EMAIL_FAILED)
    tNG Execution Trace - VIEW
    * tNG_insert.executeTransaction
    o STARTER.Trigger_Default_Starter
    o tNG_insert.doTransaction
    + BEFORE.Trigger_Default_FormValidation
    + BEFORE.Trigger_Registration_CheckUniqueUsername
    + BEFORE.Trigger_Registration_CheckPassword
    + BEFORE.Trigger_Registration_PrepareActivation
    + tNG_insert.prepareSQL
    + tNG_insert.executeTransaction - execute sql
    + tNG_insert.postExecuteSql
    + AFTER.Trigger_Registration_AddDynamicFields
    Error--> + AFTER.Trigger_ActivationEmail*
    + ERROR.Trigger_Default_Insert_RollBack
    * tNG_insert.getRecordset
    * tNG_insert.getFakeRsArr
    * tNG_insert.getLocalRecordset
    * tNG_insert.getFakeRecordset
    * tNG_insert.getFakeRecordset
    Are there any other file I can alter for authentication? Or perhaps i need to insert the code sting I was given into another file?

  • My ipod touch is not sending video emails

    My ipod touch is not sending video emails,i can recived emails and i can send regular emails but not send video emails,i need help thank you

    What is the file sizeof the videos? Most provider limit attachment to 10 MB or so.

  • Why with Maverick can I NOT send an email to Multiple contacts?

    Why with Maverick can I not send an email to multiple contacts,? (no problems with Mountain Lion)

    I have been having problems with addressing  group emails I think only since Maverick. I have been unable to drag the group or copy the addresses into the "To" or "cc".
    However if I have 2 groups (Say "Family Close" and "Family Others" if one TYPES  Family in the "To" space the alternative are shown and when one clicks on one of these the "Bolded"  group is shown and can be expanded etc
    Bob Wines

  • TS2621 My  iPad will not send my emails.  I put my password in and after five minutes it says the password is incorrect.   79 emails have not been sent since 8/27/13

    My  iPad will not send my emails.  I put my password in and after five minutes it says the password is incorrect.
    79 emails have not been sent since 8/27/13

    Cannot send or received email
    http://www.apple.com/support/ipad/mail/

  • SharePoint Foundation 2013 installed on Windows Server 2012 not sending out email notification

    I have a server where i installed SP Foundation 2013 on top of Windows Server 2012. I have configured the SMTP as well as the outgoing SMTP in Central Administration
    of SharePoint. When i create an alert on a document library, its did not sent any email notification on the changes made to the document in the document library. So, i created a workflow to send out email using SPD2013. The workflow run, but it cannot sent
    out email with error saying that outgoing email is not configured correctly. I have checked with another server which i installed SP foundation 2013 on top of Windows Server 2008 R2 - its sending out email just fine using same configuration and outgoing SMTP.
    I need help to resolve this issue or at least the cause of the problem.
    Any help is greatly appreciated.

         
    Try below:
    http://social.technet.microsoft.com/wiki/contents/articles/13771.troubleshooting-steps-for-sharepoint-alert-email-does-not-go-out.aspx
    Go to Central Admin ---->Operations----->outgoing email settings and verify that SMTP server is mentioned correctly 
    2) Test the connectivity with the SMTP server.
    In order to do that follow these steps:
      Open  cmd
      telnet <SMTP server name> 25 ( We connect smtp server to the port 25)  
                     you should see a response  like this 220 <servername> Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at date and time
                     Beware that different servers will come up with different settings but you will get something
                     If you dont get anything then there could be 2 possible reasons, either port 25 is blocked or 
                     the smtp server is not responding.
      For testing response from your server
                       For testing response say ehlo to it.
                            Type :
                                        ehlo <servername>
                            output:
                                        250 <servername> Hello [IP Address]
      Now a test mail can be sent from that SharePoint server. 
                          Now we need to enter the From address of the mail.
                          Type :
                           mail from: [email protected]
                           output:
                           250 2.1.0 [email protected]….Sender OK
     It's time to enter the recepient email address.
    Type : rcpt to: [email protected]
    output:
    250 2.1.5 [email protected]
     Now we are left with the data of the email. i.e. subject and body.
    Type : data
    output:
    354 Start mail input; end with <CRLF>.<CRLF>
    Type:
    subject: this is a test mail
    Hi
    This is test mail body
    I am testing SMTP server.
    Hit Enter, then . and then Enter.
    output:
    250 2.6.0 <<servername>C8wSA00000006@<servername>> Queued mail for delivery
    Type: quit
    output:
    221 2.0.0 <servername> Service closing transmission channe
    3)  Check alerts are enabled for your web application
          verify if the windows timer service is running or not.
          Run this stsadm command to check that
          Stsadm.exe -o getproperty -url http://SharePoint-web-App-URL -pn alerts-enabled
         This should return <Property Exist="Yes" Value="yes" />
         If you don’t get this, Enable alerts by:
         stsadm.exe -o setproperty -pn alerts-enabled -pv "true" -url http://SharePoint-web-App-URL
          If its already enabled, try turn off and turn on it back.
    4)  Check the Timer job and Properties
           Go to
           MOSS 2007:  Central Administration > Operations > Timer Job Definitions (under Global Configuration)
           In SharePoint 2010: Central Administration > Monitoring > Review Job Definitions 
           Check whether the "Immediate Alerts" job is enabled for your web application. check these properties:
                       job-immediate-alerts
                       job-daily-alerts 
                       job-weekly-alerts
           stsadm.exe -o getproperty -url "http://Your-SharePoint-web-App-URL" -pn job-immediate-alerts
           The expected output is:
           <Property Exist="Yes" Value="every 5 minutes between 0 and 59"/>.  
           If you don’t get this, run the following command to set its value.
           stsadm.exe -o setproperty -pn job-immediate-alerts -pv “every 5 minutes between 0 and 59" -url http://Your-SharePoint-web-App-URL
    5)  Check whether the account is subscribed for alerts and it has a valid email account. This should be the first thing to check if the problem persists for some users not for      all.
    6)  Then check if at all those users have at least read permission for the list. Because the first mail should go out for every user without security validation but the next ones       won't be delivered unless the user has at least read
    permission.
    7)  If it is happening for one user, can also try to delete and re add the user in the site.
    8)  Most importantly , you should try this one.
          Run this SQL query to the content db < Select * from Timerlock>
          This will give you the name of the server which is locking the content database and since when.
          In order to get rid of that lock 
          Go to that server which is locking the content db and then restart the windows timer service.
          within some time it should release the lock from content db, if not then at the most stop the timer job for some time
          Once the lock will be released then try to send some alerts
          You will surely get the email alert.
    I found this is the most probable reason for alert not working most of the time. We should start troubleshooting with above steps before coming to this step for any alert email issue but from step 1 to step 7 are best for new environments or new servers.
    If the issue is like this ,alert was working before and suddenly stopped working without any environmental change then above conditions in step 1-7 should be ideally fine.
    Even after this if it is not working, then you can try these few more steps too
    9)  Try re-registering the alert template:
    stsadm -o updatealerttemplates -url http://Your-SharePoint-Web-App-URL -f  "c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML\alerttemplates.xml" -LCID 1033
    10)  Try to clear the configuration cache
    If this helped you resolve your issue, please mark it Answered

Maybe you are looking for

  • Apple tv video quality vs hd tv and high def dvd's

    ok...i know it supports 1080i, but does the video quality of video in itunes really look good compared against say a blu-ray disc, or hdtv signals? i'm sure it will get better (with a hardware or software upgrade?) if its not close to high def qualit

  • HAI IF ANY ONE HAVE FAQS ON ABAP-HR

    HELLO , IAM  TRYING FOR JOB ON SAP-ABAPHR SO ANY ONE HAVE  FAQ'S WITH ANS PLZ SEND ME. ANY OPENING PLZ SEND THE INFORMATION. THANKS IN ADV

  • Crystal Report Export to PDF with Group Tree Bookmarks

    Dear Forum I have created a Crystal Report aspx page with an export function of the report to pdf. So far all has been successful, except form one little annoying this. The report does export to a pdf file and it does create bookmarks based on the gr

  • BT infinity usage Router details v. BT website (My...

    Can someone please explain why there is a huge difference between the usage my BT Infinity router reports back compared to the BT (MY BT) website? On the BT, My BT website, my usage since the start of this month claims to be as follows:- Recent data

  • Gap in consecutive numbers

    I have a list of registration numbers and wish to find out if any have not been used, that is are missing. Take the following example where the registration numbers are 123, 124, 125, 127 and 129. I need a formula that can identify 126 and 128 as the