How to attach a file to an email without using JavaMail

hi everyone!
I'm trying to develope a program wich has to send email messages with attached files. Specifications say that I can't use JavaMail. So I'm trying to use SMTP. It's a very simple protocol, but I haven't found how to send attached files.
Any suggestion or source code? Thanx Very much!!!

you will need to add a mime body to the data as done in the example message (i found it somewhere on teh internet so don't blame me for erors in it ;) )
MAIL FROM:<[email protected]>
RCPT TO:<[email protected]>
DATA
Mime-version: 1.0
Content-Type: multipart/mixed; boundary=OpenVMS/MIME.572522828.951855
Content-Transfer-Encoding: 7bit
Message-ID: <572522828.0@>
--OpenVMS/MIME.572522828.951855736
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
We have modified this to send with SFF for SMTP - TCPIP
Services for OpenVMS.
--OpenVMS/MIME.572522828.951855736
for info about how to use mime look at the RFC of mime (just do a google search)
Robert

Similar Messages

  • All of a sudden I am unable to attach a file to my email without compressing

    All of a sudden I am unable to attach a file to my email without compressing. The email will show no attached file and then freezes and I am unable to add any content to body of email or change any of the content. I have to just delete the email and start over. If I zip the file it will show up in the body of the email and I am able to add content and send the email. This just stared happening, I had not changed any preferences or anything so I have no idea what happened.

    Want to explain - makes no sense  since they share the exact same library
    It actually that details are critical since we know nothing about your configuration or situation except what you choose to share with us  --  including what "everything you can think of" is
    LN

  • I suddenly cannot attach any file to an email whilst using Firefox 5.

    My preferred browser is Firefox 5, which I have been using trouble-free until now. All of the sudden, I am unable to attach any file to an email. I simply get a file loading attempt that never times out. At first I thought it was a Yahoo problem, but my work email server will not add attachments either. I downloaded Google Chrome just now as a test, and still can't add attachments. Might this be a Windows problem? Anyone run into this? Thank you. I am my own IT department and it is sad... Katherine

    Try clearing your browser cache.
    Tools > Clear Recent History... - hit Details and make sure only Cache is selected, then select Everything and hit the Clear Now button.

  • How to attach a file to an email in EMOD

    People
    I can place an hiperlink to a file emails from email marketing on demand.
    What my people wants is to attach a file.
    Is this possible???
    Thanks in advance for your help
    Ruben Abuin

    Well you have to put this file in your hosting library and then link to this item in your message. Thereby you are not flodding your contact's email box at the same time the message gets delivered. Now the challenge is you have manage the size of these attachments and determine how long you want to keep these files in your library

  • How to attach image files to an email message?

    I use Mac Mail. When I attach an image file to an email message, the recipient gets it embedded in the message and not as a separate attachment. I'm assuming that the recipient uses a Windows computer, and I always send Windows-friendly attachments. What do I have to do to ensure that attachments are not embedded in an email message?
    Thanks.
    David Heim

    http://itunes.apple.com/us/app/azul-media-player-video-music/id406845187?mt=8

  • How to attach a file in an email

    Is it possible to attach a file before sending an email on iPad ?

    You can not send attachments from Mail, but must use an app that allows you to share or send the material as an email.
    Some apps allow you to "share" content by opening Mail and adding the material as an email message. Some apps will allow you to copy material to temporary memory, then open Mail, place block the material you want to add, and then paste the content to your email message.

  • Why can't I attach a file to an email when using Firefox 6.0.1? Works fine if using Explorer

    Using Firefox 6.0.1 browser and web mail service
    Compose email
    Click Add Attachment
    Select file to be attached
    Click Open File or double click file name
    File does not attach
    I do not have this problem when I use Explorer as the browser
    I do not have this problem with Firefox 3

    ''FredMcD [[#answer-718738|said]]''
    <blockquote>
    ''ajfollack [[#answer-718681|said]]''
    <blockquote>
    Disabling the adobe plugin . . . . did not resolve issue
    </blockquote>
    DO NOT disable old program. REMOVE them.
    Many site issues can be caused by corrupt cookies or cache.
    * Clear the Cache and
    * Remove Cookies<br> '''''Warning ! ! '' This will log you out of sites you're logged in to.'''
    Type '''about:preferences'''<Enter> in the address bar.
    * '''Cookies;''' Select '''Privacy.''' Under '''History,''' select Firefox will '''Use Custom Settings.''' Press the button on the right side called '''Show Cookies.''' Use the search bar to look for the site. Note; There may be more than one entry. Remove '''All''' of them.
    * '''Cache;''' Select '''Advanced > Network.''' Across from '''Cached Web Content,''' Press '''Clear Now.'''
    If there is still a problem,
    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Type '''about:preferences#advanced'''<Enter> in the address bar.
    Under '''Advanced,''' Select '''General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?
    Then restart.
    </blockquote>
    I uninstalled Adobe reader, then did the rest of your suggestions but the problem remains. It is only with 3 emails that get resent daily with slight changes to the text. It is like most of the text has been removed from the email.
    Thanks for the suggestions and advice

  • How to attach a document to an email without embedding it

    When I attach a document or PDF to an email it automatically embeds itself - how do I make the attach?

    If seeing the PDF embedded in the email bothers you, you can select it and right click it. Then select View as icon from the contextual menu. However this affects only your viewing. How the person/people who receive the email is not in your control.

  • How to delete a file on web server without using FTP

    Hi All
    I hv given a facility to a site user to upload some files..
    And an interface to web administrator to view all the files..
    I want to know how can i write a code in JSP which allow the web administrator to delete any of that file which is not of his/her interest through provided interface only.
    OR
    Is it possible to delete a particular file from web server without getting login into FTP account
    Thanx

    new File(strFileName).remove;
    Simply as this.
    Don't forget to import java.io.FileInputStream.

  • How to store PDF file in BLOB column without using indirect datastore

    Hi ,
    I want to store a pdf file in a BLOB column.
    But , it should be a direct store. I cannot usre indirect datastore.
    BLOB column doesn't support indirect datastore. I get the following error.
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10581: indirect datastores cannot be used with long or lob text columns
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 365
    can anyone give me any clue onhow to manage this issue?

    Thanks This really helped.
    For other readers, I am summarising what I did.
    create table test
    id number primary key,
    docs BLOB
    create or replace directory doc_loc
    as 'c:\test';
    CREATE OR REPLACE PROCEDURE Load_BLOB_From_File (file_name in varchar2)
    AS
    src_loc bfile:= bfilename('DOC_LOC',Load_BLOB_From_File.file_name);
    dest_loc BLOB;
    begin
    insert into tkctsf15t values(1,empty_blob()) returning docs
    into dest_loc;
    dbms_lob.open(src_loc,DBMS_LOB.LOB_READONLY);
    DBMS_LOB.OPEN(dest_loc, DBMS_LOB.LOB_READWRITE);
    DBMS_LOB.LOADFROMFILE(
    dest_lob => dest_loc
    ,src_lob => src_loc
    ,amount => DBMS_LOB.getLength(src_loc));
    DBMS_LOB.CLOSE(dest_loc);
    DBMS_LOB.CLOSE(src_loc);
    COMMIT;
    end;
    show errors;
    exec Load_BLOB_From_File('test.pdf');
    exec ctx_ddl.create_preference('mylex','BASIC_LEXER');
    create index testx on test(docs) indextype is ctxsys.context
    parameters
    ('filter ctxsys.AUTO_FILTER LEXER mylex ');
    select id from test where contains(docs,'patch')>0;
    Thanks Roger once more

  • How to attached Two file in Email.

    Dear Friends,
    i have an email optoion in my Application .But right now it send mail with out attchment.i want to send meil with attachment .
    i have Two File browser item to attach file ,Please tell me how can i attach these two file with email
    My Code is
    DECLARE
    l_id number;
    to_add varchar2(1000):=:P1_TO;
    from_add varchar2(1000);
    l_body varchar2(4000):=:P1_DESCRIPTION;
    l_sub varchar2(1000):=:P1_SUBJECT;
    BEGIN
       select email_id into from_add from user_master where user_id=:app_user; 
       l_id:=APEX_MAIL.SEND(
            p_to        => to_add, -- change to your email address
            p_from      => from_add,
            p_body      => l_body,
            P_subj      => l_sub);
      COMMIT;
    apex_mail.push_queue(
    P_SMTP_HOSTNAME => '102.111.0.9',
    P_SMTP_PORTNO => 25);
    commit;
    END;How to attached two file in email .
    How can i do this.
    Thanks

    hI,
    thanks to reply me.
    It's REGARDS .
    eg.
    if i am sending any mail then in Bottom of Email Body My Name and Contact No Should be Display.
    Thanks

  • Hi, I am user iPad and I do not know how can attach a file into email e.g. CV.  Thanks

    Hi,
    I am user iPad and I do not know how can attach a file into email e.g. CV. 
    Thanks

    You attach files within the app that creates the file or within the app that the file is saved. For example you email photos from within  the Photos App itself. Typically there will be an action icon within the app - an arrow icon many times - you tap on that to bring other options like Share - then Email.
    Attachments must be mailed within the apps themselves.

  • How do i attach a file to an email as an attachment and not embeded in the message?

    how do i attach a file to an email as an attachment and not embeded in the message?

    This question has been asked and answered several times already.
    Any file attached to an e-mail message is an attachment. There is no other possibility -- the mail protocol does not allow it.
    However, different e-mail clients may have different ways of displaying or viewing attachments, depending on their settings and the type of file attached.
    If you're having problems with Windows users complaining about your messages, follow these instructions
    <http://docs.info.apple.com/article.html?path=Mail/4.0/en/9965.html>

  • How do I attach a file to an email which is already open on the iphone5?

    How do I attach a file to an email which is already open on the iphone5?  ie I have already opened an email and started typing it.  How do I simply attach a photo to the email?

    Go to the Photos App, select a photo and then select Copy from the Share icon (box with arrow).
    Return to Mail and paste the photo where you want it.

  • How to attach a file (PDF etc.) to an email?

    Hi
    I need to attached a file to an email, how do I do this does anyone know?
    Files such as pictures, pdf etc.

    Until a week ago I was using an 18 mth old HTC3600 with Windows Mobile. I had a bunch of files stored on the 2Gb SD card that I'd send clients... pdf, word, ppt, excel... using a standard POP email with Windows Mobile settings to send/receive every 30 min via 3G. I could also receive emails with an attachment, then bluetooth it to my laptop to read. I cant do any of this basic stuff with the iPhone. Unless the method is that different that I can't see it, the iPhone is no good for business on the go... especially considering I cant sync my tasks from Outlook 2007 either! Help, somebody... anybody!!!

Maybe you are looking for

  • DELL 2713 USB hub Issue on MacBook Pro Retina 15

    Hello, I have a new MacBook pro retina 15" and Dell 2713 monitor. the Dell works fine with the MacBook with supplied DP cable. BUT the USB hub doesn't work, the monitor is connected to the computer with original dell usb 3.0 cable. Note: on PC & win7

  • Can I connect the 24" LED to a PowerBook G4?

    Can I connect the 24" LED to a PowerBook G4?

  • Repeatedly getting error 7 (windows error 5)

    hi, We keep getting the above message when trying to install iTunes. We have followed the instructions in similar posts (i.e. deleting a heap of things, restarting computer, then downloading) but it still happens. The last time it went through the wh

  • Value from Previous Date

    Hey guys, I'm new to this discussion board and quite new to BI and MSSQL. Currently I have to solve a problem for homework in university and I don't know how to do it. I have to build reports using Excel PowerPivot with Data out of MS SQL Server 2008

  • Mount/fstab option 'nobootwait'

    Hi! I recently sitched from Ubuntu to Archlinux. In Ubuntu it is possible to use the mount option "nobootwait" in the /etc/fstab to tell the system that it does not have to report an error is the partition could not be found. This has the advantage t