Need Java Coding to sent File in a Mail Attachment with MIME Type with SMTP

Hi Experts,
  I need java code to sent a file in an email attachment with MIME type.
  Please provide me.
TYhanks
Bhaskar

Hi Stefan,
  Thanks for your Blog.
The same java mapping is been used in my current system, but the legacy system cannot read
some emails as they are asking us to send the email in MIME format.
Already i am sending in MIME format itself.
They can read some Emails and they cannot ream some Emails.
I think the problem could be their exchange server.
Can you please suggest on this.
Regards,
Bhaskar

Similar Messages

  • Dynamic file name as mail attachment in receiver Mail Adapter?

    Hi,
    Can any one tell the possibility of attaching file as a mail attachment without using mail Package with dynamic filename.
    Business requirement is to send error response as mail attachment with dynamic name.
    Ex: Error_Response_20110802_13.24 where 20110802 is Date and next part represents time stamp.
    File attachment name should change dynamically in Mail receiver Adapter. Thanks
    Regards,
    Sreeramulu Konjeti.

    there is no standard way.
    you will have to write a module to get this in place.
    other ways are;
    XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping - /people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping
    Dynamic name in the mail attachment - pseudo "variable substitution" :
    /people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution

  • Problem with mime type in web.xml file

    Hi everybody,
    I actually got a problem with mime types on Weblogic 6.0 under Linux.
    I read the documentation so I added the next lines in the web.xml file in
    the WEB-INF directory of my server :
    <mime-mapping>
    <extension>
    doc
    </extension>
    <mime-type>
    application/msword
    </mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>
    ppt
    </extension>
    <mime-type>
    application/vnd.ms-powerpoint
    </mime-type>
    </mime-mapping>
    Why can't I retrieve a .doc or .ppt files with an internet browser correctly
    ? I get only text/plain ...
    Can someone help me ?
    Regards,
    Alexis Berger

    I am having the same problem with doc and xsl. I have added this
    <mime-mapping>
    <extension>xls</extension>
    <mime-type>application/vnd.ms-excel</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>doc</extension>
    <mime-type>application/msword</mime-type>
    </mime-mapping>
    to my web.xml. I even restarted the server. I still see doc and xsl in binary.
    Is there some other setting that needs to take place?
    I am using WL6.1 with fixpack 1.
    I can see the doc and excel files in the browser if I don't go through the weblogic
    server. That just confirms it's not my browser.
    Kumar Allamraju <[email protected]> wrote:
    <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
    <html>
    It works fine for me in 6.1 SP1.
    <br><br>
    If the following doesn't work , can you
    <br>try application/winword instead of application/msword?
    <p>--
    <br>Kumar
    <p>Siming Mu wrote:
    <blockquote TYPE=CITE>Hi,
    <p>I setup in my web.xml a mime mapping as follows,
    <p><mime-mapping>
    <br><extension>doc</extension><mime-type>application/msword</mime-type>
    <br></mime-mapping>
    <p>When I specify a test.doc url, the doc file appears in my browser
    as
    binary data
    <br>instead of download.
    <p>Please reference change request 055002, which decribes this problem. 
    According
    <br>to edocs, it has been fixed in wls6.1sp1.
    <p>But I am seeing it fixed.  Am I doing anything wrong? Thanks.
    <p>Siming</blockquote>
    </html>

  • Mac Mail Sent File bogging down Mail, and entire system

    At Mail start up, when I go to my Sent File, it appears to be attempting to update/access the file (that shouldn't need that much updating).  The small pie chart icon that shows progress next to the Sent Folder starts, but doesn't progress past the first little sliver and the rainbow pinwheel just spins and spins and spins.
    It ends up bogging down and eventually locking up the whole machine.
    If I leave it alone and let it spin for a while (like 5-10 minutes) it will eventually finish whatever it was trying to do but any attempts in the interim to do much of anything is futile - even a force quit is super super laggy.
    This problem has only been happening for the last week or so.  I can't associate it with any sort of update or activity - it seems to have just come out of thin air. 
    Really making using mail almost impossible. Needless to say this is putting a significant cramp in my work which is especially email heavy.
    Please advise.
    MacBook Pro ('08 I think)
    Running 10.6.8 (have not updated due to incompatibility with critical software)
    Mail Version 4.6
    Thanks

    Eric,
    It worked, thanks!
    What is a "rebuild"?  and why did that mailbox need rebuilding (and others didn't)?
    Thanks again.

  • Dynamic File naming in Mail attachment

    Hi experts,
      I am doing a Mail to File scenario, in which at the sender side I have a mail with File attachments.We are using IMAP protocol and picking up from a URL.At the receiver end we have to provide a file which is the attachment from the incoming mail.
    With the help of the module I have separated the body and the attachment and the file is created with the static name I provided in the File adapter
      My requirement is to dynamically name the file based on the customer name.I am not configured the design part, as no mapping of the interfaces are required.
    For some reason,I am not able to open the mail bodyin sxmb_moni,but can see the attached file.
    Thanks,
    Tushar

    there is no standard way.
    you will have to write a module to get this in place.
    other ways are;
    XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping - /people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping
    Dynamic name in the mail attachment - pseudo "variable substitution" :
    /people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution

  • When I try to click on a download link for a .pdf file Firefox does not recognize the MIME type and tries to download the file as "index.php"

    When visiting a site I frequent I tried to download a linked .pdf file. Previously I've used Firefox 7.0.1 to download the link with no problem. Using Firefox 8 however I the browser does not recognize the .pdf link's mime type. Instead of recognizing the download link as a .pdf file Firefox 8 tries to download it as "index.php". Firefox 8 does this with .doc files and .txt files as well. When I downgrade to 7.0.1 again the problem disappears.

    Hi hakmacpace,
    I'd try starting Firefox in [[Safe Mode]]. If you don't have the issue while all of your add-ons, extensions, and themes are disabled, you can try adding them back in one by one until you find the culprit. You should look at the [https://support.mozilla.org/en-US/kb/Troubleshooting-extensions-themes Extensions and Themes troubleshooting guide ] and the [[Troubleshooting plugins]] article as well.
    You could also try [https://support.mozilla.org/en-US/kb/Managing-profiles?s=create+a+new+profile&r=2&e=es&as=s#w_creating-a-profile Creating a new profile].
    Hopefully this helps!

  • Need Java api for .class file comparison....

    Hi all,
    In .net one CecilAssemblyAnalyzer api is der it analyze the two version of .net applic in offline mode (pick .exe and .dll files)
    n forms tree structure and den copares both tree n get the changed function..
    i need same type api in Java...
    Thanks in advance..
    Regards,
    Sachith

    <blockquote>quote:<br><hr><i>Originally posted by: <b>sunny_rush</b></i><BR>com_beacon_essbase_jni_EssApiJni.c:15:20: essotl.h: No such file or directory<BR><hr></blockquote><BR><BR>That package does not appear to be from Hyperion but rather from a third party. Based on the name, it may have come from Beacon Analytics which is now part of Answerthink. Did you have consulting from them in the past?<BR><BR>Tim<BR><BR><BR>

  • Need help creating an "insert file" to add an attachment to a form?  Is this possible?

    I am trying to add an "insert file/attachment" field to a form that I'm creating but am having trouble finding information.   Is this possible?   Please advise.
    Thank you!

    Hi,
    The form with add attachment feature on link http://eslifeline.files.wordpress.com/2009/04/addattachments.pdf
    works fine but when I copy paste objects to use 2-3 times on page 2 and 3 then after attaching different files at all 3 sections, I see only same type of files when using view attachments. I understand it is same like when making 2 fields name same act same together.
    Please help me make the javascript run differently (as new) for each add attachment function.
    Thanks

  • I need sound on incoming pps files on e-mail

    When people send me a PPS file  on the internet it does not have any sound.... Help !!

    No sound when opened .pps file?
    https://discussions.apple.com/thread/1727973?start=0&tstart=0   <<< click here for a possible answer.

  • View full file names of mail attachment titles in MAIL application (Apple)

    I often get many attachments sent to me and when I am looking through emails for some reason all attachments show up as an ICON with a shortened version of the name of the file. It is always just the first 10 or so characters of the title and the last 3, which is usually the (.gif, .pdf, etc...)
    A lot of what I get usually has the similar titles and only seeing the first few characters is not making things easy for me to find exactly what I am looking for.
    Is there a way to view the full file name within the mail and within the application without having to open each file up each time in the APPLE MAIL application?
    Maybe there's a way to show all attachments as a list with a smaller icon?
    Anything that'll let me view the full title of all attachments would help.
    Thanks in advance for any suggestions.
    Message was edited by: KennyMac212

    I agree it is frustrating and literally just sent the wrong attachment to a customer because I was trying to live with the truncated filename system. I did find this nifty app called Mail Iconizer (http://lokiware.info/Mail-Attachments-Iconizer). It's pretty neat as it lets you control how attachments are viewed as well as pdfs and images (based on size). It's a free unlimited trial and $15 if you want to register so it's pretty inexpensive.

  • Pdf file name in mail attachment

    Hi All,
    For sales order invoice, there is an output type configured which sends the output smartform as pdf attachment in mail.
    The sending medium is 'External send' (Type 5). I want to know how I can give a specific name to this pdf file attachment.
    Since there is no coding involved in generating this pdf attachment, i don't know how to achieve it.
    Can I pass it when i call the function module of the smartform ?
    Please help.
    Regards

    Hi,
    In your driver program, the title for the pdf has to be provided in the import structure for the smartform with name "OUTPUT_OPTIONS" of type SSFCOMPOP.
    In it, use try field TDTITLE or TDCOVTITLE. I don't exactly remember which 1 of these 2, so try both.
    Regards,
    Ashish

  • How to send text file as an email attachment havin more than 255 characters

    My requirement is to generate a text file and to send this text file as E-mail attachment. I am using FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send the E-mail. but here the limitation is the number of characters per line must not be more than 255 characters whereas in my case it is exceeding 1000 characters per line. could anyone please suggest me what should i do now ? Each field in the text file has to be tab delimited.

    Simplest might well be to use javamail API instead of the two tags that Sites provides, e.g. see email - Sending mail attachment using Java - Stack Overflow for a full example.
    Phil

  • HTML file send as an attachment via an email adapter

    Hi,
    I need to implement an scenario File -> XI -> Email (html attachment) . To send html as attachment , do i need to go for XSLT mapping ? ...please share your ideas if any ..
    Regards
    Vinay P.

    Hi Vinay,
    Have you seen this blog?
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3414900%29ID1832422350DB01827388014243714513End?blog=/pub/wlg/6321
    Regards
    Suraj

  • .indd File Mime type

    Could anybody tell me what the mime type for .indd files are?
    Am trying to allow indesign files into our DMS but I need the mimetype, can only find it associted with "application/octet-stream" but this mimetype allows things like .exe files etc
    Is there is specific mime type for indesign files and other adobe products file extensions like for pdf = "application/pdf"
    Thanks.

    Indeed, hastingsr is correct.
    There is no official MIME type for InDesign -- it does not appear in the IANA's listing: http://www.iana.org/assignments/media-types/application/index.html.
    But if you consult the XMP metadata that InDesign writes, it identifies itself in the Dublin Core metadata as application/x-indesign:
    <dc:format>application/x-indesign</dc:format>
    application/x- types are not covered in a registry, and are basically a free-for-all, but the IETF has realized that's not the best move, and that state is changing. See http://tools.ietf.org/id/draft-ietf-appsawg-xdash (Deprecating Use of the "X-" Prefix in Application Protocols. P. Saint-Andre, D. Crocker, and M. Nottingham. October 24, 2011).
    More than you wanted to know? :)

  • How to determine the MIME types of the files?

    I'm making an application, in which I've to upload the files to the database. Now I want to insert into the database the MIME type of the files. Now how can I know that which type of the file is having which MIME type?
    where can I get the list of all supported MIME types?
    Even if I get the list, then every time I update the file in the database, so every time I have to check the file extension and then insert the MIME type...
    this seems to be a tedioius job..
    Is there any simple way to do this?

    I could ask "supported by what?" but I assume you will
    be the one supporting them. Here's a link to the
    latest list of registered MIME types.HERE's the link...
    ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/media-types

Maybe you are looking for

  • Can't view Microsoft Access data

    Hello, I am trying to use a Microsoft Access database (97) as a data source for my repository. I can import it in the Administration Tool and see all the tables. When I finish my repository the global consistency is without errors. Then I go to the A

  • Error in copy of BCALV_TREE_SIMPLE_DEMO

    I copied BCALV_TREE_SIMPLE_DEMO  to a z version, changed it with own structure DATA: gt_sflight      TYPE zhpa_vakantie_struc OCCURS 0, "sflight OCCURS 0,      "Output-Table now when running an error occurs, i think this has to do with the screen col

  • Powerbook monitor died...how do i recover files?

    I have a powerbook titanium and the monitor has died. It would cost like 400$ to replace the monitor so i bought a new macbook. how would i go about getting my data in the harddrive out? I was thinking two solutions 1) remove hardrdive put it in a id

  • How do I get access to purchases older than 18 months ago?

    Quicktime 7 Pro

  • ERROR: The network you selected cannot be extended

    I just bought a new Airport Extreme duel-mode router, and I want to use it to extend my network. I go to the wireless settings, and choose to "Extend A Network" then I choose the network that I want to extend. The problem is that when I selected the