Checking if mail delivered successfully?

Is there a good way to check the exchange server via the EWS to see if mail was delivered properly to the recipient? Example is we are using a unmonitored email account to send emails out but we want to somehow pragmatically check it to see if there are
bounce backs from emails that do not longer exist or are not delivered successfully. 

If you have Exchange 2010 or later then you can use the MessageTracking operations in EWS
http://msdn.microsoft.com/en-us/library/office/dd877098(v=exchg.150).aspx these aren't documented particular well and you can't use them from the EWS Managed API so you need to use either WSDL ProxyCode or raw SOAP. Otherwise you can do full tracking
via the Exchange Management Shell Get-Messagetrackinglog cmdlet
http://technet.microsoft.com/en-us/library/aa997573(v=exchg.150).aspx
For Proxy code you can use something like
ExchangeServiceBinding esb = new ExchangeServiceBinding();
esb.Credentials = new NetworkCredential("username", "password", "domain");
esb.Url = "https://servername/EWS/Exchange.asmx";
esb.RequestServerVersionValue = new RequestServerVersion();
esb.RequestServerVersionValue.Version = ExchangeVersionType.Exchange2010_SP1;
ReplyToItemType riRepItem = new ReplyToItemType();
FindMessageTrackingReportRequestType fmtRequest = new FindMessageTrackingReportRequestType();
fmtRequest.Scope = "Organization";
fmtRequest.StartDateTime = DateTime.Now.AddDays(-4);
fmtRequest.Sender = new EmailAddressType();
fmtRequest.Sender.EmailAddress = "[email protected]";
fmtRequest.Domain = "msgdevelop.com";
fmtRequest.StartDateTimeSpecified = true;
FindMessageTrackingReportResponseMessageType fmtResponse = esb.FindMessageTrackingReport(fmtRequest);
foreach (FindMessageTrackingSearchResultType fmtSearchResult in fmtResponse.MessageTrackingSearchResults)
Console.WriteLine(fmtSearchResult.MessageTrackingReportId);
GetMessageTrackingReportRequestType gmt = new GetMessageTrackingReportRequestType();
gmt.MessageTrackingReportId = fmtSearchResult.MessageTrackingReportId;
gmt.Scope = "Organization";
gmt.ReportTemplate = MessageTrackingReportTemplateType.Summary;
GetMessageTrackingReportResponseMessageType gmtResponse = esb.GetMessageTrackingReport(gmt);
foreach (RecipientTrackingEventType rte in gmtResponse.MessageTrackingReport.RecipientTrackingEvents)
Console.WriteLine(rte.EventDescription);
Console.WriteLine(rte.DeliveryStatus);
Cheers
Glen

Similar Messages

  • Constantly "checking for mail" and email settings freeze

    Since yesterday I've noticed that my mail app isn't showing any new emails and when I go in to it the "checking for mail" is continously running at the bottom and the internet spinning disc is spinning away.  I've tried switching it off and back on again (using the red slide bar) and new emails appear the first time it's restarted but only that once.
    I've got three POP3, a hotmail and Gmail account set up so thought I could try and disable them one by one to see which if any was causing the problem, but in settings going to the Mail, Contacts, Calendar option just freezes the screen.
    Have tried syncing with iTunes and a full reboot (home and power button together) but still no success. Also tried the suggestion made elsewhere about clearing the cache, closing all the open apps and doing a full reboot - unfortunately still without any joy.
    Internet and everything else seems to be working fine. Any other thoughts?
    iPad2 OS 4.3.5
    Thanks

    I've experienced this a few times. The problem was some kind of deadlock related to my Yahoo mailbox. The workaround for me was to log into my Yahoo account via the web, create a folder, move my Inbox content to that folder, delete and re-add my Yahoo account on the iPhone client, check email (nothing to download), then via the web move all my inbox messages back from the temporary folder to the inbox. On the next reload of my Yahoo email Inbox all messages were displayed and the "Checking for Mail" hang resolved. A client issue perhaps.
    I seem to recall that this Checking for Mail condition would also block the ability to download email from other non-Yahoo email accounts.
    This may or may not be the same as your issue.

  • Outlook 2010: checking icloud-mails doesn't work

    hej!
    i'm working on three different windows 7-pcs using outlook 2010. it's no problem to check mails from several mailaccounts (eg outlook.com). since one or two weeks i have problems with my icloud-mails.
    there is NO problem with calenders or contacts ... outlook 2010 & icloud are collaborating fantastic.
    but: it's not possible to check mails any longer! :-( it's frustrating.
    i tried several methods to configure outlook 2010 (manually; via icloud-software) again but i always got the message that my icloud-mailbox is unavailable.
    note that i have no problems to access my mails using a browser (eg firefox or internet explorer) or one of my idevices.
    and another note: i tried to check mails using mozilla thunderbird, too. but: same error! no possibility to check icloud-mails. :-( it seems that the server cannot be reached from my pcs.
    is there anybody out there who can help me?
    kind regards,
    michael
    p.s. i already tried to create a new user on my pc and to configure a new mail account ... without success :-(.

    I am new to the Apple iCloud setup, but from what I understand, let the iCloud control panel configure everything.
    Close the @me.com account in out look, close outlook, and then go to the iCloud control panel and configure outlook with iCloud.
    That works for me.
    You will get the pasword thing a couple of times, but if you save the password, it should work.

  • Mail problem. Checking for mail never returns

    I'm having strange problem with my new iPad. I'm trying to set up email account with yahoo. It seems to verify my email address correctly however my emails never get populated. When I click on mail I just get the circle status bar in lower left corner and it says checking for mail... But nothing ever shows up in list. My settings appear to be correct and my account was successfully verified but still I'm not seeing any of my emails. I have my push settings set to manual and there's a blue on button. What am I doing wrong?
    Thank you all!!

    Some people have posted in the past that sometimes it just stops working because of a Yahoo problem. My first step in trouble shooting would bet to first check your email by the website. Maybe it is down. Next to reset the iPad and try again. Next would be delete the Yahoo account and then set it up again. When I first set u my Yahoo account I go error messages setting it up and it did not work at first either.

  • [svn] 3737: + priority tests that check we' re delivering messages in the correct order.

    Revision: 3737
    Author: [email protected]
    Date: 2008-10-18 08:40:11 -0700 (Sat, 18 Oct 2008)
    Log Message:
    + priority tests that check we're delivering messages in the correct order. These tests also include cases where when priorities are set to invalid values such as integers that fall out of range, either below 0 or above 9 that we change those values to 0 or 9 respectively.
    Modified Paths:
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/priority/messag ePriorityNullTest.mxml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/priority/priori ty01MessagingTest.mxml
    Added Paths:
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/priority/multip leMessagesMessageHeaderDescendingPriorityTest.mxml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/priority/multip leMessagesProducerHeaderDescendingPriorityTest.mxml

    Welcome to this forum.
    This is a customer to customer forum only, where forum members, who are only BT customers, can help each other with BT Retail products and services.
    Anything you post here does not go to BT. Although the forum is moderated by BT, not all posts are read.
    I have asked a moderator to provide assistance, they will post an invite on this thread.
    They are the only BT employees on this forum, and are a UK based team of people, who take personal ownership of your problem.
    Once you get a reply, make sure that you are logged into the forum, then click on their name, you will see a screen like this. Click on the link as shown below.
    Please do not send them a personal message, as they may not be on duty for a long time, and your message will not be tracked properly.
    For your own security, do not post any personal details, on this forum. That includes any tracking number you are give.
    They will respond either by phone or e-mail within 5-6 working days.
    Please use the tracked e-mail, to reply, not via the forum. Thanks
    This is the form you should see when you click on the link. If you do not see this form, then you have selected the wrong link.
    When you submit the form, you will receive an enquiry number, so please keep a note of it
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Make Mail check for Mail every minute?

    I recently got an iPhone 3G to replace my original iPhone, on my original I had the setting for mail to check for mail every minute, now mine is set on manual, but I can't find the setting to change it. Someone please help me, thank you.

    Push. That is what push is. It means that changes are sent as they happen.
    "Email accounts that use the push method for message retrieval enable you to have email messages delivered directly to you as soon as the message is received by your email provider instead of checking periodically or manually for new messages. On iPhone or iPod touch, push email is supported for the following email account types:
    MobileMe
    Microsoft Exchange
    Yahoo!
    Other email accounts such as POP, IMAP, AOL or Gmail accounts do not support push message retrieval on iPhone or iPod touch but can instead be setup to fetch mail at specified intervals or manually when the Mail application is opened."
    http://support.apple.com/kb/HT2625

  • Mail delivered to wrong recipient

    The backend is GW 8.0.2, clients are GW7.0.4, although I don't think the problem is client related. We recently made two changes:
    1. Changed the preferred SMTP domain name from xyz.com to abc.com (examples, obviously)
    2. Changed the preferred address format from User ID@Internet domain name to First Name.Last Name@Internet domain name
    The second change introduced two issues that had to be manually addressed - removal of spaces and ambiguity due to users with the same first and last name. I addressed both of these by going to GroupWise|Internet Addressing, clicking Override next to Preferred Address Format and manually entering a Preferred EMail ID so Johann von Scott became [email protected] instead of Johann.von [email protected], and adding a middle initial for duplicates so that the second John Smith became [email protected].
    We've got two users who are now receiving mail from Internet senders that is intended for a different user. It's not 100%, either - sometimes the mail goes to the correct mailbox, sometimes not. And it's not that they're swapped - user 1 may get some mail intended for user 2, but user 2 doesn't get any mail intended for user 1. The user's names are not similar (one is "Mary Jones" while the other is "John Smith", for example). They are in the same post office, and both users needed to have their Preferred Mail ID entered manually. They have unique FIDs.
    Everything looks right with the mail - it just gets delivered to the wrong mailbox. The users do not have proxy rights to each other's mailboxes. There are no rules that would forward messages to the user getting them by mistake, and the message never arrives in the correct recipient's mailbox. The inbound GWIA log shows it is addressed to the correct user, and once it's in the system, I don't know how to do trace it any further. Is there a message tracing tool I can use?
    My suggestion - for testing purposes only - is to move one of the users to a different post office, in a different domain, but that shouldn't be necessary.
    I cannot find any references to this happening before. Anyone else experiencing this?

    I know this is a long-dormant thread, but the problem reared its ugly head again, this time in a different domain. The symptoms are exactly the same - mail delivered to the wrong account (in this case, mail intended for a resource is delivered to a user), both have their preferred e-mail address overriden (one has a space in their last name, the other doesn't want to be [email protected] so is manually set to userID@domain name as their preferred format). Various repairs did not make a difference. The workaround before was to move one of the accounts to a different domain (we have one post office per domain), and we are going to do the same this time.

  • I receive a large amount of duplicate emails in my own boxes that i have sent to others. when deleted they return every time i check my mail. along with any messages i have deleted  from others can someone please help me?

    when i send an email to someone i recieve multiple copies of it it my folders [ usally varying between all mail, trash, and important] they all say my name on them. i recieve about 20 - 40 of them at a time , even after i delete them next time i check my mail they are back . along with this any message that has been sent to me in the past that i have deleted also reappears but only  as single messages. im recieving hundreds of all these a day and it has made my email become unmanagable and im extremly frustrated. my computer is new and i never made any change to the preferences before this started happening so i have no idea . has anyone had this problem , have any ideas or know how to fix it? your help would be greatly appreciated . also to add i also recieve them whenever checking mail on my iphone i never had a problem on the phone until i activated the email on my new imac. and the email app uses my gmail acount if that helps?

    no, I didn't ask to burn a picture....this is why I am confused to how the picture got on there.
    I understand what you are saying regarding the multi-session thing (how do I avoid this if my other cds with photos on them have this, and I don't know they do?)
    but what I do know is that cd had photos on it (it definately wasn't full, and maybe that is why I haven't had a problem with others...they have all been full) and no one else uses my Mac, so I know no one else put the picture on that cd. I may have inadvertantly burned the picture, but if I did, I don't know what I did to make it burn the picture onto the cd.....
    The only thing that happened was I opened iphoto so I could save some of the pictures that were already on the disc, but when I went to look for the pictures on the cd, the only thing that was on it, was an iphoto picture....which I didn't ask to be put there.....
    I have previously burned pictures onto CD using my Mac with no problem, and I've pulled pictures off CD that were burned using a PC. So I guess I need to know how to determine if the cds have this multi-session thing going on?
    iMac Intel Core Duo   Mac OS X (10.4.7)  

  • How can i check my mails on the iphone and make sure that the mail wont pop up again on my computer ?

    How can i check my mails on the iphone and make sure that the mail wont pop up again on my computer/ will be deleted on the server ?

    For that kind of connectivity you need to be using an email account configured either as IMAP or Exchange.
    IMAP & Exchange accounts will maintain a sync across all your devices, so if you read / delete a message on your phone, it will disappear from the server as well. This cannot happen in POP email accounts.
    If your using gmail, instructions on how to set up exchange / imap are here http://www.google.com/support/mobile/bin/answer.py?answer=138740&topic=14252
    Alternatively, if its anything other than Google, you will need to contact your email providor or IT department (if your email address resides with an enterprise environment) to get the correct settings.
    Hope this helps!

  • 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.

  • Mail on success or error in message processing

    Hi experts
    I need to configure a scenario
    1. Receive idoc from an SAP system
    2. Convert the Idoc into File and Place it in the NFS File directory.
    3. On success of the message, I need to mail to SAP Owner regarding the success of the message.
    4. On error as well , i need the error details to the SAP Owner.
    I had configued all the basic steps in IR. I had struck with the BPM part.
    Please suggest with the steps in the BPM.
    Thnz

    hi Mohamed,
    For sending the mail on success or error in message processing you need to go to the runtime workbench and configure the scenario for mail alerts.
    You need to create the alert rules for the success scenario and the failure scenario.
    While creating the rules you can specify the message id's to which the mail should be sent.
    Please refer to the below link for more clarification.
    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
    Kindly search SDN also as there are several threads in the forum answering the same question.
    Regards,
    Alpa.

  • Change Language for Spell Checking in Mail

    Hi,
    as far as I could see from other articles here and on other sites, there is no easy way to change the language for spell checking in Mail. It's difficult to imagine that this is true, as in this global world switching from one to another language in different mails is (at least for non-US/UK/etc. users) an immanent need.
    Thanks for letting me know if I am mistaken.

    Tom Gewecke wrote:
    there is no easy way to change the language for spell checking in Mail.
    If what you are asking about is some kind of shortcut to avoid using the Edit menu, you are correct that nothing like that exists for Mail (or other Apple apps). I think if you use something like SpellCatcher you can switch via a single keystroke.
    The fastest method I know of is through AppleScript. I personally use "quick and dirty" routines for shifting from French to English and vice versa, both in Mail and Safari. Your typical toggle-switch bare-bones app looks like this:
    tell application "Mail"
    tell application "System Events"
    tell application process "Mail"
    set frontmost to true
    try
    click menu item "Show Spelling and Grammar" of menu "Spelling and Grammar" of menu item "Spelling and Grammar" of menu "Edit" of menu bar 1
    set fen to window "Spelling and Grammar"
    click pop up button 1 of fen
    set lemenu to menu 1 of pop up button 1 of fen
    if selected of menu item "Français" of lemenu is true then
    click menu item "British English" of lemenu
    else
    click menu item "Français" of lemenu
    end if
    click button 1 of fen
    on error
    beep 2
    end try
    end tell
    end tell
    end tell
    Nothing fancy here! Compile it, keep it handy (in the dock for example), and a single click does the switch for you. You can make endless variations on this, even make it look kind of smart, with dialogs and all that, thus defeating the purpose.
    AppleScript support is kind of sketchy so you have to use UI programming.
    Cheers,
    RTP

  • Constantly "Checking for Mail"

    My new iPhone is constantly "Checking for Mail" while I'm trying to delete or read messages that are already downloaded. It holds me up from deleting or doing anything until the operation is complete. I've got it set to check manually, and also tried 15, 30 and 60 minutes, but still it checks for mail everytime I open Mail. How do I get it to chill out and let me go through my mailbox and check only when I want it to?

    I've experienced this a few times. The problem was some kind of deadlock related to my Yahoo mailbox. The workaround for me was to log into my Yahoo account via the web, create a folder, move my Inbox content to that folder, delete and re-add my Yahoo account on the iPhone client, check email (nothing to download), then via the web move all my inbox messages back from the temporary folder to the inbox. On the next reload of my Yahoo email Inbox all messages were displayed and the "Checking for Mail" hang resolved. A client issue perhaps.
    I seem to recall that this Checking for Mail condition would also block the ability to download email from other non-Yahoo email accounts.
    This may or may not be the same as your issue.

  • How can I turn off Keychain from asking for my password EVERY time I check for mail?

    how can I turn off Keychain from asking for my password EVERY time I check for mail?
    This is really driving me nuts.....
    Thanks

    Choose Apple menu > System Preferences, click Security & Privacy, and then click General. 
    Open the General pane of Security & Privacy preferences
    2.     Select “Require password...NEVER after sleep or screen saver begins.”  You can adjust the amount of delay before a password is required in the pop-up menu.
    From what I am aware, you cannot turn off the keychain.
    I hope this helps.
    This is also a link that might help http://macs.about.com/od/systempreferences/ss/Mac-Security-Using-The-Mac-Securit y-Preference-Pane_2.htm

  • Check E-mail using PL/SQL

    Hi!
    Can I check e-mail address to use PL/SQL?

    It's easy enough to check that a vaild e-mail has been entered by using regular expressions to check the mask. However, I fear that using SMTP to perform online validation is not a viable proposition.
    By its very nature, e-mail is asynchronous: you have to send an e-mail and wait for it to be either bounced or acknowledged. Certainly, if you're intending to do this over IP you may have a long wait. Furthermore, what if the user's e-mail service is temporarily down. Besides, if a user wants to, they could use one of the e-mail services that provide disposable, one-use addresses.
    To actually answer your question :)
    PL/SQL has an e-mail package - UTL_SMTP - that's good for automatically generating and sending e-mail messages from within the database. As you want to do something more sophisticated I think you'll need to investigate an OS based solution or build an application using JavaMail.
    Cheers, APC

Maybe you are looking for