Mail:send mail:attachment. Is there a simplest way to send a file as an email attachment ? or more correct ?

<satellite:form  method="post" id="contact-form" enctype="multipart/form-data">
     <input type="file" name="adjunto" />
</satellite:form>
FTValList ftListaFichero = new FTValList(1);
ftListaFichero.setValBLOB(ics.GetVar("adjunto_file"), ics.GetBin("adjunto"));
  <mail:send
       to="<%=to_emailaddress %>"
       from="<%=from_emailaddress%>"
       subject="Subject"
       body="<%=body %>" >
    <mail:attachment value='<%=ftListaFichero.getVal(ics.GetVar("adjunto_file"))%>'/>
  </mail:send>
http://docs.oracle.com/cd/E29542_01/apirefs.1111/e39371/JSP/mail-attachment.html
http://docs.oracle.com/cd/E29542_01/apirefs.1111/e39371/JSP/mail-send.html
Regards,

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

Similar Messages

  • HT5622 I forgot my Apple ID password, as well as the security questions answers. Also, I currently can't use any of the rescue e-mails. Is there any other way I can reset my security answers or maybe reset the rescue e-mail?

    I forgot my Apple ID password, as well as the security questions answers. Also, I currently can't use any of the rescue e-mails. Is there any other way I can reset my security answers or maybe reset the rescue e-mail? I called the Apple customer service and it was helpful, except I recieved an e-mail that expired 3 hours later, I can't call them again because I am overseas and it's really expensive to keep on calling international numbers! . Can anyone PLEASE help me?
    I can't use any of my apple products properly such as my iphones because of iCloud and I can't purchase items on Apple TV!
    Thank you.

    Security questions:
    https://discussions.apple.com/docs/DOC-4551
    http://support.apple.com/kb/HT5312
    This is also useful:
    http://www.macworld.co.uk/ipad-iphone/news/?newsid=3463233&olo=email
    If you don’t know your security questions, phone Apple (using the number listed here:  http://support.apple.com/kb/HE57  ) and ask for the Account Security Team.

  • My ipad2 freezes when i try to delete a email that has a 78mb pdf attached. Is there any other way to delete this file other than through the email program?

    My ipad2 freezes when i try to delete a email that has a 78mb pdf file attatched. Is there any other way to delete this file other than the email program?

    If it's not MobileMe, use Safari to access the server directly and delet from there. If it is MobileMe, do the same thing but from your computer as the iPad Safari won't connect to MobileMe mail.

  • Is there any easier way to edit imovie files that have been exported as mov file then added to FCE 4?? As every move I make has to be rendered and takes forever??? Also my recording is going out of focus without me touching the camera, why has this happen

    Is there any easier way to edit imovie files that have been exported as mov file then added to FCE 4?? As every move I make has to be rendered and takes forever??? Also my recording is going out of focus without me touching the camera, why has this happened any idea what causes this??
    iMovie '08, Mac OS X (10.5.8), FCE 4

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • Is there any possible way for Apple to resend the activation email for iMessage?

    I wasmad due to something that had happened, so I decided to turn iMessage off on my phone. I went to turn it back on and it said waiting for activaion. I went onto my email, and of course, there was no email. I am currently stuck sending iMessages from my Apple ID. Is there any possible way that Apple can resend and activation email or....?

    I think you are mistaken.
    I have heard of no such e-mail.
    iOS: Troubleshooting FaceTime and iMessage activation

  • Is there any simple way to create ods files (OpenOffice Calc)?

    Is there any simple way to create ods files (OpenOffice Calc) using ResultSet (from java.sql)?

    Mabe, you can create CVS files (plain text) Ej...
    ====test.cvs=====
    1, "aaa"
    2, "bbb"
    3, "ccc"
    ===============
    Using a "BufferedWriter"

  • I am wondering if there is a way to validate XML file without using .......

    I am wondering if there is a way to validate XML file without using the <!DOCTYPE... but pass in the location of the schema/DTD file as a parameter to a validating method?
    thanks

    None that I know of. The only thing close is to use the EntityResolver interface where you can modify the location of the DTD file before it's being loaded and parsed, but that requires a <!DOCTYPE ...> in the XML file.
    Good luck.

  • Help: there is a way to delete duplicate files in itune?

    every time when im importing music on my itunes is storing the files in the itunes music folder. now i have to backup this folder and the size is more than 80GB. i found that there are many duplications of songs. is there any easy way to delete duplicate files and songs that are unchecked from itunes playlist?
    thank you

    Robert Jacobson has written a duplicate removal script which you can download here:
    http://mysite.verizon.net/teridon/itunesscripts/
    You imply that your duplicates are unchecked. You can create a playlist containing unchecked tracks. This would allow easy manual deletion.
    You need two playlists.
    First create a smart playlist called "checked" containing checked items:
    Uncheck "Match the following rule"
    Check "Match only checked items"
    Live updating checked
    Next create a playlist with the following rule:
    Playlist is not checked.
    Match only checked items not checked.
    Live updating checked
    This second playlist should have all your unchecked tracks in it.
    Then you can use shift del to delete the tracks from you library.

  • Please help!!!!!! i filled out a job application using adobe reader but i cannot send the file back via email because the file is protected with a lock. how do i unlock this file to send it?!!!!!!!!!

    please help!!!!!! i filled out a job application using adobe reader but i cannot send the file back via email because the file is protected with a lock. how do i unlock this file to send it?!!!!!!!!!

    Hi kevinv1987,
    It doesn't sound like the PDF was password protected (or Adobe Reader would prompt you for a password). Instead, it sounds like that file may be marked locked by your operating system. Are you on Mac OS or Windows? In either case, here are instructions for removing the lock icon from the file:
    Remove the Lock Icon from a Folder in Windows 7 (check Microsoft's website if you have a different version of Windows)
    On Mac OS, select the file in the Finder, and choose File > Get Info. Then, just deselect the Lock checkbox.
    Please let us know how it goes.
    Best,
    Sara

  • How to send mail attachment excel sheet correctly

    Hi,
    I  am working one program and there the out put should be sent in mail attachment in excel sheet. I have used one Function module SO_DOCUMENT_SEND_API1. I am able to send the output data mail attachment excel sheet. But one problem I am facing that last two lines in excel sheet are shifting one tab right. It should come from from first column itself.
    How to correct this program any one can answer it with some code if possible.
    Waiting for quick response.
    Best Regards,
    BDP

    Hi,
    I  am working one program and there the out put should be sent in mail attachment in excel sheet. I have used one Function module SO_DOCUMENT_SEND_API1. I am able to send the output data mail attachment excel sheet. But one problem I am facing that last two lines in excel sheet are shifting one tab right. It should come from from first column itself.
    How to correct this program any one can answer it with some code if possible.
    Waiting for quick response.
    Best Regards,
    BDP

  • Please help! is there a (easy) way to remove/copy files to ext HD without changing ANY date? An d how about e-mail attachments, they also change all dates

    Dear forum readers
    All I want is to copy my pics to another disk without MAC OS change the date on wich I shot them. Pics, sent to me by e-mail also loose there original date. I understand the difference between making a new file by copying, but I don't understand why it change when I remove them.

    There are two kinds of metadata involved when you consider  jpeg or other image file.
    One is the file data. This is what the Finder shows. This tells you nothing about the contents of the file, just the File itself.
    The problem with File metadata is that it can easily change as the file is moved from place to place or exported, e-mailed, uploaded etc.
    Photographs have also got both Exif and IPTC metadata. The date and time that your camera snapped the Photograph is recorded in the Exif metadata. Regardless if what the file date says, this is the actual time recorded by the camera.
    Photo applications like iPhoto, Aperture, Lightroom, Picasa, Photoshop etc get their date and time from the Exif metadata.
    The problem is that the Finder doesn't work with Exif. You need to use an app that understands Exif.
    Regards
    TD

  • 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

  • Sending Flat file as an Email Attachment

    Hi,
    I have configured Mail Adapter to send XML Payload as an attachment .
    But now i need to send Flat file as an attachment using Mail Adpater . Can any body help me out in this regard

    Hi Vinay,
    Yes , steps will same as earlier, use the blog i provided you.
    *Configuring the Receiver Mail Adapter*
    For outgoing mails, you need SMTP or IMAP4 access to your mail server. To access the mail server, enter the following URL:
    smtp://YourServer or imap://YourServer/YourInbox
    By selecting the Use Mail Package checkbox, you can include additional information to the XI message payload, that is, the mail sender.
    If the mail has a plain-text format, you can select the Use Mail Package checkbox to convert the mail message to XML.
    Working with Mail Packages
    You can dynamically set the sender, receiver, and mail title by using the mail package format. When the mail package format is used, your structure of the payload must adhere to the structure of the mail package.
    You can create the mail package structure using the graphical mapping tool. The XSD of the mail package is provided as an attachment in SAP Note 748024.
    Creating a Mail Package with XSLT Mapping
    If you want to determine the mail receiver dynamically from a payload field, but want the
    payload to be sent unchanged, sometimes it is too complicated to use the graphical
    mapping tool to create the mapping. The following figure provides an XSLT example that you can use, if your original payload provides the tags sender, receiver, and subject. The XSLT will set these values and copy the whole payload to the Content tag. The original payload will be the mail body.
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:output method="xml" indent="yes" />
    <xsl:template match="*">
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
    <Subject><xsl:value-of select="//subject"/></Subject>
    <From><xsl:value-of select="//sender"/></From>
    <To><xsl:value-of select="//receiver"/></To>
    <Content><xsl:copy-of select="/"/></Content>
    </ns:Mail>
    </xsl:template>
    </xsl:stylesheet>
    When you use the MessageTransformBean module in the module processor
    configuration of the communication channel, you can directly apply the XSLT mapping to the adapter module.
    Enter localejbs/AF_Modules/MessageTransformBean as the first module. Select
    the Type Local Enterprise Bean and select a value for Module Key.
    You can also use the XSLT file for an interface mapping in the Integration Repository.
    Changing the Name and Type of the Payload
    By default, the payload of the XI message is sent as an attachment. If you use mail
    package, the mail text in the Content tag is sent as a mail body (inline). If you want to change this or influence the name of the attachment, you can do this using the
    MessageTransformBean module.
    Enter localejbs/AF_Modules/MessageTransformBean as the first module.
    Select the Type Local Enterprise Bean and select a value for Module Key.
    If you use the Mail Package, then you have to apply the Mime type in the tag
    Content_Type:
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
    <Subject>Hello</Subject>
    <From>[email protected]</From>
    <To>[email protected]</To>
    <Content>This is a mail</Content>
    <Content_Type>text/plain; charset="ISO-8859-1";
    name="MyFile.xml"</Content_Type>
    </ns:Mail>
    Exactly how the mail content is displayed at the receiver end depends on the mail client. If the customer has a different mailing system, the mail look may look different at the customer side.
    *_Sending a Mail with Attachment  (That is what you need)_*
    If you want to send a mail with a body and attachment, or with several attachments, the message sender has to provide an XI message with additional attachments. For each additional payload of the XI message, the mail adapter creates an attachment for the mail. To enable this feature, you select the Keep Attachments checkbox when configuring the mail adapter. By default, the payload of the message is also sent as an attachment. If you do not want the payload to be sent as an attachment, set ContentDisposition to inline. If you want to give each attachment a certain name, you can use the swap module. The swap module changes the main payload.
    Enter the localejbs/AF_Modules/PayloadSwapBean module as Local
    Enterprise Bean between the two modules that change the attachment names.
    Select a value for Module Key.
    You can find the name of the payload that you want to set as the main payload in the XI message monitor (SXMB_MONI).
    Useful SAP Notes
    SAP Note 748024: Here you can download the XSD structure of the Mail Package.
    SAP Note 794943: Description of the module “PayloadSwapBean”
    SAP Note 793922: Description of the module
    Hope this will help you.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • Sending DBF file as an email attachment

    Hi,
    I have a requirement to extract data from database table then send it as a DBF file in an external e-mail. By browsing the threads, i was able to create a DBF file using FM DOWNLOAD, I know this is obsolete but GUI_DOWNLOAD does not support DBF file type. This is currently stored in my local drive. This is working fine. I can view the file using FoxPro. My problem here is how to automatically send that DBF file in an email as an attachment.
    I learned that FM SO_DOCUMENT_SEND_API1 can be used but I think it doesn’t support a DBF filetype. I am receiving a message something like it is not a table when I open the file in FoxPro.
    Any help will be greatly appreciated. Thanks!

    Change in requirement. Only store DBF in the shared folder.
    Closing this thread.

  • I record multiple tracks (3-5) from real instruments and vocals. I want to send these files to a collaborator to add more tracks to, but Garageband wants to mix these down (which I don't want). How can I send the multiple tracks files to my friend?

    I record multiple tracks of real instruments and vocals wth Garage Band. I want to share the file with a collaborator so he can add another instrument or two. I have not found a way to do this without the process mixing down the tracks. I don't want them mixed down like when I send them to Itunes. Also I can't seem to just attach a file directly to an email for sending purposes. I thought I saw a method to do this with software instruments, but how do you do it with real instruments? I've tried every process on the "export" list to try to accomplish this, without success. Thanks for any breakthrough advice on this!

    As isteveus said - for large projects uploading to a server would be best.
    Also I can't seem to just attach a file directly to an email for sending purposes.
    But for completeness's sake , you cou can mail a project, if you ctrl-click the project and use "Compress xxx.band". This will compress the project and create a zip file, that you can mail (if it is not too large). But ask your friend for the maximal file size allowed as a mail attachment.
    But whichever method you use to share your project, be sure you include all loops and instruments, if your friend does not have the same JamPacks installed. You can bundle the loops into the project by saving it as an archive. "File > Save as" and check the "Archive Project" option.
    If this option should be disabled, you can force it to become active by editing your project slightly. It is only available, if the project needs saving.
    Regards
    Léonie

Maybe you are looking for

  • ABAP Web Services Exception Valorization in SOAP Fault Message

    Hi, I created a Custom Function Module in ABAP with a custom exception ( "Exception1) in exception list (including a short text description of the exception ("This is the first exception!!!")). I exposed it as web services by means of 'Web service AB

  • Screen automatic refresh on a CommandButton action

    Hi, I have made two functions on the Application Module of my project wich are called by 2 ComandButtons from the web page. One of functions create a new file on the table displayed on the page, I need that because that table must no be changed by th

  • Customised FONT Size or Style

    Hi Folks, Can we define our own font size and font family in SAP?I am working on Script. Thanks, K.Kiran.

  • Print(er) settings for printing DIN A6-prescription

    Hello All, a colleague want to print out DIN A6 prescriptions with HP Laserjet 2055 printer. In SAP we use the device tpye 'HPLJ4: HP Laserjet 4 series PCL-5' for this printer. The prescriptions must be printed out in landscape ( the paper insert at

  • Avoiding a session variable

    Hi guys. I have the following problem. I have kind of a search engine that uses a servlet and normal java classes. When the user searches for something I get a list of objects. Thanks, when he follows a link I perfom an action on one of this objects.