Email Integration Scenario - Issue with email body content

Hi All,
We have an Email to File Scenario. PI is connected to Outlook server using Sender Mail Channel using POP3. We are able to fetch and display emails correctly for most of the received emails.
However we notice that for Email sent from few Mail server like Yahoo mail, Gmail, Hotmail, we are not getting the Email content correctly.
Issue is happening with Emails sent in HTML/Rich text format (containing Formatting and without any attachments). In the receiver system we see the email is converted to Plain text format. If the same email is sent with some attachment / Embedded Image, we get all the Formatting correctly in Receiver System.
A closer look at Pimon we found the following:
1. When Email is sent with Formatting (without any attachment/ image) in Pimon we see that it creates 2 Payloads (screenshot attached)
2. The First Payload - MainDocument contains the Email content in XML format, but is missing the Email formatting data in it.
3. The other Payload - ([email protected]) contains the actual Formatted Email Content.
Not sure why the formatting data is missing from MainDocument. Instead its coming in other payload. Due to this we are not able to display correct data at receiver end as we parse the MainDocument as our Input Payload Stream
Note: We cannot use payload swap bean, as it will swap the data for all the incoming emails which we don't want.
Anyone faced similar issue? Steps to get proper formatting data in MainDocument..
Suggestions / Inputs will be highly appreciated.
Thanks,
Azhar

Azhar,
We cann't influence the behavior of Gmail, Hotmail. But have to get HTML as main payload, so we have to swap payload (not always, in some cases based on a condition). Please try below Java mapping. In Operational Mapping set "Read Attachments".
package javaapplication1;
import java.io.*;
import com.sap.aii.mapping.api.*;
import java.util.Collection;
public class NewClass6 extends AbstractTransformation {
    @Override
    public void transform(TransformationInput transformationInput, TransformationOutput transformationOutput) throws StreamTransformationException {
        try {
            InputStream inputstream = transformationInput.getInputPayload().getInputStream();
            OutputStream outputstream = transformationOutput.getOutputPayload().getOutputStream();
            byte[] b = new byte[inputstream.available()];
            inputstream.read(b);
            //Loop over attachments and if attachment name starts with 'payload-' swap it with main payload. Edit below logic as needed.
            Collection<String> listAtt = transformationInput.getInputAttachments().getAllContentIds(true);
            for (String att : listAtt) {
                if (att.startsWith("payload-")) {
                    b = transformationInput.getInputAttachments().getAttachment(att).getContent();
            outputstream.write(b);
        } catch (Exception exception) {
            getTrace().addDebugMessage(exception.getMessage());
            throw new StreamTransformationException(exception.toString());

Similar Messages

  • Sign in issue with email

    i am still getting a issue wtih my email sign in i have click twice on the sign in box . i am using the new bt home page both on w8 and the desktop and it does it on both email accounts my primary acc/ and sub acc. my sub acc email address i use to sign into my microsoft account. i have run bt desktop help pc heath check and it come back with cache size/clear history/ auto detect settings. so i clicked on the box to clear them and still got a issue with email sign in.

    I have a large number of apps that show me what happens when accessing  web-sites and when accessing BT yahoo I have had up to ---14--yes that's right--14 adverts blocked. Also in every case Yahoo is tracking you. These cause problems with the site. Since blocking them things have got better. I say this because I post on a popular US website which has multiple adverts including pop ups and video ads which badly effected the stability of that web-site-many complaints. Now its toned them down complaints have stopped. Try telling Yahoo to stop its ads and see where it gets you.    

  • I am having some issues with email. My iphone shows 4 emails as unread yet when I look thru all my emails, both on my iPhone5 and my outlook there are no unread emails. How do I clear this up on my phone?

    I am having some issues with email. My iphone shows 4 emails as unread yet when I look thru all my emails, both on my iPhone5 and my outlook there are no unread emails. How do I clear this up on my phone?

    Email does not and has never synced between the iPhone and the computer. It sounds like you may have had your PC set up to use POP3 for e-mail, which will download e-mail from the server and delete it, causing it to vanish from your phone if the phone was set up for IMAP. IMAP provides full synchronization between the server and clients. What you delete on one will vanish from the others. This is the preferred method of managing e-mail as it prevents e-mail from being downloaded, for example, on a PC and making it inaccessible on your phone.

  • We have been having some issues with Email notifications not going out and getting hung up in SOST.  Can anyone please tell me whether we can use Solution Manager to monitor outbound emails?

    We have been having some issues with Email Notifications not going out and getting hung up in SOST. Can anyone please tell me whether we can use SAP Solution Manager to monitor outbound email?

    What version of Solman are you using ?  Check in t-code Rz20 >ccms monitor template of satelliate system , there would be option to monitor your outbound mails .You can sutomise your monitorig metrics in solman 7.1  else in 7.01 you use auto reaction methods to monitor .
    Regards
    Jay

  • Certain emails showing with no body content

    Hello,
    I have an odd issue with (IMAP) mail on both the iPhone and iPad. Since moving to a new web host (Fasthosts), email coming in from certain places - currently Flickr, Amazon and Groupon - have no body content; in the list of messages, the sender and subject are displayed, followed by 'This message has no content'. The messages appear properly using the host's web-based mail client (OWA 2007) and Mac mail.
    I've been in a lengthy (and mostly frustrating) support call with Fasthosts, who are adamant it's not them, despite the fact the issue only started when I set up the account with them. They say it must be the iPhone at fault. All I can find on the web is reference to the other issue where spurious email is shown with now sender or subject, which despite being similar, is not the problem I have.
    If anyone can shed some light on this, I'd be grateful, as it's annoying the **** out of me!
    David

    Does your email template has body tag, if so you need to make sure you are filling the body section in your workflow.
    -sFred

  • Issue with email body size exceeding 4000 characters in Apex

    Hi
    We are getting "ORA-01403: no data found" error in our apex application whenever the the email body size exceeds 4000 characters. When the content of the email body are edited to reduce the size, it is working fine.
    In our application, the item details will be emailed as part of email body and when the number of items are more, the size of the email body exceeds 4000 characters and when we try to send email of these details we are getting "ORA-01403: no data found" error.
    Need your help to know if there is any way in apex to handle this issue and to send email with size exceeding 4000 characters from apex application.
    Please advice.
    Regards,
    Sri

    >
    Update your forum profile with a real handle instead of "user13394362".
    ALWAYS include the following information with the initial question:
    <li>APEX version
    <li>DB version and edition
    <li>Web server architecture (EPG, OHS or APEX listener)
    <li>Browser(s)/versions(s) used
    <li>Theme
    <li>Templates
    <li>Region type
    I am using APEX_MAIL.SEND procedure from apex application to send the mail. The argument P_BODY_HTML which holds the email body content is of VARCHAR2 datatype and it has a limit of 4000 characters. So I am looking for a way to send the mail through APEX_MAIL.SEND even if the email body size exceeds 4000 characters.As (somewhat telegraphically) pointed out above, <tt>apex_mail.send</tt> is overloaded to accept either <tt>VARCHAR2</tt> or <tt>CLOB</tt> <tt>p_body_html</tt> parameters. Use a <tt>CLOB</tt> <tt>p_body_html</tt> parameter.
    Please consult the documentation before posting questions here.

  • Multiple OS issues with Email set up; "People" ; Synching phone not working as advertised

    Nokia Lumia 822
    Purchased yesterday (2/10/13)
    So far I have spent 14 hours attempting to resolve what feel like endless errors and bugs. If I can;t get these resolved in the next 48 hours the phone goes back. I am so disappointed  I waited especially for this phone - heard great stuff. My experience is it sucks. Worst phone ever.
    1) POP3 email accounts are non functional. I have attempted to set up and delete and re-set up now multiple times. Each time presents a fresh new nightmare.
    Issue 1 - Email account  receives email but will not send. Error message goes something like  <" Problem sending message. Message failed to send. Problem with Files or Data on your device." >
    Issue 2 - Tapping email + accounts sends me back to start screen cannot even set up account
    Issue 3 - I  get to add email account I enter my information but no account is created
    Issue 4 - I set up an account and I get an error message stating my information cannot be found.
    Issue 5 - trying to open email from start screen just resets to start screen  over and over and over NEVER opens the account.
    These are deal breaker issues. I have multiple email accounts on different platforms. If I cannot access my various emails AND send from those accounts this is NOT the phone for me.
    2) PEOPLE does not function. ALSO multiple various issues and never the same one twice.
    Issue 1 - I tap on a contact and get sent to the start screen over and over and over  and over again.
    Issue 2 I tap on a contact and the phone freezes and wont respond unless I pull the battery
    Issue 3 I open a contact and make an edit, save the contact but the change is never reflected in the list
    Issue 4 I try and search for a contact and the search freezes - only option is to return to start screen
    3) Scrolling thru any APP randomly takes me back to start screen.
    I dread attempting to synch Outlook calendar and contacts on my PC to hotmail - especially if I can't even set up email. And it seems like even holding it will jettison me out of anything I'm doing and back to start screen.
    If I can't get these issues resolved.  look like I'll be going  back to my 3 year old Blackberry Bold which performed flawlessly. It may not be the most impressive phone out there but it did what I needed it to do with out any issues.

    Interesting Twitter conversation VZWSupport on Twitter.  It was suggested to try a HARD reset - and if that doesn't work take the phone back.
    Since I don;t have anything set up yet  that's my solution.
    I see a BlackBerry Z10 in my future

  • Issue with email sync

    I have configured 5 gmail accounts, 3 yahoo accounts and 1 live account. Everything was working fine until a day came that I was forced to change the password of all my G accounts. I changed it in my phone also but since then I cant sync just 1 gmail account. Not that I cant sync but its not loading the mails in the viewer. Email app works fine with other accounts. I tried deleting all the account and re-created all the accounts still its not working. I tried deleting it from email.nokia.com and STILL its not working. a 3 months ago I had the same issue with another G account. What I did then was I stopped using the Email app. I sstarted using it only a 3 weeks ago as I really needed a client on my phone. Wish someone could help me out from this really awkward situation

    you do realize there isnt an ios 7.7.1 right?

  • Issue with emails being deleted from my Yahoo mail folders

    Hi, I am experiencing an issue where emails are being deleted from my Yahoo mail folders when the weekly Sunday night purge of the Yahoo Trash folder is carried out by Yahoo. These are mails that have been moved from my inbox via the iphone mail app.
    I have a similar problem with Outlook 2010 on my laptop but not with Outlook 2003 on my desktop.
    When I move the emails from my inbox I have noticed that using Outlook 2003, the moved email is left in my inbox in "strikethrough" mode whereas on Outlook 2010 it is deleted from my inbox. I subsequently purge the marked email from my inbox in 2003.
    I am able to see and access the emails in the folder I have moved them to until after midnight on Sunday when they dissappear. The emails moved via 2003 are ok and not lost.
    Funnily enough when using an earlier version of the iphone mail app I remember that I could see emails in "strikethrough" mode in Outlook 2003 when they had been moved via the iPhone mail app but you don't see that now.
    It feels like some sort of pointer issue to me ...... any ideas on how to stop this happening?.

    This is now fixed !!!! I am not sure how though :-((
    I reported the problem to Yahoo and in the process of them investigating the issue my sub-folders suddenly became invisible via my IMAP connection and then also were invisible on-line following a log out and a log in. After my initial panic, I contacted Yahoo who were able to restore my complete account. Since then, the problem has gone away.
    I have been testing this for two weeks and all is working perfectly from whatever device I use to connect to my mail (IMAP or via my browser).
    Phew!

  • Exchange 2010 issues with emails attachments on phones

    ok i have an issue with exchange 2010 server 2008 r2
    i currently have 7 phones running activesync
    only one phone has a problem sending attachments to other phones in the company....
    however the phone can send regular email to any of the other phones without any problems.
    I have exhausted my abilities to figure out what is going on and at this point Im lost which has never happened before
    I mirrored the setting on another phone to the one with the problems and still no difference
    I also changed to the readahead size notifications to 20mb
    and unrestricted retrieval size
    both phones are galaxy S3's
    I am leaning towards a configuration error
    anyone have any ideas i can try?

    Hi 
    I think most probably it could be a problem with the Android device and not to analyze on readahead
    size notifications since this occurs only on a particular device 
    As a part of testing please follow the below things
    1) Try to configure active sync profile for different user on that device and try sending email with attachments and see the results.
    2) Try to configure profile on a different mobile for that affected user account and see the results.
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you.
    Regards, 
    Sathish
    Sathish

  • Issue with Email

    Hello,
    I have set up an email account on the MAC program Mail. The email address originates from Go Daddy. The email program is up and running, able to send and receive emails. When running the account through a spam checker, the following message is received:
    [SPF] benevolenceinn.com does not allow your server 173.201.192.105 to use [email protected]
    Sender Policy Framework (SPF) is an email validation system designed to prevent email spam by detecting email spoofing, a common vulnerability, by verifying sender IP addresses.
    What we retained as your current SPF record is:
    "v=spf1 a mx include:secureserver.net ~all"
    More information about this error:
    benevolenceinn.com: Junk encountered in mechanism 'ptr:68.178.252.102'
    In addition, [Sender ID] benevolenceinn.com does not allow your server 173.201.192.231 to use [email protected], is also stated. This is the same message but for "Sender ID" as well.
    I spoke to Go Daddy and they stated that it could be an issue with MAC mail.  When I spoke to Apple, they suggested that the issue lies with my home IP address and not Go Daddy or Apple.  The IP address of Go Daddy is listed above but the tec online said that my home ip would be the real issue.  I spoke to Time Warner and they said there is absolutely no issue with my IP.
    Any tips on how to solve this?
    Thank you!
    Shane

    It could be that the server is seeing your source address as being "masked" by routing through GoDaddy. In other words, when you originate your mail from your own IP, it then passes through GoDaddy, and the recipient sees this as a spoofing attempt.
    I would suggest the problem isn't with you or GoDaddy but maybe the way they have their servers set up. I was having trouble not getting responses to a group I was trying to join and when I contacted one of the admins directly they told me that Verizon was blocking their site and marking their setup mails as spam. It was hardly a dubious group, someone at Verizon entered the wrong IP address into a list of "bad guys."

  • Issues with email with AT&T ,

    Is anyone getting error messages using email with their iPhones and iPads with AT&amp;T
    The message says that you cannot get mail
    These is a problem with your username and/ or password. Just began a week ago last Thursday..
    I called AT&amp;T last weekend and they told me that there was a problem with their servers (I live in ct)
    And they would have it fixed in 24-48 hours. And it was not an issue with my 2 iPhone 4 s and I pad. People at work were also having problems..
    Called again a week later . They had No record of my call from the week before and know idea about a server issue.

    OK...so this post is strictly about wanting to send your contacts to the SIM. That capability is one at a time only. And there's a reason for that.
    The BB Address Book is robust, allowing you to have one name with multiple phone numbers and addresses. The SIM phonebook, on the other hand, is much less capable...if, for instance, you have one contact with three phone numbers in your BB Address Book, the SIM phonebook would require three separate entries to contain the same data (with the obvious duplication of the name on three separate records).
    So, I must ask...why on earth do you want to send your contacts to your SIM? There are much better methods for moving your contacts from the BB to somewhere else...
    Let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Issue with Email generation using MAPI32.OCX and Outlook 2010

    Our application use MAP32 OCX to generate an email with an attachment (PDF File), but no email address. The user will select the address from their contacts.
    Right now we have an issue with some Outlook 2010 clients that after about 8 emails , Outlook has an issue and hangs.
    Now if we do a mailto://[email protected] before we create the 8th email, Outlook 2010 doesn't hang.  Is there any setting we can set in Outlook 2010 to prevent the "address checking" when the email is generated or do I have to fill
    the email address with a "bogus" address that the user must then overwrite to prevent this from happening?
    Thanks,
    Chad Newman

    Hello Chad,
    Why do you need to use MAPI instead of OOM?
    I'd suggest automating Outlook instead. See
    How to automate Outlook from another program and
    How to automate Outlook and Word by using Visual C# .NET to create a pre-populated e-mail message that can be edited for more information.
    Also you may find the
    C# app automates Outlook (CSAutomateOutlook) sample project helpful.

  • Issue with emails unread on Blackberry but read in Outlook

    Hi guys,
    I'm having issues with this Blackberry and the email.
    I've setup the Blackberry (Bold 9700) via BIS to link their Exchange email (Exchange 2003). Once the emails are delivered to the Blackberry, on the Outlook 2003, it shows as it has been read.
    I've tried turning the wireless reconcilation on and off, turning the cache mode for outlook on and off, but it has fixed the problem. I've noticed alot of people are having the same problem, but no real solution has been provided. Please help. Thanks.

    Hi and Welcome to the Forums!
    Depending on if your conditions match, this KB might apply to your situation.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Issues with emails being permanently deleted on a random basis

    Good Morning,
    I have a user reporting that corporate wide emails (emails that go out to all users) are being randomly deleted from a shared mailbox.  The emails are being shift deleted and bypassing the Deleted Items folder.  This is a shared mailbox accessed by
    about 7 people.  I spoke to the manager and she "assured" me that no one has been deleting them. There are no Inbox rules and I have used MFCMAPI to verify that there are no hidden or stale rules. My best instincts tell me someone is deleting
    the emails, but without some sort of audit trail I cannot prove it.  Aside from that does anyone know what could cause this kind of behaviour
    I did enable Audting on the mailbox through the Exchange Managment Shell and verfied by using Get-Mailbox (Mailbox) | FL Name, *Audit* -- I am not getting any results.  I am using the following command:  Search-MailboxAuditLog (mailbox) -LogonTypes
    Delegates,Admin -ShowDetails -StartDate "xx/xx/xxxx" | ? {$_.Operation -eq "HardDelete"} | Select Operation, OperationResult,ClientInfoString, MailboxOwnerUPN, LogonUserDisplayName  Looking at a screenshot from an article I found,
    it should give me some information, but it does not.  Also, exporting an audit log from the ECP just returns a blank XML file.  Am I doing something incorrectly, or does the auditing not capture this information.  My best instincts tell me someone
    is deleting the emails, but without some sort of audit trail I cannot prove it.  I have also considered adding the corporate email addresses into the Reject emails from this sender in the EMC.
    Our environment is Exchange Server 2010 with all latest rollups and service packs.  Clients are using Outlook 2010 and Outlook Web Access 2010.
    Thank You
    Brian Dougherty

    Hi,
    First, please check if the AutoArchive feature if enabled for this shared mailbox.
    Besides, please check if these deleted emails go to the Recover Deleted Items folder.
    Did you enable mailbox audit logging before the issue appeared?
    I tested in my lab, created a shared mailbox and assigned full access to userA, userA login to this shared mailbox and delete an item to Deleted Items folder. After that, I searched the audit log for shared mailbox, it didn't return results. However, after
    a while, I checked again and I got the output. Could you please wait for some time and check it again?
    If there is still no any output, as a workaround, you can try to grant Reviewer permission of Inbox folder to those users who want to access shared mailbox instead of full access permission. Then you can check whether corporate wide emails are randomly deleted
    from this shared mailbox.
    You can use the following command to grant Read-Only Access to a mailbox.
    Add-MailboxFolderPermission -Identity [email protected]:\Inbox -User test1 -AccessRights Reviewer
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

Maybe you are looking for