Delivery status notifications Code Samples

Hi,
I'm looking for some code samples on how to use javamail Delivery status notifications.
Please, are there any code samples?
ngocthan

I accept that the recipient must actually confirm receipt but until very recently I could request a delivery status report and would get confirmation that an email had been delivered to the intended server or not as the case may be. Suddenly these confirmations have stopped and I think it unlikely that all the receiving servers have simultaneously been programmed not to send delivery status confirmation. Confirmation of delivery to the receiving server is important, sometimes vital, in my work to demonstrate that non-receipt is a problem at the receiving end and that a document or email was actually sent.

Similar Messages

  • Delivery Status Notification not updating properly??????

    Hi All,
    Am working on in Java Mail API. My application mainly used for sending automated e-mails to Outlook and I have to update the status of that e-mail whether that e-mail has been sent or not, by using DSN(Delivery Status Notification). Here we are using SMTP exchange server and POP3.
    Below lines explain you how we updating the status of that e-mail status:
    When receipient got automated e-mails from our application, one Delivery Receipt will goes to our Outlook mailbox(which gets only the delivery,read receipt status e-mail from that receipients). After they read that e-mail one Read Receipt will goes to that same mail box. Here we have one Java program which reads that mailbox using POP3. While reading that mailbox we are updating that status of the e-mail using some logics.
    Perfectly I can able to update these DSN status in report in my developement environment(here we are using our own configured exchage server). Am using RFC822 to do this.
    following sample code snippet:
    StringBuffer dsn = new StringBuffer();
    dsn.append("SUCCESS,FAILURE,DELAY ORCPT=rfc822;");
    dsn.append(SrvObj.getFromEmailId().trim());
    props.put("mail.smtp.dsn.notify", dsn);
    session = Session.getDefaultInstance(props, null);But while we are using that same in our live application its not worked,because this entire process goes to another exchange server.Sometimes we are getting delivery and read receipt status for some e-mail ids. But some e-mail ids we are not able to get that status. And we have enabled the delivery and read receipt options in all the outlook e-mail ids. Exchange server is also conf

    Nothing guarantees that you'll get a DSN or MSN.
    The server that ultimately delivers the email might not support DSNs or might be configured not to send them.
    The mail reader used to read the message might not support MSNs or the user might choose not to allow them to be sent.
    Unless you have control over all the mail servers and mail readers being used, you can't depend on getting DSNs or MSNs.

  • I am receiving emails fine but people sending emails are getting "This is an automatically generated Delivery Status Notification."

    So people sending me emails are getting this notification even though I am getting all of their emails.
    This is an automatically generated Delivery Status Notification.
    Delivery to the following recipients was aborted after 1 second(s):
    * [email protected]
    Reporting-MTA: dns; resqmta-po-10v.sys.comcast.net [96.114.154.169]
    Received-From-MTA: dns; resomta-po-03v.sys.comcast.net [96.114.154.227]
    Arrival-Date: Fri, 13 Mar 2015 00:11:39 +0000
    Final-recipient: rfc822; [email protected]
    Action: failed
    Status: 5.1.1
    Diagnostic-Code: smtp; 550 5.1.1 Recipient address rejected: {Gateway}
    Last-attempt-Date: Fri, 13 Mar 2015 00:11:40 +0000
    Received: from [10.0.0.4] ([174.63.66.5])
    by resomta-po-03v.sys.comcast.net with comcast
    id 2oBe1q00S06oTie01oBfmR; Fri, 13 Mar 2015 00:11:39 +0000
    X-Authority-Analysis: v=2.1 cv=brXCBSqi c=1 sm=1 tr=0
    a=d75dIf30LeQD1RLuRZUoGw==:117 a=d75dIf30LeQD1RLuRZUoGw==:17 a=C_IRinGWAAAA:8
    a=GGcpBh7Jt_oA:10 a=73ab78M7B2EA:10 a=r77TgQKjGQsHNAKrUKIA:9
    a=9iDbn-4jx3cA:10 a=cKsnjEOsciEA:10 a=gZbpxnkM3yUA:10
    a=6BrDaJ5WXvREvQ-J4T4A:9 a=QEXdDO2ut3YA:10 a=jHBHo6-IVdtYVL4fa8AA:9
    a=_W_S_7VecoQA:10 a=qOu-Zh59HcEA:10 a=AfkkXffo6PgA:10 a=2rOyub8MfPoA:10
    a=MPPUs8NNPK4A:10
    Message-ID: <[email protected]>
    Date: Thu, 12 Mar 2015 20:11:31 -0400
    From: Michael Hamilton <[email protected]>
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
    MIME-Version: 1.0
    To: [email protected]
    Subject: test
    Content-Type: multipart/alternative;
    boundary="------------050909070108050106030501"

    I have sent you a test message.
    added: I got the same Notification from Comcast. If you go to the comcast website, is there a place to request an 'out of office' or 'vacation response'? If so, is that turned on?
    Did you receive my email?

  • Edit subject for "Delivery Status Notification Failure"-messages

    We have an Ironport c160 and I wonder if it is possible to edit the subject for the the automatic reply email instead of Delivery Status Notification Failure? We have a content management system (CMS) and I would like to have the ticket number in the subject, just the way it does when the reply is from our internal Exchange server. For example Undeliverble message case #1234-1234567 instead of Delivery Status Notification Failure.
    Regards,
    Peter Bengtslin

    Sounds like someone is spoofing spam from your e-mail address. They do not need to have access to your account. Spammers nearly always put a fake address on the To line, and sometimes they pick an address from their databases as that "fake." So they're putting your address on a fake To line in their e-mails and you're getting the bounces.
    It could be possible that they have hacked your e-mail account, and to protect against that possibility you should change the password on that account. However, this is probably not what has happened.
    Note that this has absolutely nothing to do with your Mac, and there are no viruses for the Mac and only a handful of very rare trojans. See my [Mac Virus guide|http://www.reedcorner.net/thomas/guides/macvirus> for more details.

  • Howto Apple Mail and Delivery Status Notifications (DSN) (RFC1891)

    *how can i persuade mail.app to send a mail with DSN?*
    *DSN, not MDN* - I am not looking for this:
    # defaults write com.apple.mail UserHeaders '{"Disposition-Notification-To" = "[email protected]"}'
    I'd need to change i.e. the "rcpt to" to behave like this:
    *RCPT TO:<[email protected]> NOTIFY=SUCCESS*
    DSN - RFC1891: http://www.ietf.org/rfc/rfc1891.txt
    MDN - RFC2298: http://www.ietf.org/rfc/rfc2298.txt
    Thank you for your inputs.

    Thank you Austin for your input.
    Yes, redirecting everyhting from apple mail through some custom postfix would possibly be one solution.
    One could use some perl script hackish stuff to aquire DSN functionality.
    But that's not really what i'm looking for.
    I'm looking for the less hackish solution.
    os x server's postfix supports DSN by default.
    I wish to have mail.app support DSN as well. Be it by some cast like "defaults write com.apple.mail '?dsn notify=success,delay,failure,never?'".
    Or even configurable by gui.
    Best would be to be able to request dsn when composing a new mail.
    As for:
    - I don't want any notifications for this receipient --> never.
    - I want to know if the mail server on the receipient side accepted the mail --> success.
    - I want to get lots of messages --> success,delay,failure.

  • Getting mail delivery status notification (failure) for emails I did not send.

    I've started getting these notices for emails I didn't send. They contain attachments consisting of snippets of prose, like the attachments used to seed malware in Windows computers. Does apple have any protection/removal software for this sort of problem?

    cadillacjoe69 wrote:
    That might be tough to do. Is there a rule I can use to help. The mail messages are so varied.
    I'd look at the headers (View -> Message -> Long Headers) to see if there's anything in common, then try to create a rule based on that.
    By the way, welcome to Apple's discussion groups.

  • Sender receiving endless mail delivery system notifications

    For the past 25 hours (or so) a friend has been receiving REPEATED messages from Mail Delivery System saying:
    "This is an automatically generated Delivery Status Notification. Delivery to the following recipeints is still under way after 25.6 hour(s.): [email protected] Will keep trying and contact you if the message can't be delivered permanently."
    How can I/she stop these? She eventually resent the message and all is well, but that original notification regarding the original message is still out there and driving her crazy. DOZENS of these things are being sent by Mail.

    How can I/she stop these?
    You can't. Eventually they'll time out and stop. Meanwhile you can create a Mail rule to delete the notices automatically.

  • How can I make the return receipt and deliver status notification work ?y

    I have checked marked "return receipt" and "delivery status notification" when doing emails.
    Doesn't seem to be working.
    Please help

    are they not working, or has the recipient simply declined to send them? That is the real question. Sending mail to yourself rarely triggers the return receipt

  • Oracle shutdown notification (OracleNotification) code sample

    Hi,
    I'm looking for a code sample demonstrating the use of OracleNotification for catching Oracle shutdown events.
    Thanks
    Philippe

    Hi,
    I'm looking for a code sample demonstrating the use of OracleNotification for catching Oracle shutdown events.
    Thanks
    Philippe

  • Groupwise Delivery Status Message

    Hi
    I hope someone can help me ... The Boss has asked me to setup and delivery notification message on all incoming emails
    I have enabled DSN in the Gwia Properties
    But the message only shows
    The message that you sent was delivered to the following:
    Information about your message:
    With no information please can someone help me
    So the correct info is displayed
    Regards
    Cliff

    This has NOTHING to do with DSN. The Outbound delivery status is
    completely and totally a different feature. DSN is only relevant
    GW originator ===> somewhereelse supporting DSN
    not
    someone else ===> gw
    Since you first reported this issue a year ago, I assume you opened an SR?
    On 8/23/2011 10:56 AM, Clericos wrote:
    >
    > Michael Bell;2130893 Wrote:
    >> On 8/23/2011 12:06 AM, Clericos wrote:
    >>>
    >>> I have absolutely same problem ('Outbound Status Level: Delivered -
    >>> works incorrect' ('Outbound Status Level: Delivered - works
    >> incorrect' (http://forums.novell.com/showthread.php?p=1948852)))
    >>> and did not found any solution yet
    >>>
    >>> What is your OS? Netware?
    >>>
    >>>
    >> DSN is completely dependent on the receiving mail server supporting it
    >> and generating messages/reports. Are you sure that part is working? (eg
    >> the part completely out of your control?)
    >
    > Yes I am sure. Because "the receiving mail server" - is my server :)
    > And it is my server generate "wrong" reports and send them to outgoing.
    >
    >
    > I will try to describe the problem again:
    > 1. I have sent messages from many different mail servers to my mail
    > server and always my server sent "empty" DSN bounce message to sender's
    > server.
    > It ALWAYS looks *'like this'
    > (http://img27.imageshack.us/i/59676923.gif/)*
    >
    > 2. I catch one outgoing bounce message in "Delayed Message Queue"
    > (folder: gwia\DEFER\ ):
    >
    > Code:
    > --------------------
    > Message-Id:<sb7c37e1>
    > X-Mailer: Novell GroupWise Internet Agent 8.0.1
    > Date: Wed, 17 Feb 2010 18:39:29 +0300
    > From: [email protected]
    > To: [email protected]
    > Subject: Message Status - Delivered
    > Mime-Version: 1.0
    > Content-Type: multipart/mixed; boundary="=__PartF3D9C9A1.0__="
    >
    > This is a MIME message. If you are reading this text, you may want to
    > consider changing to a mail reader or gateway that understands how to
    > properly handle MIME multipart messages.
    >
    > --=__PartF3D9C9A1.0__=
    > Content-Type: text/plain; charset=UTF-8
    > Content-Transfer-Encoding: quoted-printable
    > Content-Disposition: inline
    >
    >
    > The message that you sent was delivered to the following:
    >
    >
    >
    >
    >
    > Information about your message:
    >
    > --=__PartF3D9C9A1.0__=--
    > .
    > QUIT
    > --------------------
    >
    >
    > and the message did not contain any "dynamic" data.
    >
    > I know some people who have same problem, but it is not important for
    > them because they do not want to enable DSN. It looks like many server
    > have this problem, but only few people know about this problem because
    > "Outbound Status Level" is "Undelivered" by default (if I am not
    > mistaken).
    >
    > PS perhaps this problem is only on Netware servers.
    >
    >

  • What are the attributes available on Task Status Notification?

    Hi,
    I need to send the information below when a task is completed or rejected. So I would like to know if they are available. I think so because I've got them from Task Status Notification (OIM standard email definition). If not, what are the attributes available on Task Notification?
    <Tasks.Task Name> is <Task Details.Status>.
    <Task Details.Status>
    <Resource.Resource Name>
    Target User: <Users.First Name> <Users.Last Name> [<Users.User ID>]
    Assigned to: <Task Information.Assignee First Name> <Task Information.Assignee Last Name> [<Task Information.Assignee User ID>]
    Response Code : <Responses.Response>
    Response Description : <Responses.Description>
    Error Details : <Task Details.Reason>
    Thanks,
    Renato.
    Hi,
    I have implemented some java code to workaround the problem below... But I don't believe this does'n work in OIM :-):-):-):-) Please, tell me if you are using task status notification in OIM and if your email defintion has the variables below.
    Thanks,
    Hi,
    One of OIM email templates is Task Status Email Notification. I am trying to notify the user (Notification tab) using this template but it didn't work. Even when I set the Object Name and Process Name values for an email definition, it does not work.
    How have you implemented task status notification in your workflows? I think if this template exists in OIM, by default, so it is posible to have the information below during notifications.
    I think I'll have to call Oracle's Support.
    =======================================================
    Subject: Process task <Tasks.Task Name> is <Task Details.Status>.
    Body:
    The Process task <Tasks.Task Name> is <Task Details.Status>.
    The details of this process task are as follows:
    Process Task Name: <Tasks.Task Name>
    Process Task Status: <Task Details.Status>
    Resource Name: <Resource.Resource Name>
    Target User: <Users.First Name> <Users.Last Name> [<Users.User ID>]
    Assigned to: <Task Information.Assignee First Name> <Task Information.Assignee Last Name> [<Task Information.Assignee User ID>]
    Response Code : <Responses.Response>
    Response Description : <Responses.Description>
    Error Details : <Task Details.Reason>
    =======================================================
    As I've said, the e-mail was sent but in blank:
    The Process task is .
    The details of this process task are as follows:
    Process Task Name:
    Process Task Status:
    Resource Name:
    Target User: []
    Assigned to: []
    Response Code :
    Response Description :
    Error Details :
    Is it possible to have those fields available on notifications?
    Thanks,
    Edited by: Renato.Guimaraes on 23/10/2009 08:05
    Edited by: Renato.Guimaraes on 24/10/2009 15:57
    Edited by: Renato.Guimaraes on 26/10/2009 13:31
    I didn't get any answer until now.. Below it is what I've done.
    a) Create an entity adapter that is assigned to the post-update of the Specific Task Info data object.
    b) Select the task information searching by SCH_KEY, for example (I have to do more tests)
    SELECT
    sch.sch_key, sch.sch_status, sch.sch_note, mil.mil_key, rsc.rsc_data, rsc.rsc_desc
    FROM
    osi, sch, mil, rsc
    WHERE
    mil.mil_key = osi.mil_key and
    osi.sch_key = sch.sch_key and
    sch.sch_key = ? and
    rsc.rsc_key = osi.rsc_key
    c) Load the e-mail definition template and replaces the fields
    d) Sends the e-mail
    With that I solved another problem: I have to send an e-mail always the assignee adds a note to the task.
    Edited by: Renato.Guimaraes on 28/10/2009 08:51. How I did that
    Edited by: Renato.Guimaraes on 12/11/2009 12:19
    Edited by: Renato.Guimaraes on 13/11/2009 07:22 Changed the Thread Subject

    Hi Experts,
    I want to extend my doubt a little more.
    I have a requirment  as below.
    User will enter a range of Date say 01.06.2011 to 25.06.2011.
    I need to show him data in two columns one cloumn for the entered day range and second column for prevoius month date rangei.e(01.05.2011 to 25.05.2011)
    can i achive this without  using Customer Exit.
    Regards
    Laxman

  • Mail Delivery System Notifications won't go away

    Hi all
    Tiger 10.4.11, MacBook Pro, Apple Mail.
    I have several Mail Delivery Status Failure notifications that I cannot get rid of. I delete them, they go in the trash, but I go into any other mail box and when I come back to the inbox, there they are again. Right now I have 5 separate messages, all exactly the same. The problem is that I e-mailed someone something that was too big for their server and got this as a notification. But I can't get rid!
    I've junked my envelope index, and re-imported and rebuilt the mailbox. I've deleted off my server (they don't re-appear there) and can't think what else to try.
    Any help please?
    Thanks

    I have now sorted this out - any kind of deleting didn't work, but using the "cut" command from the mail menu bar did.
    Thank goodness, it's been driving me mad...

  • How to send delivery status by idoc format from EWM system?

    Hi gurus,
    You know we can send GR(posted) from EWM to R3 system, while in our scenario, we also need to send inbound delivery status( including posting, posted) from EWM to Non-SAP system via PI.
    Can we implement that by idoc? Do we have to use PPF? How to develop in PPF to send message to PI?
    Thanks in advance.

    Hi kishore,
    Thanks for your reply.
    I tried to find how SPPFCADM send idoc in ther relevant method, but you know it's just some object oriented code which is not easy to understand and I couldn't find where send idoc and where can be enhanced.
    I found that /SCWM/ERP_MAPOUT is the implementation name for the method of inbound delivery to ERP system, also there is an action "XI Message:lieferinfo:inbound delivery", can it be used to send idoc to PI/XI system?
    Thanks.

  • Keep Record of Email read ,write and delivery status failed

    Hi,
    i have thousand email id 's in my table.
    I am sending promotional mail to users.
    my pl sql email function is working fine.
    i want to keep track of the email send to users like
    some email will be read by user, some email's delivery status will be failed,some will reply to email.
    how can i keep track in my database. can you send me any tutorial or link where i can learn about it how to do that in application.

    Hi InoL ,
    i never used java in oracle apex. how can i use java code into my application? where i have to write this code.
    What step i have to follow to write the code.
    Thanks & Regards
    Vedant

  • JAVAMAIL delivery status

    Hi friends,
    i am getting start to develop the mail client.
    but i got stuck early.
    i know how to get delivery notification...thats cleared
    but how can i get back delivery status of the mail(just delivered | failed | pending...)
    else i want to know, is the given email address is exists or not?
    any suggestion appretiable.....
    thanks.

    this is not very clear...
    do u know where to get the demo....for delivery status ?
    } else if (p.isMimeType("multipart/report")) {
                pr("This is a Multipart Report");
                pr("---------------------------");
                MultipartReport mr = (MultipartReport)p.getContent();
                level++;
                pr("Report Text");
                try {
                    String t = mr.getText();
                    if (t == null)
                        pr("NULL");
                    else if (showStructure)
                        pr("Size: " + t.length());
                    else
                        pr(t);
                } catch (MessagingException ex) {
                    pr(ex.toString());
                pr("Delivery Status");
                DeliveryStatus ds = mr.getDeliveryStatus();
                if (ds == null)
                    pr("NULL");
                else
                    pr(ds.toString());
                MimeMessage rm = mr.getReturnedMessage();
                if (rm != null) {
                    if (rm instanceof MessageHeaders) {
                        pr("Returned Message Headers");
                        pr("---------------------------");
                        level++;
                        dumpEnvelope(rm);
                        level--;
                    } else {
                        pr("Returned Message");
                        pr("---------------------------");
                        level++;
                        dumpPart(rm);
                        level--;
                level--;

Maybe you are looking for

  • Help Locked out of iPod because we don't know password

    My daughter accidentally entered her password incorrectly when she was creating it.  (Not sure how she did it twice, but.....) So, now she doesn't know her password.  She is locked out of the ipod and we've tried everything that Apple says to do. We

  • Combining Line Segments into a single shape

    I drew one half of a shape by drawing multiple line segments using the arc tool. Think of the shape as sort of a C. Once I had the shape the way I wanted it, I copied and reflected it to give me the other half, so now it looks sort of like an O. Howe

  • How do I get my iMac's HD(Broken display) to function through a Macbook Pro?

    I am attempting to use my iMac with an external monitor and I need to allow the second screen to function as my primary screen. I presently have a Displayport to VGA adaptor (leading to a monitor) connected to my iMac. Then, I have a FireWire spannin

  • Syncing Video help

    Can I sync Video to my iphone without resyncing all my music too? I have 11g of music and it takes forever when all i want to do is replace a movie. I tried to uncheck music but then it pops up and says it will delete all music if i leave it unchecke

  • When is or will there be a SQL Server 2012 R1 SP2 release date?

    SQL Server 2012 SP 1 was released over a year ago on 11/8/2012. When is the next service pack going to be available?  I see announcements for SQL Server 2014 CTP's, but what about fixing 2012? SQL Server is now up to CU5. I had a small hand in CU5 af