File With Attachment to Mail with Attachment

I'm developing above scenario. I want to retain the name of the attachment. Is it possible to do with UDF ?. Attachment is in csv format and Main file may be txt format.

Use MessageTransformBean module in adapter configuration to achieve this.
Enter "localejbs/AF_Modules/MessageTransformBean" as the module. Select the Type "Local Enterprise Bean" and select a value for Module Key. Use this module key to create the following three lines in Module Configuration:
Transform.ContentDisposition attachment;filename="myfilename.csv"
Transform.ContentDescription myfilename.csv
Transform.ContentType application/xls;name="myfilename.csv"
Regards,
TK

Similar Messages

  • File with an Attachment to Mail with an Attachment

    I'm using File adapter and using additional Files option to attach another attachment. I have to send mail out using Mail receiver adapter and should use same attachment name File adapter picked up. I tried several options using MessageTransformBean, PayloadSwapBean etc with no Luck. mail going out to Goole and exchange server as Untitiled.txt . Im using Mail package as Receivers of the mail are dynamic. How can I sent Mail attachment with name dynamically set ?.
    Thanks for any help.
    Krish.
    Edited by: krishvamsi on Oct 15, 2010 1:44 AM

    There are several MIME headers that play a role in how the mail client retrieves the file name of an attachment. This behavior differs among various mail clients.  Some mail clients use the name parameter in the Content-Type header. While some other use the Content-Disposition or Content-Description value as the file name. To avoid potential interpretation problems, it is recommended to combine the use of these headers. Ideally, your mail header should look something like :
    Content-Type: application/text; name="myfile.txt";
    Content-Description: myfile.txt
    Content-Disposition: attachment; filename="myfile.txt";;
    Check whether the mail header generated by PI mail adapter sets all these MIME attributes.
    Regards,
    TK
    Edited by: Sameej T.K. on Oct 21, 2010 1:05 AM

  • I cannot attach files to my Yahoo mail with Firefox 21. It works fine with IE.

    Up till about 3 weeks ago I had no problems. Now when I try to attach any file to my Yahoo mail I get a red triangle saying 1 file cannot be sent. If I go to Explorer it goes right through. I tried all the stuff about deleting the history and cache and everything else but it still doesn't work.

    Which security software (firewall, anti-virus) do you have?
    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test to see if that helps.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Out of the blue, unable to open Word attachment in Mail with double click. Have to Right click, open with, select Microsoft Word. Am running Snow Leopard and Microsoft Office for Mac 08. Cheers

    Out of the blue, am unable to open Word attachments in Mail with the usual double click. (Get a longwinded error message)
    Need to right click, select open with, and select Microsoft Word. Have been using Microsoft Office for Mac 08 for years.
    I have reinstalled the Office software. A couple of tech people have been unable to fix it. Any suggestion?? debsuemy

    Please re-post in the Office for Mac Product Forums .

  • File name issue in mail adapter attachement.

    HI all,
    i built a scenario proxy to mail in which the data will be sent as attachement to the mail id coming from proxy it self.
    I added the transform bean and xi mail adapter bean correctly..
    The scenario is working fine without errors...
    however the issue is. i have given the file name in for module key :
    Transform =   Transform.ContentDisposition =   attachement;filename="xyz.csv"
    but while testing the attachement is coming as "untitled.txt"
    i need the attachement to be named as "xyz.csv" only.
    where went wrong ...please give ur inputs.
    Thanx.

    Hi Kiran
    Then there is no need to use Transformation bean for this
    In Mapping map the mail package Content_type field with
    text/plain;name="xyz.csv"
    and select mail package and keep attachments in receiver mail adapter
    This will work
    Thanks
    Gaurav

  • Why do people get a .dat and an image file when I e-mail an attachment?

    I don't know where to post this question.

    I have the opposite problem. Some people who send me attachments, and all I get is some .dat file.
    I have found it to only happen when the sender is using Microsoft Outlook, which IMO is a garbage program. And this ranks as reason number 5, on my list.
    The problem is usulaly solved when I ask the user, please do not send me attachments if you are going to use Outlook. I know it has to be due to some unfamiliarity with the User on how to use Outlook.
    I understand that recipients can install a DAT decoder, but it would be a lot simpler if Outlook users simply get along with others  set their own program to not use DAT encoding for their RTF emails, and attachments.

  • Problems with attachments to mails (with browser firefox)

    Dear Sir or Madam,
    I can't attach files (even small ones) to my mails sent with firefox anymore. I always receive these words: "Bad Request - Your browser sent a request that this server could not understand." WHY?? Before, it worked without any problems. I want to stay with firefox! Please, answer me. Thank you very much in advance. MB

    Firefox does not do email, but there are enough users here that someone might be able to help you anyway, if you indicated what web based email you are using and how you are attempting to add the attachment. And when it stopped working, if you can improve on that statement. What is the file extension of the attachment.
    Looks like you provided the exact wording on the message so Googling that including the enclosing quotes. Seems to show the number 1 answer comes from Yahoo answers -- so for maybe they have the biggest problem the example will assume it is yahoo, though they all have these same two problems. Such problems often occur more frequently when the website makes major changes or when Firefox comes out with an updated version. I think Yahoo changed their site they wanted me to update to the new whatever.
    Clear your cookies and your cache
    * clear your cookies should be clear your Yahoo cookies.
    *# Tools > Options > Privacy
    *# search on yahoo
    *# try clearing the mail.yahoo.com cookies, if that doesn't work try extending the range within yahoo's cookies.
    * clear your cache, Tools > Options > Advanced > Network > "Clear Now".
    :To prevent problems in the future, suggest clearing cache upon exiting Firefox
    :see http://img232.imageshack.us/img232/4928/clearcachew.png
    Yahoo provides good picture documentation on their site and better and safer than Mozilla's support example for Firefox (which requires you to read carefully or end up destroying all of your history), but I think my picture above is better as it shows both panels side by side. But you might want to the the same for other browsers from their documentation as well.

  • Possible bug with Notes (in Mail) with copy / paste

    Has anyone else experienced this...
    From time to time the copy / paste does not work properly. When I copy some text with command-c & place the insertion point at the end of line somewhere else in the document & press command-V, the text will be inserted in the line above.
    I am not certain of the precise pattern to reproduce the bug, but try this...
    1) Open an existing note document within mail...
    2) Copy several lines of text & paste somewhere else in the document
    3) Then type some text at the end of one of these lines
    4) Highlight & copy that text
    5) Move insertion point to the end of the next line
    6) press command-v
    7) Text does not get pasted to the right location, but to the line above
    I running Lion 10.7.2
    Thanks

    No, each of the two subpanels calls a different VI. Try it!
    "Satans Little Helper" wrote in message
    news:[email protected]..
    > Are both your subpanels calling the same VI that contains the 3D
    > graph, or are you using two separate VI's? If your subpanels are
    > sharing the same sub-VI, then that sub-VI should be made re-entrant
    > executable.

  • Having problems with OSX and mail with the servers?

    Having problems with OSX and the mail servers?  Seems to be happening more and more?

    Hello,
    Who is your eMail provider, the part after the @ sign?
    In Mail's Window Menu, choose Connection Doctor, any red dots for status, if so what is the message?
    Then click the Show Details button & Check again.
    Open Keychain Access in Utilities, use Keychain First Aid under the Keychain Menu item, then either check the Password under that item, change it, or delete it and start over.
    You may have multiple entries.
    Open Keychain Access in Utilities, enter the part after the @ sign in the search bar, hit enter
    The Password rejection can confuse people since it's a catch all meaning...
    This Password, Username, Authentication method... is not recognized on this Port to this Server, more than one entry in Keychain for each in/out entry, or a server end problem.
    If using a browser to login via WebMail works it's not Name or Password, but one of the other ones.
    The receiving email ports are:
    IMAP is port 143
    IMAP-SSL is port 993
    POP is port 110
    POP-SSL is port 995
    Outgoing ports are...
    SMTP and SMTP-SSL is on ports 25, 587 and 465. Port 587 has to be SSL, and port 465 is enforced TLS-wrapped and is generally used by Outlook users.

  • Java mail with attach file

    Hi , I need a example with java send mail can attach a file
    thnak you

    Hey cool... thanking you phdk. Ta.
    package krc.utilz;
    import java.util.Properties;
    import java.io.File;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.Message;
    import javax.mail.Multipart;
    import javax.mail.BodyPart;
    import javax.mail.MessagingException;
    import javax.mail.internet.MimeMessage;
    import javax.mail.internet.MimeMultipart;
    import javax.mail.internet.MimeBodyPart;
    import javax.mail.internet.InternetAddress;
    import javax.activation.DataHandler;
    import javax.activation.FileDataSource;
    import javax.mail.PasswordAuthentication;
    public class Emailz
      private static class MyAuthenticator extends javax.mail.Authenticator {
        @Override
        protected PasswordAuthentication getPasswordAuthentication(){
          return new PasswordAuthentication("#########", "#########" ); // <<<<<<<<<<<<<<<<<<<
      private static final Properties props = new Properties();
      static {
        props.put("mail.smtp.host", "smtp.googlemail.com");
        props.put("mail.smtp.port", "465");
        props.put("mail.smtp.user", "########"); // <<<<<<<<<<<<<<<<<<<
        //props.put("mail.smtp.starttls.enable", "true");
        props.put("mail.smtp.auth", "true");
        props.put("mail.smtp.debug", "true");
        props.put("mail.smtp.socketFactory.port", "465");
        props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
        props.put("mail.smtp.socketFactory.fallback", "false");
      public static void send(String subject, String message, String from, File[] attachments, String... recipients)
        throws MessagingException
        Session session = Session.getDefaultInstance(props, new MyAuthenticator());
        session.setDebug(true);
        // head
        Message msg = new MimeMessage(session);
        msg.setFrom(new InternetAddress(from));
        InternetAddress[] addressTo = new InternetAddress[recipients.length];
        for (int i=0; i<recipients.length; i++) {
          addressTo[i] = new InternetAddress(recipients);
    msg.setRecipients(Message.RecipientType.TO, addressTo);
    msg.setSubject(subject);
    // body
    Multipart multipart = new MimeMultipart();
    // message
    BodyPart msgPart = new MimeBodyPart();
    msgPart.setText(message);
    multipart.addBodyPart(msgPart);
    // attachments
    for ( File attachment : attachments ) {
    MimeBodyPart attPart = new MimeBodyPart();
    attPart.setDataHandler(new DataHandler(new FileDataSource(attachment)));
    attPart.setFileName(attachment.getName());
    multipart.addBodyPart(attPart);
    msg.setContent(multipart);
    Transport.send(msg);
    public static void main(String[] args) {
    try {
    //send(String subject, String message, String from, File[] attachments, String... recipients)
    send(
    "Testing attachments" // subject
    , "This is an email with an attachment" // message
    , "########@gmail.com" // from // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    , new File[] {new File("C:/Java/home/src/krc/utilz/Emailz.java")} // attachments
    , "########@gmail.com" // to // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    } catch (Exception e) {
    e.printStackTrace();
    Cheers. Keith.

  • What is the best way to send auto mail with excel(generated by query) attachment?

    Hello,
    Need to generate first data from stored procedure and the save it to an excel file and then send mail with the same excel file.
    So am searching for the best way so that i could do all process in a single task with daily or monthly schedule.
    As per my understanding, we could it via SSIS and by sql server using
    sp_send_dbmail.
    But i have to generate excel file first by stored procedure and then end it by mail.
    So please suggest the best way to accomplish all task in a single task.
    Thanks
    Ajay 

    Hi Ajay,
    As shown in the blog mentioned by Syed, to delete records from the Excel file, you need to use Update OpenRowset command to update the corresponding rows to blank.
    Alternatively, you can also use Derived Column Transformation or Conditional Split Transformation after the OLE DB Source so that you can replace the target rows with NULL before exporting to Excel destination or just redirect the expected records to the
    Excel destination.
    Then, in the Control Flow, you can add a Send Mail Task to send the Excel file by setting it as the attachment. The following screenshot is for your reference:
    Regards,
    Mike Yin
    TechNet Community Support

  • In iphone4, How and where to save a file attached in mail

    hey, i have started using iPhone. presently using iPhone4. How and where can i save files attached in mail.

    Photos attached to an email can be saved to the Camera Roll in the Photos app on your phone. Tap and hold on a photo in the email until you get a choice to Save Image.
    Other documents require a suitable app.
    PDFs can be saved in the free iBooks app available in the App Store.
    Word docs can be saved in Pages or other apps that support text files.
    Etc.
    To save a document tap on the doc. You will either be able to view the contents or get a choice to open in some other app,

  • Callout Javascript to remove e-mail as attachment option?

    Hi,
    In our organisation, we're running Sharepoint 2013. On hovering over every folder/file there is a drop down list with a e-mail as attachment option.
    Is there any javascript which will modify a callout and remove e-mail as attachment?
    Thanks.  

    Hi,
    From your description, the “e-mail as attachment” might be a button in the Edit Control Block(ECB) menu of your library and you want to hide it using JavaScript.
    The links below about how to customize the ECB button for your reference:
    http://danielnardi.net/customising-the-sharepoint-2013-ecb/
    http://extreme-sharepoint.com/2011/10/29/hide-menu-ecb/
    http://platinumdogs.me/2013/04/18/hiding-sharepoint-ecb-menu-items-for-a-specific-list/
    Or you can disable the Callout of this library to achieve the same goal:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/ffeb1928-2c9d-49b6-9e72-2511f6ae312b/how-to-disable-callout-in-document-library?forum=sharepointdevelopment
    Best regards
    Patrick Liang
    TechNet Community Support

  • Outlook and mac mail client attachements freeze, skype freeze

    Hi all,
    I am working in a company that many users have Macbooks Air and Pro. One specific user with a  a Macbook air that has a clean install of Yosemite (not even a week ) started to have problems with the mac mail client attachements. Every time he tried to insert a file the mail client frozen and had to force quit. After a while i observe the same issue on Outlook mail client. At last after a reboot that he did to see if that gonna solve the problem then Skype started to freeze also and had to quit every time. So now, so far none of the above apps work as expected and the Skype doesn't work at all. It has to be noted here that we did the upgrade from Mavericks to Yosemite to solve the Skype issue that he had also for a couple months now and it wasn't resolved from Skype's support team( never answered). So for now we have again the same problem and and with a fresh install of Yosemite i am started to thinking about hardware issues or even broken drivers, code to Yosemite etc. The laptop has an encrypted SSD using Filevault, SEP, Office and Acrobat Reader nothing else.
    Any thoughts to solve this issue?

    Hi Brody,
    Thank you for your answer, yes i did erase the hard drive and install Yosemite!! After a second call that i made with my client he said that first of all:
    The problems of the Outlook and mac mail client attachements freeze started after he install Cisco VPN Anyconnect (I don't think that this has to do anything with the freezing) so he tried to remove this using Appcleaner. After this not only the Outlook and mac mail client attachements freeze problem was remaining but he saw that skype started to freeze also. No matter how many uninstall and install he made to the Skype, Skype continues to freeze. For the mail freeze i advise him to use the verify/repair disk permissions and so far that one solved. The remaining problem is the Skype Freeze so far. I also tried to remove the Skype following this https://support.skype.com/en/faq/FA12073/how-can-i-completely-uninstall-and-then -reinstall-skype-for-mac-os-x
    so to avoid Appcleaner and still the problem persist even with older versions of Skype. I also create another profile account in Yosemite and Skype seemed to played well there. But i would need to solve in his account so to avoid any file transfer. Do you have any idea why that happened? Is it a file permissions problem? Corrupt/missing files in users profile? This one problem had in the past as i wrote in the previous comment and couldn't work at that time.
    Any thought on that? What could be wrong?
    Thanks

  • Mac Mail with Hotmail and iPhone

    So I have been searching around for hours and I have a few problems with syncing my Mail with my iPhone.
    1) I have a iPhone 4s and a macbook pro. I have an email account set up on my mac mail that I want to sync with my iPhone. The problem is it is a hotmail account. The issue is I want my emails to be marked as read no matter where I read the message. What is happening is that I am reading my emails in the morning on my mac and then when I open the same email on my phone I have to go through and delete and read the same messages. Is there a way to set it up so that both my mac and my phone sync to the same unread and read messages?
    2) My iPhone no longer shows me the red unread messages alert in the corner of the icon. It dings when I get an email but the icon does not alert me anymore. Any ideas why this would be gone?
    Thanks

    I was able to go through a long and tedious process but it looks like with some tips and trick I have managed to set up a system that works with iPhone being IMAP and Mac Mail being POP. I am making sure my messages remove the copy from the server after I move them from the inbox. This works because once I delte or move it to a folder it deletes off of hotmail and then updates my phone that hotmail messages has been removed. It is a annoying work around but it seems to work at this point.
    This is what got me closest.
    http://www.sirslur.com/2010/09/01/hotmail-has-imap-and-works-on-iphone/
    Also point 2:
    I seemed to turn off this:
    Settings->Notifications->Mail->Badge App Icon On

Maybe you are looking for

  • Error while calling a Web Service from a Session Bean

    I am trying to call a Web Service from a Session Bean using an Axis client, but I am getting the next exception: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:      java.rmi.RemoteException: org/apache/axis/

  • Password protected Excel sheet on the application server (dataset)

    How can I create password protected excelsheet on the application server? Is it possible through DATASET? How can I modify below statement to create xls password protected? OPEN DATASET dest FOR OUTPUT IN BINARY MODE. Regards K

  • ATI and TVout plus games problems

    Hi, So I really hate ATI by now but since switching to nvidia ain't and option atm I might as well ask for user input on couple of problems: 1st: Tvout, I guess to get working tvout i must use fglrx? Tvout works as clone atm but is it possible to get

  • How to remove the focus from a tree?

    Hello, how can I remove the focus from a tree, so that none of the elements in the tree is selected? I have tried using the following methods: setTreeSelection(null); setLeadSelection(IWDNode.NO_SELECTION); None of them worked. Any help highly apprec

  • Essbase Model taking more time

    HI, I am trying to create a essbase model in ODI. But it is taking more time. The status in operator , execution tab showing Running. I waited more than half of the day. Colud any one help on this. Regards KumarK