Configuring a custom fax cover page to send via SMTP

Hi,
Does anyone know how we can configure  a custom fax cover page in the case of sending fax via SMTP, for instance in the process of sending the payment advice, associated with transaction F110? I have a situation where a fax cover page that clearly was developed (maybe SAPSCRIPT) is being sent along with the document (wich was created as an attachment to the email), but don´t understand where it came from and i want to inhibit it from being sent.
Thanks,
Bruno

Hi Hasan,
I have similar requirement. I see your post is pretty old and hope you would have found the solution at that time.
Could you please share it with me?
Thanks
Puneet

Similar Messages

  • Attach Custom Fax Cover  Page using Object class Cl_BCS

    Hello,
    Scenario: To attach a custom fax cover page to the faxing functionality. The standard fax cover page is not needed.
    Method Used: Fax is initiated in the ABAP code via the function module SO_NEW_DOCUMENT_ATT_SEND_API1
    had to change the code to use object class CL_BCS , because of the subject line length limitation.
    I want to get rid of the SAP standard cover page that gets generated and attach a custom cover page
    By applying SAP OSS Note 553113 - I am able to deactivate the standard fax cover page.
    But I haven't found a way of attaching a custom fax cover page(not sure what the original SApscript layout is)
    else would have modified the same.
    Any help in the matter would be appreciated.
    Thanks for your help.
    Almas.

    Hi Hasan,
    I have similar requirement. I see your post is pretty old and hope you would have found the solution at that time.
    Could you please share it with me?
    Thanks
    Puneet

  • SAP R/3 4.7 custom Fax Cover Page default setting in Workplace Fax Entries

    How can we implement a custom Z form SAP fax cover page as the default fax cover page in SAP workplace, it makes you enter the Z form name in fax cover page entries when we tested it each time you do a fax, Iu2019m sure the users arenu2019t going to want to do that.   Research Iu2019ve done on SAP seems to say you change the Default SAP fax cover page form in transaction SO41 the OFFICE-TELEFAX form which had the From: company name and address hardcoded with SAPu2019s German company name and address which we don't want to use.

    We decided to use Z fax cover created from OFFICE-TELEFAX and when you enter the Z fax cover name in fax detail entries it keeps the entry in field in SBWP we've found so you don't have to retype it in and we hardly do any user controlled fax of reports right from SAP, mostly email of reports they do thru SBWP SAP Office.  And auto fax, auto email of documents with NACE records thru SCOT, SOST transaction to an Esker Deliveryware fax server.

  • Don't want to send Fax Cover page

    Hi Gurus,
    When we send Dunning letter and Customer Statement by Fax it's printing Fax cover page. We don't need fax cover page to be send out.
    Can you please advise me on what settings needed to stop faxing Fax cover pagee for Dunning and Customer Statement?
    Thanks in advance

    Is it the SAP default fax cover page or from your fax server.  If it's SAP 4.7 you can look for the SAP Note that shows how to stop using the fax cover page.  Or if you are manually faxing with SAP Workplace you can uncheck the Fax cover page setting in Go to fax entries screen each time.

  • SAPSCRIPT Fax cover Page

    Hi All,
            This is About Medruck Transaction.
            I want to print a Fax Cover page. I have used Command 'Cover Auto', However I want to Add Purchase Order Number to the Fax Cover Page. How do I see the Auto Template OR How do I add PO Number to the Fax cover Page that gets printed when we create a PO.
    Thanks in Advance

    Hi This Link is still Active. Please Revert back for the Query

  • Custom fax cover sheet

    Hello,
    My scenario is this:
    I need to send a custom smartform or sapscript cover sheet in the same output process of faxing smartform PO's, Quotations, Invoces and several other documents.  I don't see anywhere in configuration where something like this can be done.  Does anyone have any ideas on how to accomplish this?
    Thank you,
    JR

    Time for a little give-back from me....
    Having just worked on this same issue and not finding a solution from SDN (which was unusual) I thought I'd better let you know what I have found..
    Transactions SO41,SO42 and SO43 show the default SAP fax cover sheets.
    They are kept in client 000 and you need to use SE71 (SAPScript forms) to copy the required form (and rename to Z...), then you are free to modify it as required (Add a logo etc).
    Make sure you classify the form as a SAP office form, there are instructions for doing this in the SAP library.
    You can test it in SO01 without sending the fax anywhere, create a fax to recipient GB 1234567 or any other fake number, double click on the sender and you will get a popup of the fax details (sender info, receiver info and the cover sheet to use).
    or you can use SO_OBJECT_SEND, make sure the recevicers-recextnam field is populated using the SADRFD structure.
    and here's the subroutine I use to send a list as a fax with a custom cover sheet :
    and below that is a similar subroutine to send emails...
    *&      Form  send_fax
       Send Fax of internal table GT_MAIL_LINES TYPE soli
    FORM send_fax using my_company_name TYPE name1_gp.
      DATA: ls_object_hd TYPE  sood1,
            ls_receivers TYPE  soos1,
            lt_receivers TYPE STANDARD TABLE OF soos1,
            l_lines      TYPE  i,
            ls_sadrfd    TYPE sadrfd.
      CLEAR:  ls_object_hd, ls_receivers.
      REFRESH lt_receivers.
      ls_object_hd-objla  = sy-langu.
      ls_object_hd-objnam = 'NOTE'.
      ls_object_hd-objdes = 'Fax subject line in here'.
    Calculate size of table
      DESCRIBE TABLE gt_mail_lines LINES l_lines.
      READ TABLE gt_mail_lines INDEX l_lines INTO gs_mail_lines.
      ls_object_hd-objlen = ( l_lines - 1 ) * 255 + STRLEN( gs_mail_lines ).
    Set Fax control structure
    Fax number in structure must have no leading zero
    as this is added by SAPOffice from the country code
      ls_sadrfd-rec_fax = gs_address-fax.
      shift    ls_sadrfd-rec_fax left deleting leading '0'.
      condense ls_sadrfd-rec_fax no-gaps.
      ls_sadrfd-rec_street = gs_address-street.
      ls_sadrfd-rec_town   = gs_address-city.
      ls_sadrfd-rec_name1  = gs_address-name.
      ls_sadrfd-rec_state  = gs_address-country.
      ls_sadrfd-form_langu = gs_address-langu.
      ls_sadrfd-fax_form   = 'Z_FAX_COVER'.
      ls_sadrfd-send_comp  = my_company_name.
      ls_sadrfd-send_immi  = 'X'.
      IF ls_sadrfd-form_langu is initial.
        ls_sadrfd-form_langu = sy-langu.
      endif.
      ls_sadrfd-send_nam = sy-uname.
      ls_sadrfd-send_date = sy-datum.
      ls_sadrfd-send_time = sy-uzeit.
    Convert Receiver information to char field
      CALL FUNCTION 'C147_WORKAREA_TO_CHARFIELD'
        EXPORTING
          I_WORKAREA  = ls_sadrfd
        IMPORTING
          E_CHARFIELD = ls_receivers-recextnam.
      ls_receivers-recesc = 'F'.
      ls_receivers-mailstatus = 'E'.
      ls_receivers-sndart = 'FAX'.
      ls_receivers-sndpri = '1'.
      APPEND ls_receivers TO lt_receivers.
    Send fax
      CALL FUNCTION 'SO_OBJECT_SEND'
        EXPORTING
          object_hd_change = ls_object_hd
          object_type      = 'RAW'
          owner            = sy-uname
          originator       = g_originator
          originator_type  = 'B'
        TABLES
          objcont          = gt_mail_lines
          receivers        = lt_receivers
        EXCEPTIONS
          OTHERS           = 01.
    The function doesn't commit so we must
    do it if successful.
      IF sy-subrc = 0.
        COMMIT WORK AND WAIT.
      ELSE.
        WRITE: / 'Fax failed RAISE ERROR '(012).
      ENDIF.
    ENDFORM. "send_fax
    *&      Form  send_email
       Send Email of internal table GT_MAIL_LINES
    FORM send_email USING      pi_email_address TYPE ad_smtpadr.
      DATA: ls_object_hd        TYPE  sood1,
            ls_receivers        TYPE  soos1,
            lt_receivers TYPE STANDARD TABLE OF soos1,
            l_lines      TYPE  i.
      CLEAR:  ls_object_hd, ls_receivers.
      REFRESH lt_receivers.
      ls_object_hd-objla  = sy-langu.
      ls_object_hd-objnam = 'NOTE'.
      ls_object_hd-objdes = 'Email title in here'.
    get size of text table to be sent
      DESCRIBE TABLE gt_mail_lines LINES l_lines.
      READ TABLE gt_mail_lines INDEX l_lines INTO gs_mail_lines.
      ls_object_hd-objlen = ( l_lines - 1 ) * 255 + STRLEN( gs_mail_lines ).
      ls_receivers-recextnam = pi_email_address.
      ls_receivers-recesc = 'E'.
      ls_receivers-mailstatus = 'E'.
      ls_receivers-sndart = 'INT'.
      ls_receivers-sndpri = '1'.
      APPEND ls_receivers TO lt_receivers.
    NB: G_originator is a SAP user ID with the email address that you want any
    replies to go to - its useful to have this not as sy-uname so any replies can go to
    a central email address like [email protected]
      CALL FUNCTION 'SO_OBJECT_SEND'
        EXPORTING
          object_hd_change = ls_object_hd
          object_type      = 'RAW'
          owner            = sy-uname
          originator       = g_originator
          originator_type  = 'B'
        TABLES
          objcont          = gt_mail_lines
          receivers        = lt_receivers
        EXCEPTIONS
          OTHERS           = 01.
      IF sy-subrc = 0.
        COMMIT WORK AND WAIT.
      ELSE.
        WRITE: / 'Email failed RAISE ERROR '(010).
      ENDIF.
    ENDFORM.                    " send_email

  • Upgraded to Lion, now Apple Mail no longer sends via SMTP to GMAIL

    Greetings! First and foremost, THANK YOU for reading this discussion.  I truly appreciate any and all assistance. Being one who likes to exhaust all resources before posting, I have literally spent that last 7 and a half hours reading pages and pages of threads here, on Google Forums along with finding other data across the net.
    The problem started immediately upon the LION upgrade.   Everything worked fine until the upgrade and then BOOM...no more Apple Mail sending to Gmail SMTP server.  I can receive Gmail just fine, but no can send.When a message is sent, after a long while, an error message pops up stating that the SMTP server is "off line."  Obviously it is timing out.
    I have confirmed the settings in Preferences.  I have cleaned the hard drive (running the internal First Aid app).  I confirmed the password was correct in KeyChain.  I have tried a lot of corrective methods as stated in the threads.
    I have tried using different ports (25, 465, 587).  I have set the connection from smtp.gmail.com to actual IP addresses including the following:
    209.85.227.109
    74.125.91.109
    74.125.39.16
    74.125.157.109
    74.125.113.109
    173.194.68.109
    I tried it with and without TLS/SSL enabled.
    With authentication and without.
    I even tried to telnet from the Mac to smtp.gmail.com without success.  (I can telnet from a Windows machine though...OUCH)
    I am NOT running LION OS X server, just plain old LION OS 10.8.2 on my MacBrook Pro.
    Thank you in advance for any and all courtesies extended.  Looking to resume using Apple Mail with my Gmail account ASAP.
    Sincerely,
    MWG2  

    Thanks Lanny...tried it...still doesn't work.  Called Apple Support...switched to Tier 2 support person Chris P. Was on the phone with him for 2 hours and 38 minutes...we tried everything under the sun...still can't get to smtp.gmail.com...can't even telnet to it from Mac.  We did network testing too...he thought my router was blocking ports 25, 465 & 587 but the router wasn't. After exhausting every concievable MAC setting, trying a number or solutions, killing the account and re-installing multiple times, his conclusion is that there is a third party software "blocking" the send in gmail...ummmmm...makes no sense to me as everything worked perfectly until I upgraded to OS X. Hence his solution is for me to take my Mac to the Apple Store and have them look at it.  My solution?  Don't use mail on the Mac and keep using Mail on my Windows machine.  I prefer Mac, but I have now spent over the last two days in excess of 10 hours on this problem...it's not supposed to be this difficult. Lesson Learned...if something's working, DON'T goof with it...Apple Mail under Snow Leopard worked perfectly...upgraded to Mt. LION (paid for it) and now I am really paying the price for doing that.   

  • Mail app refusing to send via smtp

    Hi there i was wondering if anyone could help me. i have been using mail app for collecting my aol mail as well as sending. i have awoken one morning to find that it can no longer send mail and it keeps asking me to change the SMTP settings.
    I conect to my router through airport as does my fiance on our iBook G4. the iBook is configured exactly the same as the iMac and has no problems connecting to aol accounts, as well as sending and recieving mail.
    any ideas?

    I'm just posting my solution to help others.

  • Acronis True Image Notifications sending via SMTP

    Sometime after 2/23 multiple devices stopped sending backup notifications due to some change at Verizon on the SMTP server. I am starting to believe it is related to phasing out of weaker SSL ciphers.I say this because I attempted to use gmail and received a blocked attempt due to an "older application". I overrode the gmail security settings and now it works but the thought of changing every backup job on every PC is just ridiculous. Other applications can send notifications. I cannot afford to upgrade 10+ licenses of Acronis because Verizon changed settings.
    Anyone have ideas of how to work around or fix this?
    Or why Verizon would make changes and not let anyone know?

    > Hello again Berga
    >
    > Really sorry to trouble you again, but I've been in
    > touch with Acronis support again and they are trying
    > to trace the solution they did for you, and have
    > asked me if I know the support reference number that
    > you had on your emails from them. If you still have
    > it that would be really great.
    >
    > Thanks a lot
    Hi, no problem.
    I have all the emails, from and to the Acronis, but the only reference
    that can be useful is the follow:
    ----- Original Message -----
    > From: "Acronis Customer Service Department" <[email protected]>
    > To: <[email protected]>
    > Sent: Tuesday, January 17, 2006 1:17 PM
    > Subject: [Acronis #461748] RE: Acronis: Please confirm your wish to create
    > an account
    Thank you for taking the time to contact us.
    > > --
    > > Best regards,
    > > Artem Khalitov
    I hope will be useful for you.
    Bye. Berga

  • How to ZIP file and send via SMTP in Oracle

    Dear All,
    I want to send data every month via email where the data i got from view.
    The problem is the file is to big, so i should zip it.
    the question is How i can perform it with procedure and send it automatically via Job every 1st month
    what i've done was i create a procedure to make the file in zip
    [quote/]
    CREATE OR REPLACE PROCEDURE production.CREATE_EXCEL_DTKPITerminate IS
        vvrun varchar2(3000);
        vsender varchar2(100);
        vrecepient varchar2(100);
      vccrecipient varchar2(1000);
        vsubject varchar2(1000);
        vmessage long;
        v_loc varchar2(5);
       NAME:       CREATE_EXCEL
       PURPOSE:
       REVISIONS:
       Ver        Date        Author           Description
       1.0        10/15/2012          1. Created this procedure.
       NOTES:
       Automatically available Auto Replace Keywords:
          Object Name:     CREATE_EXCEL
          Sysdate:         10/15/2012
          Date and Time:   10/15/2012, 9:42:40 , and 10/15/2012 9:42:40
          Username:         (set in TOAD Options, Procedure Editor)
          Table Name:       (set in the "New PL/SQL Object" dialog)
    begin
       vsender := '[email protected]';
         vrecepient := '[email protected]';
      vccrecipient := '[email protected]';
         vsubject := 'KPI Terminate'||TO_CHAR(SYSDATE,'MM-YYYY');
         vmessage :=
            'MESSAGE .';
         as_xlsx.query2sheet('
         select cmp_company,emp#,name,class,goucode,goudesc,job,job_name,tglkeluar
                ,nac_seq,nac_code,nac_type,nac_begin,nac_desc,reason,reason_code
                from V_KPITerminate
         --insert into blobs(blob_id,blob_name)
         --values (1,as_xlsx.finish);
         SEND_SMTP_PUZZLE_DTKRY(vsender,vrecepient,vccrecipient,vsubject,vmessage,as_xlsx.finish,'DataKPITerm -'||to_char(sysdate,'yyyy')||'.zip');
      --as_xlsx.save( 'BASE_DIR3', 'SWT.xls' );
    end;
    [/quote]
    when i execute this, Error ocured
    Message       : ORA-29278: SMTP transient error: 421 Service not available
    ORA-06512           : at "SYS.UTL_SMTP", line 21
    ORA-06512           : at "SYS.UTL_SMTP", line 97
    ORA-06512           : at "SYS.UTL_SMTP", line 399
    ORA-06512           : at "PU22PROD_123.SEND_SMTP_PUZZLE_DTKRY", line 151
    ORA-29294           : A data error occurred during compression or uncompression.
    ORA-06512           : at "PU22PROD_123.CREATE_EXCEL_KPITERM", line 60
    ORA-06512           : at line 2
    cann anyone help?
    the data is too big so i prefer it zip.. can anyone help..
    the SMTP I use is like this
    CREATE OR REPLACE PROCEDURE production.SEND_SMTP_PUZZLE_DTKRY (pSender VARCHAR2,pRecipient VARCHAR2, pCCRecipient VARCHAR2, pSubject VARCHAR2,pMessage LONG,pattach BLOB,pfilename VARCHAR2) IS
      v_src_loc  BFILE := BFILENAME('BASE_DIR3', 'pajak.xls');
          l_buffer   RAW(54);
          l_amount   BINARY_INTEGER := 54;
         l_pos      INTEGER := 1;
         l_blob     BLOB := EMPTY_BLOB;
         l_blob_len INTEGER;
          v_amount   INTEGER;
          crlf CONSTANT VARCHAR2(2):= CHR(13) || CHR(10);
      v_connection_handle  UTL_SMTP.CONNECTION;
        v_smtp_host          VARCHAR2(30) := 'mail.mayora.co.id'; --My mail server, replace it with yours.
        v_subject            VARCHAR2(30) := 'Your Test Mail';
        l_message            VARCHAR2(200) := 'This is test mail using UTL_SMTP';
      pcc varchar2(50);
      i number := 1;
      j number := 1;
      l_original_blob blob;
      l_compressed_blob blob;
    BEGIN
       BEGIN
         /*Preparing the LOB from file for attachment. */
         --DBMS_LOB.OPEN(v_src_loc, DBMS_LOB.LOB_READONLY); --Read the file
         --dBMS_LOB.CREATETEMPORARY(l_blob, TRUE); --Create temporary LOB to store the file.
         --v_amount := DBMS_LOB.GETLENGTH(v_src_loc); --Amount to store.
         --DBMS_LOB.LOADFROMFILE(l_blob, v_src_loc, v_amount); -- Loading from file into temporary LOB
         --l_blob_len := DBMS_LOB.getlength(l_blob);
      l_original_blob     := pattach;
         l_compressed_blob   := TO_BLOB('1');
      UTL_COMPRESS.lz_compress (src => l_original_blob,
                                   dst => l_compressed_blob);
      --DBMS_LOB.FREETEMPORARY(l_compressed_blob);
      l_blob := l_compressed_blob;
         l_blob_len := DBMS_LOB.getlength(l_blob);
         /*UTL_SMTP related coding. */
         v_connection_handle := UTL_SMTP.OPEN_CONNECTION(host => v_smtp_host);
         UTL_SMTP.HELO(v_connection_handle, v_smtp_host);
         UTL_SMTP.MAIL(v_connection_handle, psender);
         UTL_SMTP.RCPT(v_connection_handle, precipient);
        if pCCRecipient is not null then
            if(instr(pCCRecipient,',') = 0) then
            utl_smtp.rcpt(v_connection_handle, pCCRecipient);
            else
           while(instr(pCCRecipient,',',i) > 0)
            loop
            pcc := substr(pCCRecipient,i, instr(substr(pCCRecipient,i),',')-1);
            i := i+instr(substr(pCCRecipient,i),',');
            utl_smtp.rcpt(v_connection_handle,pcc);
            end loop;
            pcc := substr(pCCRecipient,i,length(pCCRecipient));
            utl_smtp.rcpt(v_connection_handle,pcc);
            end if;
        end if;
         --UTL_SMTP.RCPT(v_connection_handle, v_cc_email_address);
         UTL_SMTP.OPEN_DATA(v_connection_handle);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                               'FROM' || ': ' ||  psender || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                               'TO' || ': ' ||  precipient || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                               'CC' || ': ' ||  pCCRecipient || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                               'SUBJECT' || ': ' ||  pSubject || UTL_TCP.CRLF);
       --MIME header.
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             'MIME-Version: 1.0' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                             'Content-Type: multipart/mixed; ' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             ' boundary= "' || 'BASE_DIR3.SECBOUND' || '"' ||
                             UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
         -- Mail Body
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             '--' || 'BASE_DIR3.SECBOUND' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             'Content-Type: text/plain;' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             ' charset=US-ASCII' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle, Pmessage || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
         -- Mail Attachment
       UTL_SMTP.WRITE_DATA(v_connection_handle,
                             '--' || 'BASE_DIR3.SECBOUND' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                             'Content-Type: application/octet-stream' ||
                             UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             'Content-Disposition: attachment; ' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             ' filename="' || pfilename || '"' || --My filename
                             UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             'Content-Transfer-Encoding: base64' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
       /* Writing the BLOL in chunks */
         WHILE l_pos < l_blob_len LOOP
           DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer);
           UTL_SMTP.write_raw_data(v_connection_handle,
                                  UTL_ENCODE.BASE64_ENCODE(l_buffer));
           UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
           l_buffer := NULL;
           l_pos    := l_pos + l_amount;
        END LOOP;
         UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
         -- Close Email
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             '--' || 'BASE_DIR3.SECBOUND' || '--' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             UTL_TCP.CRLF || '.' || UTL_TCP.CRLF);
         UTL_SMTP.CLOSE_DATA(v_connection_handle);
         UTL_SMTP.QUIT(v_connection_handle);
      EXCEPTION
        WHEN OTHERS THEN NULL;
        --return 1;
          UTL_SMTP.QUIT(v_connection_handle);
          RAISE;
      END;
    END;

    this is my smtp procedure
    CREATE OR REPLACE PROCEDURE PROD.SEND_SMTP_PUZZLE_DTKRY (pSender VARCHAR2,pRecipient VARCHAR2, pCCRecipient VARCHAR2, pSubject VARCHAR2,pMessage LONG,pattach BLOB,pfilename VARCHAR2) IS
      v_src_loc  BFILE := BFILENAME('BASE_DIR3', 'pajak.xls');
          l_buffer   RAW(54);
          l_amount   BINARY_INTEGER := 54;
         l_pos      INTEGER := 1;
         l_blob     BLOB := EMPTY_BLOB;
         l_blob_len INTEGER;
          v_amount   INTEGER;
          crlf CONSTANT VARCHAR2(2):= CHR(13) || CHR(10);
      v_connection_handle  UTL_SMTP.CONNECTION;
        v_smtp_host          VARCHAR2(30) := 'mail.mayora.co.id'; --My mail server, replace it with yours.
        v_subject            VARCHAR2(30) := 'Your Test Mail';
        l_message            VARCHAR2(200) := 'This is test mail using UTL_SMTP';
      pcc varchar2(50);
      i number := 1;
      j number := 1;
      l_original_blob blob;
      l_compressed_blob blob;
    BEGIN
       BEGIN
         /*Preparing the LOB from file for attachment. */
         --DBMS_LOB.OPEN(v_src_loc, DBMS_LOB.LOB_READONLY); --Read the file
         --dBMS_LOB.CREATETEMPORARY(l_blob, TRUE); --Create temporary LOB to store the file.
         --v_amount := DBMS_LOB.GETLENGTH(v_src_loc); --Amount to store.
         --DBMS_LOB.LOADFROMFILE(l_blob, v_src_loc, v_amount); -- Loading from file into temporary LOB
         --l_blob_len := DBMS_LOB.getlength(l_blob);
      l_original_blob     := pattach;
         l_compressed_blob   := TO_BLOB('1');
      UTL_COMPRESS.lz_compress (src => l_original_blob,
                                   dst => l_compressed_blob);
      --DBMS_LOB.FREETEMPORARY(l_compressed_blob);
      l_blob := l_compressed_blob;
         l_blob_len := DBMS_LOB.getlength(l_blob);
         /*UTL_SMTP related coding. */
         v_connection_handle := UTL_SMTP.OPEN_CONNECTION(host => v_smtp_host);
         UTL_SMTP.HELO(v_connection_handle, v_smtp_host);
         UTL_SMTP.MAIL(v_connection_handle, psender);
         UTL_SMTP.RCPT(v_connection_handle, precipient);
        if pCCRecipient is not null then
            if(instr(pCCRecipient,',') = 0) then
            utl_smtp.rcpt(v_connection_handle, pCCRecipient);
            else
            while(instr(pCCRecipient,',',i) > 0)
            loop
            pcc := substr(pCCRecipient,i, instr(substr(pCCRecipient,i),',')-1);
            i := i+instr(substr(pCCRecipient,i),',');
            utl_smtp.rcpt(v_connection_handle,pcc);
            end loop;
            pcc := substr(pCCRecipient,i,length(pCCRecipient));
            utl_smtp.rcpt(v_connection_handle,pcc);
            end if;
        end if;
         --UTL_SMTP.RCPT(v_connection_handle, v_cc_email_address);
         UTL_SMTP.OPEN_DATA(v_connection_handle);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                               'FROM' || ': ' ||  psender || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                               'TO' || ': ' ||  precipient || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                               'CC' || ': ' ||  pCCRecipient || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                               'SUBJECT' || ': ' ||  pSubject || UTL_TCP.CRLF);
         --MIME header.
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             'MIME-Version: 1.0' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                             'Content-Type: multipart/mixed; ' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             ' boundary= "' || 'BASE_DIR3.SECBOUND' || '"' ||
                             UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
         -- Mail Body
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             '--' || 'BASE_DIR3.SECBOUND' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             'Content-Type: text/plain;' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             ' charset=US-ASCII' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle, Pmessage || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
         -- Mail Attachment
       UTL_SMTP.WRITE_DATA(v_connection_handle,
                             '--' || 'BASE_DIR3.SECBOUND' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                             'Content-Type: application/octet-stream' ||
                             UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             'Content-Disposition: attachment; ' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             ' filename="' || pfilename || '"' || --My filename
                             UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             'Content-Transfer-Encoding: base64' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
       /* Writing the BLOL in chunks */
         WHILE l_pos < l_blob_len LOOP
           DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer);
           UTL_SMTP.write_raw_data(v_connection_handle,
                                  UTL_ENCODE.BASE64_ENCODE(l_buffer));
           UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
           l_buffer := NULL;
           l_pos    := l_pos + l_amount;
        END LOOP;
         UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
         -- Close Email
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             '--' || 'BASE_DIR3.SECBOUND' || '--' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(v_connection_handle,
                             UTL_TCP.CRLF || '.' || UTL_TCP.CRLF);
         UTL_SMTP.CLOSE_DATA(v_connection_handle);
         UTL_SMTP.QUIT(v_connection_handle);
      EXCEPTION
        WHEN OTHERS THEN NULL;
        --return 1;
          UTL_SMTP.QUIT(v_connection_handle);
          RAISE;
      END;
    END;
    is there a mistake?

  • Unable to send via SMTP with 10.6.1

    I'm having difficulty getting Mail to send outgoing mail through SMTP at work. I also run Mozilla T-Bird and it works fine with the same settings, so it's not a firewall issue. I upgraded to 10.6.1 today with no good effect. The other systems in our office (Windowz) are able to SMTP fine.
    By the way, our ISP does not require username/password or SSL.
    Since T-Bird works fine, I am using that (with all the same SMTP settings!) Too bad, I was considering migrating to Apple Mail as my mail client, maybe I will reconsider ...
    Any ideas anybody?
    Thanks, Todd
    P.S. The Connection Doctor output is as follows;
    CONNECTED Sep 11 13:07:56.216 [kCFStreamSocketSecurityLevelNone] -- host:smtp.nuvox.net -- port:25 -- socket:0x116364a40 -- thread:0x116429ec0
    READ Sep 11 13:07:56.280 [kCFStreamSocketSecurityLevelNone] -- host:smtp.nuvox.net -- port:25 -- socket:0x116364a40 -- thread:0x116429ec0
    220 smtp05.atlngahp.sys.nuvox.net ESMTP Fri, 11 Sep 2009 14:07:56 -0400
    WROTE Sep 11 13:07:56.302 [kCFStreamSocketSecurityLevelNone] -- host:smtp.nuvox.net -- port:25 -- socket:0x116364a40 -- thread:0x116429ec0
    EHLO [192.168.1.119]
    READ Sep 11 13:07:56.337 [kCFStreamSocketSecurityLevelNone] -- host:smtp.nuvox.net -- port:25 -- socket:0x116364a40 -- thread:0x116429ec0
    250-smtp05.atlngahp.sys.nuvox.net Hello 216.215.204.98.nw.nuvox.net [216.215.204.98], pleased to meet you
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    250-8BITMIME
    250-SIZE 52428800
    250-DSN
    250-ETRN
    250-STARTTLS
    250-DELIVERBY
    250 HELP
    WROTE Sep 11 13:07:56.356 [kCFStreamSocketSecurityLevelNone] -- host:smtp.nuvox.net -- port:25 -- socket:0x116364a40 -- thread:0x116429ec0
    QUIT
    Message was edited by: stlsmiths

    I've tried using "Disk Repair" per Carolyn Samit's other posts ... no luck.
    I think Apple Mail is broken ... based on the large number of other posts about this outgoing mail topic !!!!

  • Unable to verify email in order to send via SMTP f...

    Driving me nuts this one.
    I just want to receive email notifications from my Synology NAS. So I know I need to verify the email address it is sending emails from in order to access the smtp server mail.btinternet.com.
    The email address works correctly and receives email but when I try to verify the address my NAS sends from I get the following error: (#604,E2) You are trying to add an email address that has been blocked by the email address owner. Please enter a different email address.
    I can add [email protected] or annoying@thedomainIregisteredjusttogetthisworking.​org
    It accepts it, sends the email, I receive it no problem.
    But will not send to [email protected], which is the email address the NAS uses.
    Telephone support "cannot help me, ring home it support".
    Grr!

    g0nz0x wrote:
    Driving me nuts this one.
    I just want to receive email notifications from my Synology NAS. So I know I need to verify the email address it is sending emails from in order to access the smtp server mail.btinternet.com.
    The email address works correctly and receives email but when I try to verify the address my NAS sends from I get the following error: (#604,E2) You are trying to add an email address that has been blocked by the email address owner. Please enter a different email address.
    I can add [email protected] or annoying@thedomainIregisteredjusttogetthisworking.​org
    It accepts it, sends the email, I receive it no problem.
    But will not send to [email protected], which is the email address the NAS uses.
    Telephone support "cannot help me, ring home it support".
    Grr!
    Hi. Welcome to the forums.
    Unfortunately an admin account on a personal domain does seem to be blocked, or just not work. A few of "us" have tried and although the blocking message doesn't always appear - no email is received for the admin account in order to verify it.
    Clearly there is something that Yahoo! is doing to prevent it for any domain. I expect it's a mistake or a software programming issue.
    http://www.andyweb.co.uk/shortcuts
    http://www.andyweb.co.uk/pictures

  • Laserjet Pro 400 MFP Cover Page

    We just installed the above multi-function device. I understand the software included with this device in limited in capability with its scan to fax function.
    Currently this deice won't add cover pages unless the needed cover page is scanned in addition to the file being faxed OR the needed cover page is added to the file being sent. 
    [  Explained in this post  ] 
    http://h30434.www3.hp.com/t5/Scanning-Faxing-and-C​opying/customizing-fax-cover-sheet-FROM-SCRATCH/td​...
    MY Question:
    1. What HP software will work with this device and give us this function, Even if that software wasn’t designed for that device? I understand that using any such software would be done at my own risk.
    2. I would like a list of devices that include this function in the supplied software.
    * To clarify what function is needed, the ability to send cover pages without the need to scan an additional page or edit the document being sent.

    Hello CCCollege,
    To get your issue more exposure I would suggest posting it in the commercial forums since the {insert product model} is a commercial product. You can do this at HP Enterprise Business Community.
    The support page for your product may be helpful in the meantime:
    HP Support Center.
    I hope this helps!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • All I Want Is A Fax Cover Sheet

    I have an HP ENVY7640 e_All-In-One and I cannot figure out how to select a SPECIFIC form from the Printables appFrom the display ON the printer I find the one I want ( fax cover sheet ) I select it and hit PRINT........Nothing happens!! If I try to use the app, It only gives me the option to select "last" which apparently is a blank weekly calander. The app doesnt allow me to select a specific sheet. SO,.... what good does scheduling it do? By the way, I DID schedule to print , but, again , it just printed the calander. ( I now have 5 weekly calander pages )So far, I have no cover sheet and I have wasted alot of ink. I have also noticed that the "scheduled" print time does not allow me to set the DAY I want it to print, as I tried to do that as well.it shouldnt be this hard. On my previous hp printer I just went to the screen on the device... selected what I wanted , and hit print.....as it should be.WHAT AM I DOING WRONG?????  

    Hello , Thanks for posting in the HP Forums. I'd like to help you with the issues you are having with the printables on your HP ENVY 7640 e-All-in-One printer. I am assuming that you are printing from the Quickforms app? I know that the only scheduled option for that app is the calendar, and I'm pretty sure it also has the option to "quick print" a fax cover page. Let me know if I'm incorrect, so I can better assist. The fact that the fax cover page will not print, indicates there is either an issue with the printer's connection, an issue with the app itself, or an issue with the printer's firmware. Are you able to print from other apps immediately and without issue? I'd recommend doing a network reset to refresh the connection. Let's leave the router on and unplug the power cable (NOTE: Do not reset the router.), then do the same with the printer, and shut down the computer. After a full minute, plug the router back in, wait for it to fully power up, then plug the printer back in and wait for the wireless light to become solid. Once both the router and printer are on, go ahead and turn the computer back on. Doing this will refresh the network connection. I'd also recommend making sure the printer is plugged directly into a wall outlet. The printer has a power moderator built in, so if it is plugged into a wall outlet or power surge bar, it may not be getting consistent power. Power fluctuation can cause all manner of firmware "glitches" such as the one you are experiencing. If these steps don't immediately resolve the issue, I'd recommend contacting our HP Cloud Services phone support at 1-855-785-2777. I hope this helps!

  • Creating a newsletter in pages and send email

    I want to be able to send directly from pages a newsletter that I created in pages via mail.  Is that possible?

    Pages > Share > Send via Email > PDF  is one way.

Maybe you are looking for

  • Font problems after 10.6.2 upgrade

    Hello! Just after upgrading to 10.6.2, al the iwork documents (Pages and Keynote) that use Time New Roman (originally Office documents) are unreadable due to a kerning problem that affects only this font (that I know of). Did somebody had the same pr

  • External display TV flickering

    I am using my tv as a external display. im running it from my iMac mini display port to a hdmi converter. the screen is flickering about every 10 secs. any ideas?

  • Microsoft Office / Outlook 2011, Lion Install, multiple mdworker32 crashes

    After having experienced two successful installs at the office, on a MacBook Pro and iMac duoCore (both installing atop Snow Leopard), I decided to perform an install on my home iMac (Nov. 2009 i7 2.8GHz model).  All went well until I rebooted and la

  • 3G blocking call facility

    Over the last few days, I have not been able to make or receive calls. Vodafone suggested turning 3G off which I did, and I can now make and receive calls again. This is obviously not an ideal solution as I have to keep turning 3G on and off dependin

  • Can't figure out how to open Lightroom 5 (part of PS+LR Plan)

    Hello. I am a Lightroom 5 beginner. I purchased the monthly '$9.99 photography' package of Photoshop that includes Lightroom 5. I opened the Adobe Application Manager and downloaded and installed Photoshop CC successfully. Then I went to download Lig