Sending mails with attachments using oracle 8i

Hi,
Could anybody please send a sample code for sending mails
with attachments using oracle 8i.
Thanks in advance

For oracle8i there is an example package from OTN:
http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html
You have to re-write the package a bit to work it with BLOBs instead of RAW attachments, but that should be no problem
Hop this helps,
Michiel

Similar Messages

  • How to send mail with attachments - ALBPM 5.7

    Hi All,
    I am new to BPM,
    Someone could help giving me a example of Send Mail with attachments in Aqualogic Studio 5.7?
    thanks,
    Renata

    nombrefichero="C:\\Temp\\test.doc"
    subject as String="Subject"
    message as String="Message"
    mailAttachment = Fuego.Net.MailAttachment(source : BinaryFile.readToBinaryFrom(name : nombrefichero), fileName : "test2.doc")
    mailAttachments[0] = mailAttachment
    correo as Mail
    correo.attachments = mailAttachments
    correo.contentType = "text/html"
    send correo
    using from = "[email protected]",
    recipient = "[email protected]",
    subject = subject,
    message = message

  • Receiving mail, but can't send mail with attachments?

    Hello,
    I can't send mails anymore, I have been able to send some without any attachments (i.e. reply doesn't work as it automatically attaches the original text). This started 3 days ago. Also, my mail doesn't seem to recognize powerpoint and word docs., but I a know the people who have send me such files do not have VISTA. When I choose "open with" then it works. So I have 2 problems, one being moe urgent then the other.
    1) can't send mail with attachments
    2) .doc (word), .pps (powerpoint)attachments are not always recognized.
    thank you all!!!

    Try going into Settings > Mail, Contacts, Calendars > select the account > account name , tap on SMTP (under the 'Outgoing Mail Server' heading) and then tap on your Primary Server and try entering your email account and password and see if it then works

  • Problem sending mail with attachments???

    Hi Everybody,
    I have got a problem sending mail with attachments...
    I am able to send a plain mail ... but when i am trying to send mail along with an attachment ... its not being sent....
    its not showing any error it is simply hanging...
    what should i do?
    If u know any solns please do suggest me....
    Thanks in advance

    activation.jar is already there...
    initially i wrote a swing program as a front end and it was working abs fine... in my sense it was properly sending mails along with the attachments...
    when i changed the front-end to JSP handled by Servlets i am getting a problem...
    and even the swing program stopped working ...
    now swing program is getting compiled but it is hanging at run time showing an exception "Exception occured during event dispatching"
    i dont understand what probably may be the problem...
    if u can trace out, please give me any suggestions
    Thanks in advance and regards

  • Iphone - cant send mails with attachments

    Hi,
    We run exchange 2007 & I have my account setup on my iphone but mails with attachments wont send they just sit in the outbox. Now other users in job have nokia E63 which they can send attachments without problems.
    Both would use activesync but presume maybe in a different way & that i just might need to make some change on exhange.
    Anyone have any ideas?

    Turns out a couple of components of AVG were causing the problem. Please see http://www.avg.com/us-en/faq?num=3254#tba7

  • Encoding problem when forwarding mails with attachments using exchange account

    Hi,
    I'm facing a special misbehaviour of mail. Scenario: With Apple Mail 7.2 I would like to forward an exchange mail with attachments. The mail is wirtten in german and uses german special characters like äüöÄÖÜ. During editing the mail everything is ok which means all characters are shown in thte correct way. When I send the mail, something magic must happen in the background.
    When I look in the sent mail folder and open the mail, all special characters are show as "?". Must be an encoding problem, I gues but I don't know how to fix it.
    When I send exactly the same mail with another Apple mail account (non exchange), there is no problem. So I assume it has something to do with handling exchange accounts under Apple mail.
    Any idea to solve this issue? Thanks in advance.
    Br,
    Jakob

    This is a know issue with Yahoo! Email on the iPhone. When sending email, sometimes it will say it has been sent, while it really has not (and it will not show up in the sent folder).
    It has been discussed quite a bit in the forums, so a search will turn up a lot of discussion, but no solid solution. Some say Yahoo is working on a fix, other that Apple is.
    The most common solution (which is usually temporary), is to either reboot your phone, and/or delete and reinstall your Yahoo! Mail account on your phone.

  • Cannot send mail with attachments-plain mail its ok. Any ideas?

    Out of the blue I cannot send e-mails with attachments (any kind). Mail without attachments go out without problems.
    Very weird.
    I have an iMac, mac mail 5.2. and Lion.
    Please help.
    Thanks

    Perhaps the mail server has a size limit that it allows. Might try a free web service and see if that will work for those attachments.

  • How to send e-mails with attachments using microsoft exchange servers?

    I was wondering if there was a way to send e-mails with attached data files.  The e-mail server utilizes a Microsoft Exchange Server.  I would appreciate any help that is provided.

    What version and type of development system of LabVIEW do you have. You have the SMTP Email Send File and SMTP Email Send Multiple Attachments in all except the base package.

  • Sending FAX with attachments using in RightFax

    Hi,
    We are in CRM 7. and sending Fax using  RightFax - Rightfax through SMTP/SAP Connect configured.
    In case the outgoing Email in format html – attachment not sending through RightFax
    (Mail document class is MHT)
    I can see the mail with the attachment in SOST
    In case the outgoing Email in format text – attachment sent correcty.
    )Mail document class is RAW)
    It’s probably related to mail document class,
    But I didn’t  figure it out.
    Thanks,
    Liat

    For oracle8i there is an example package from OTN:
    http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html
    You have to re-write the package a bit to work it with BLOBs instead of RAW attachments, but that should be no problem
    Hop this helps,
    Michiel

  • Mail doesn't send mails with attachments 1Mb

    Hi,
    I'm using Mail with a ManagedExchange account. Before Snow Leopard I was using Entourage 2008.
    Everything seems to work fine. Except sending of larger files fails.
    Every time I send a mail which is approx. <1Mb Mail starts transmitting data (see it via Little Snitch 2.2b) and stops after a while doing nothing anymore. The mail stays in the outbox, and the moving circle which indicates that a folder is being synchronized appears endless. No other mails are going out then. After a while I get a message that my email couldn't be sent via my mail server. And the connection failed. And I can choose another mail server if I would have any. Entourage doesn't have that problems. So the connection seems to be fine. Small attachments are no problem.
    What's the problem?
    Regards,
    OberMufti

    I'm getting a similar problem. Snow Leopard Mail for me seems to be choking on large attachments - sending them, forwarding them, or even moving them from one IMAP folder to another.
    My mails are getting through, but it takes a long time and they are dragging the whole system to a crawl in the process.

  • Geary cannot send mail with attachments

    I've been using Geary, a mail client, and I've never been able to send any mail containing attachments. The same mail, meanwhile, gets through if I use Thunderbird. The exact messages which Geary posts if I run it through a terminal are:
    ** Message: smtp-client-session.vala:80: Unable to QUIT: Error writing data to TLS socket: The specified session has been invalidated for some reason.
    ** Message: smtp-client-session.vala:88: Unable to disconnect: Unable to shutdown socket: Transport endpoint is not connected
    These two messages keep repeating. There is no problem with mails not containing attachments. Has anyone else had the same problem? Or is this a bug I should be reporting upstream?

    Perhaps the mail server has a size limit that it allows. Might try a free web service and see if that will work for those attachments.

  • Send email with attachments from oracle procedure

    This is my procedure
    CREATE OR REPLACE PROCEDURE send_parvo_email IS
    v_header varchar2(200);
    v_file UTL_FILE.FILE_TYPE;
    v_count Number;
    v_letter Varchar(50);
    req UTL_HTTP.REQ;
    req1 UTL_HTTP.REQ;
    resp UTL_HTTP.RESP;
    resp1 UTL_HTTP.RESP;
    url VARCHAR2 (2000);
    url1 VARCHAR2 (2000);
    val varchar2(4000);
    val1 varchar2(4000);
    p_start_date DATE;
    p_end_date DATE;
    v_shipment_id varchar2(30);
    --v_start_date  DATE;
    --v_end_date DATE;
    Cursor C1 is select shipment_id
    from ship_hdr
    where trunc(create_time) = trunc(sysdate);
    BEGIN
    v_letter := 'r_parvo_b19_rpt';
    select trunc(sysdate-7),trunc(sysdate-2)
    into p_start_date,p_end_date
    from dual;
    Open C1;
    Fetch C1 into v_shipment_id;
    Close C1;
    save_parvo_email;
    UTL_HTTP.SET_PROXY (null,null);
    url :=
    utl_url.ESCAPE
    ( 'http://hbc-maroon.heartlandbc.org/reports/rwservlet?userid=test/[email protected]&subject="Parvo Testing Report"&destype=mail&FROM=[email protected]&desname=[email protected]&desformat=PDF&ENVID=QA&report='||v_letter||'&start_date='||p_start_date||'&end_date='||p_end_date);
    req := UTL_HTTP.BEGIN_REQUEST (url);
    UTL_HTTP.SET_HEADER (req, 'User-Agent', 'Mozilla/4.0 Oracle');
    resp := UTL_HTTP.GET_RESPONSE (req);
    UTL_HTTP.READ_LINE (resp, val, TRUE);
    UTL_HTTP.END_RESPONSE (resp);
    Update ship_dtl
    set shipment_printed = 'Y'
    where shipment_printed is null
    and trunc(coll_date) between p_start_date and p_end_date;
    commit;
    END;
    This works fine and sends email with the report as attachment. The attachment is report_name.pdf. I want to change this attachment to be named as shipment_id.pdf. Is this possible and how?
    If there is any other method to sent email with attachments . ie run the report and attach the report to the email not as report_name.rdf but shipmenmt_id.rdf

    This is my procedure
    CREATE OR REPLACE PROCEDURE send_parvo_email IS
    v_header varchar2(200);
    v_file UTL_FILE.FILE_TYPE;
    v_count Number;
    v_letter Varchar(50);
    req UTL_HTTP.REQ;
    req1 UTL_HTTP.REQ;
    resp UTL_HTTP.RESP;
    resp1 UTL_HTTP.RESP;
    url VARCHAR2 (2000);
    url1 VARCHAR2 (2000);
    val varchar2(4000);
    val1 varchar2(4000);
    p_start_date DATE;
    p_end_date DATE;
    v_shipment_id varchar2(30);
    --v_start_date  DATE;
    --v_end_date DATE;
    Cursor C1 is select shipment_id
    from ship_hdr
    where trunc(create_time) = trunc(sysdate);
    BEGIN
    v_letter := 'r_parvo_b19_rpt';
    select trunc(sysdate-7),trunc(sysdate-2)
    into p_start_date,p_end_date
    from dual;
    Open C1;
    Fetch C1 into v_shipment_id;
    Close C1;
    save_parvo_email;
    UTL_HTTP.SET_PROXY (null,null);
    url :=
    utl_url.ESCAPE
    ( 'http://hbc-maroon.heartlandbc.org/reports/rwservlet?userid=test/[email protected]&subject="Parvo Testing Report"&destype=mail&[email protected]&[email protected]&desformat=PDF&ENVID=QA&report='||v_letter||'&start_date='||p_start_date||'&end_date='||p_end_date);
    req := UTL_HTTP.BEGIN_REQUEST (url);
    UTL_HTTP.SET_HEADER (req, 'User-Agent', 'Mozilla/4.0 Oracle');
    resp := UTL_HTTP.GET_RESPONSE (req);
    UTL_HTTP.READ_LINE (resp, val, TRUE);
    UTL_HTTP.END_RESPONSE (resp);
    Update ship_dtl
    set shipment_printed = 'Y'
    where shipment_printed is null
    and trunc(coll_date) between p_start_date and p_end_date;
    commit;
    END;
    This works fine and sends email with the report as attachment. The attachment is report_name.pdf. I want to change this attachment to be named as shipment_id.pdf. Is this possible and how?
    If there is any other method to sent email with attachments . ie run the report and attach the report to the email not as report_name.rdf but shipmenmt_id.rdf

  • Sending mails with attachments is sending some parts in HTM format

    I have configured my ME account to Apple Mail. When I send an email with first some text, then i add an picture under the text, and after the picture i add some more text. Then i send the mail to someone.
    When that person opens the mail in Outlook on Windows for example, the first text that i typed above the picture is visible in the mail, the picture is added as an jpg attachment, but the text that i typed under the picture is always added in a HTM file
    So they don't see the whole mail, only the first end until the picture, the rest is an HTM attachment.
    It happens with mails send with Mobile Me, but also with other POP3 accounts.
    I already tried to change EDIT - ATTACHMENTS - SEND AS WINDOWS ATTACHMENTS and ATTACHMENTS AT END OF THE MAIL
    Both settings doesn't work.
    Please HELP!!

    I was troubleshooting my own issue noted above and tried to send the attachments via gmail's web interface (bypassing Apple Mail). This time, gmail provided an error message stating that the file contained a virus.
    Since it was a zip of several Word docs, I saved them as PDFs and then rezipped, and Apple Mail sent them off like a champ.
    Evidently, Mail does not have a method for relaying the precise nature of the error message that gmail sends (in this case that the attachment had what gmail thought was a virus). This would be a prime area for some software developers to tackle on a future version of Mail.
    By the way, the files almost certainly do not contain viruses; they are extremely old Word Docs that have been on my successive Mac hard drives for at least 9 years. Too old a format for gmail to recognize?
    Hope this helps someone who may be having the same trouble.

  • Send mail with attachments

    I downloaded a code from-
    http://www.stardeveloper.com/articles/display.html?article=2001101101&page=1
    it has four files: three files are ok. but there is one bean file.
    MailerBean.class
    package com.stardeveloper.bean.test;
    import java.io.*;
    import java.util.*;
    import javax.mail.*;
    import javax.mail.event.*;
    import javax.mail.internet.*;
    public final class MailerBean extends Object implements Serializable {
         /* Bean Properties */
         private String to = null;
         private String from = null;
         private String subject = null;
         private String message = null;
         public static Properties props = null;
         public static Session session = null;
         static {
              /*     Setting Properties for STMP host */
              props = System.getProperties();
              props.put("mail.smtp.host", "mail.yourisp.com");
              session = Session.getDefaultInstance(props, null);
         /* Setter Methods */
         public void setTo(String to) {
              this.to = to;
         public void setFrom(String from) {
              this.from = from;
         public void setSubject(String subject) {
              this.subject = subject;
         public void setMessage(String message) {
              this.message = message;
         /* Sends Email */
         public void sendMail() throws Exception {
              if(!this.everythingIsSet())
                   throw new Exception("Could not send email.");
              try {
                   MimeMessage message = new MimeMessage(session);
                   message.setRecipient(Message.RecipientType.TO,
                        new InternetAddress(this.to));
                   message.setFrom(new InternetAddress(this.from));
                   message.setSubject(this.subject);
                   message.setText(this.message);
                   Transport.send(message);
              } catch (MessagingException e) {
                   throw new Exception(e.getMessage());
         /* Checks whether all properties have been set or not */
         private boolean everythingIsSet() {
              if((this.to == null) || (this.from == null) ||
                 (this.subject == null) || (this.message == null))
                   return false;
              if((this.to.indexOf("@") == -1) ||
                   (this.to.indexOf(".") == -1))
                   return false;
              if((this.from.indexOf("@") == -1) ||
                   (this.from.indexOf(".") == -1))
                   return false;
              return true;
    }1. Do i have to give some protocol names.
    2. If so how do i find them.
    3. I want to send mail from our intranet.(company).
    4. I am using NetBeans 5.0. it is asked to save the bean file in a folder in web-inf\classes. but i dont have classses in that folder. Also i dont have libraries folder. Do I have to change any settings?
    5. How can i create class for this bean file. If i save it in web-inf, it says u can not save it there and saves it in source packages. What shall i do.

    (You found all the free sample source code that's included with JavaMail, right?)
    You probably don't need to specify any protocol names, the defaults should work.
    You will have to set the properties appropriately for your environment, however.
    You'll want to handle this class just like any other Java source file in your
    web application. Usually such files are compiled and the resulting class
    file ends up in WEB-INF/classes.

  • Sending mail with BPEL - using GMail account

    Tried to send an email via BPEL. I use my Gmail Account - which I've setup to use POP for outgoing mail.
    I've changed the settings in ns_emails accordingly:
    <EmailAccounts xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"
         EmailMimeCharset=""
         NotificationMode="EMAIL">
         <EmailAccount>
              <Name>Default</Name>
              <GeneralSettings>
                   <FromName>readsoft.consit</FromName>
                   <FromAddress>[email protected]</FromAddress>
              </GeneralSettings>
              <OutgoingServerSettings>
                   <SMTPHost>smtp.gmail.com</SMTPHost>
                   <SMTPPort>465</SMTPPort>
                   <AuthenticationRequired>true</AuthenticationRequired>
                   <UserName>[email protected]</UserName>
                   <Password>my_password_in_clear_text</Password>
                   <UseSSL>true</UseSSL>
              </OutgoingServerSettings>
              <IncomingServerSettings>
                   <Server>pop.gmail.com</Server>
                   <Port>999</Port>
                   <Protocol>pop3</Protocol>
                   <UserName>readsoft.consit</UserName>
                   <Password ns0:encrypted="false" xmlns:ns0="http://xmlns.oracle.com/ias/pcbpel/NotificationService">my_password_in_clear_text</Password>
                   <UseSSL>true</UseSSL>
                   <Folder>Inbox</Folder>
                   <PollingFrequency>1</PollingFrequency>
                   <PostReadOperation>
                        <MarkAsRead/>
                   </PostReadOperation>
              </IncomingServerSettings>
         </EmailAccount>
    But when I check the domain.log and it states that it still doesn't work:
    Domain.log:
    Notification via voice, fax, SMS, IM or pager will be sent.
    Emails will be sent with the current settings. If you would like to enable them, please configure accounts in ns_iaswconfig.xml and then set the NotificationMode attribute in ns_emails.xml to either NONE, EMAIL or ALL.
    Should I change somethin in iaswconfig.xml - and if yes - what?
    Rgds, Henrik

    Hi, Henrik:
    Please check out this post:
    Problem in sending Email notification from BPEL
    You need to get the right parameters of your Email server.(I also have a try of gmail server, it doesn't work. But my other email can take affect. So you can change another mail to have a try)
    Thanks,
    Melody

Maybe you are looking for

  • Looking For App to Sync Calendar

    Good evening. This is my first go round with a blackberry so I am new to all this.  I am tired of having a desktop calendar, paper calendar, and the calendar that is on my 8300.  I am looking to find a program that I can plug all my events, meetings,

  • How to create a schedule to run once?

    I am having some problems getting a schedule to run only once. If I leave the repeat_interval empty, the schedule does not run at all. The documentation explains all the options for setting the repeat frequency, but it does not explain how to run it

  • How can I set download restrictions on a web page ?

    how can I set download restrictions on a web page ? I mean: to make a web site with text and pictures but in a way that the visitors cannot download the pictures or text ? Is it possible ? Thanks

  • Permanantly removing vendor from sap which are set for deletion flag

    Hai Pals, I want step by step explanation of how to delete vendors which are marked for deletion.I have check the forum & got only transaction code SARA & Archiving object FI_ACCPAYB.I dont know hau to proceed further please give some explanation to

  • Exception in method

    Hi Friends, The method which posts FI document throws an exception. Its shows an application error. Doc is still in parked status though the w/f is completed. How can we handle such error ?  Please advice. Regards, Vittalprasad