Sending e-mail exception

hi
I am using this servlet in order to send a mail:
import java.io.*;
import java.net.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.mail.*;
import javax.mail.internet.*;
public class SendMail extends HttpServlet {
    public void init(ServletConfig config) throws ServletException {
        super.init(config);
    public void destroy() {
    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
     * @param request servlet request
     * @param response servlet response
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
        response.setContentType("text/html");
        PrintWriter out = response.getWriter();
        out.close();
    /** Handles the HTTP <code>GET</code> method.
     * @param request servlet request
     * @param response servlet response
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
        // processRequest(request, response);
        PrintWriter out = response.getWriter();
        String senderhost=request.getParameter("outserver"); //
        final String senderlogin=request.getParameter("username"); //
        final String senderpassword=request.getParameter("password");
        String from=request.getParameter("from");
        String to=request.getParameter("to"); //
        String subject=request.getParameter("subject");
        String cc=request.getParameter("cc");
        String bcc=request.getParameter("bcc");
        String text=request.getParameter("content"); //
        boolean success=true;
        if ((senderhost==null)||(senderlogin==null)||(senderpassword==null)) {
            success=false;
            out.println("Invalid senderhost, senderlogin or senderpassword.");
            out.print("Failure");
            out.close();
        } else {
            // Get system properties
            Properties props = System.getProperties();
            // Setup mail server
            props.put("mail.smtp.host", senderhost);
            javax.mail.Authenticator pa = null; //default: no authentication
            props.put("mail.smtp.auth", "true");
            pa = new javax.mail.Authenticator(){
                public javax.mail.PasswordAuthentication getPasswordAuthentication() {
                    return new javax.mail.PasswordAuthentication(senderlogin, senderpassword);
            // Get session
            Session session = Session.getDefaultInstance(props, pa);
            // Define message
            MimeMessage message = new MimeMessage(session);
            //System.out.print(from+subject+text);
            try {
                message.setFrom(new InternetAddress(from));
                String[] str = to.split(",");     //make an array containig all the TO adress (two adress are sepereted with ",".
                message.setRecipient(Message.RecipientType.TO,new InternetAddress(str[0], false));
                for (int i=1; i< str.length;i++) {
                    message.addRecipient(Message.RecipientType.TO,new InternetAddress(str, false));
// message.setRecipient(Message.RecipientType.TO,new InternetAddress(to, false));
if ( cc!= null) {
str = cc.split(",");
message.setRecipient(Message.RecipientType.CC,new InternetAddress(str[0], false));
for (int i=1; i< str.length;i++) {
message.addRecipient(Message.RecipientType.CC,new InternetAddress(str[i], false));
// message.setRecipient(Message.RecipientType.TO,new InternetAddress(cc, false));
if (bcc!=null) {
str = bcc.split(",");
message.setRecipient(Message.RecipientType.BCC,new InternetAddress(str[0], false));
for (int i=1; i< str.length;i++) {
message.addRecipient(Message.RecipientType.BCC,new InternetAddress(str[i], false));
message.setSubject(subject);
message.setText(text);
// Send message
Transport.send(message);
} catch (MessagingException e) {
success=false;
out.println("Messaging Exception was thrown.");
} finally {
if (success) out.print("Success");
else out.print("Failure");
out.close();
/** Handles the HTTP <code>POST</code> method.
* @param request servlet request
* @param response servlet response
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
/** Returns a short description of the servlet.
public String getServletInfo() {
return "Short description";
the problem is that sometimes the servlet works great, and sometimes it throws this exception:
500 Servlet Exception
java.lang.SecurityException: Access to default session denied
     at javax.mail.Session.getDefaultInstance(Session.java:292)
     at SendMail.doGet(SendMail.java:71)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
     at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:113)
     at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:211)
     at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177)
     at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)
     at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
     at com.caucho.server.port.TcpConnection.run(TcpConnection.java:331)
     at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:464)
     at com.caucho.util.ThreadPool.run(ThreadPool.java:408)
     at java.lang.Thread.run(Thread.java:534)
Resin-3.0.8 (built Tue, 08 Jun 2004 02:25:40 PDT)
Does anyone knows why this is happend??
Is it something wrong with my code??
thanks, Naor

Session session = Session.getDefaultInstance(props, pa);This is the line of code where the exception occurred, isn't it? Replace it bySession session = Session.getInstance(props, pa);for a quick fix.

Similar Messages

  • I'm getting an exception while sending a mail . .

    i'm get an excpetion while sending a mail, example i'm getting
    this particular error
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/activation/DataSource
    at MailTest.<init>(MailTest.java:25)
    at MailTest.main(MailTest.java:42)
    this is my code
    pls help me out
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    public class MailTest
         String mailHost = "mail.business-functions.com";
         String to = "[email protected]";
         String from = "[email protected]";
         String subject = "This is Test Mail Thru Java Mail API";
         String body = "This is Test Mail to check whether the Java Mail APi is Working or not. This is prototype developed by Snehal K gandhi of Business Functions Software Solutions Pvt Ltd.";
         Provider provider;
         public MailTest()
              try
                   Properties props = System.getProperties();
                   props.put("mail.smtp.host", mailHost);
                   Session session = Session.getInstance(props,null);
                   Message message = new MimeMessage(session);
                   message.setFrom(new InternetAddress(from));
                   message.setRecipients(Message.RecipientType.TO,new InternetAddress[]{new InternetAddress(to)});
                   message.setSubject(subject);
                   message.setContent(body, "text/plain");
                   Transport.send(message);
                   System.out.println("Mail has been Sent");
              catch(MessagingException me)
                   System.out.println("2. Error While Sending the Mail and the exception is : " + me.toString());
         public static void main(String arg[])
              new MailTest();
    ***********************************************************************/

    <sigh>
    You need activation.jar in your classpath and or
    import javax.activation.*;
    See the JavaMail Readme for more info.
    If you haven't got JAF get it here
    http://java.sun.com/products/javabeans/glasgow/jaf.html
    Rgds,
    SH

  • Error in sending mail (mail exception error)

    HI guys,
    I used smtp method to send mail in the java application. If i am trying through outlook it's working. but if i used in the application it's throwing this error. can anyone help me?
    I am using SMTP
    (org.springframework.mail.javamail) method to send the mail.
    below is the code i used to implement this,
    JavaMailSenderImpl mailSender = new JavaMailSenderImpl();
    MailDO mailDO = new MailDO();
    mailDO.setTo(To_email);
    mailDO.setFrom(From_email);
    mailDO.setCc(Cc_email);
    mailDO.setSubject(Subject);
    Properties prop = new Properties();
    prop.put("mail.smtp.auth", "true");
    mailSender.setHost("smtp.domain.co.in");
    mailSender.setUsername("[email protected]");
    mailSender.setPassword("password");
    mailSender.setProtocol("smtp");
    mailSender.setPort(25);
    mailSender.setJavaMailProperties(prop);
    MimeMessage message = mailSender.createMimeMessage();
    MimeMessageHelper helper = new MimeMessageHelper(message);
    helper.setFrom(mailDO.getFrom());
    helper.setCc(ccAddColl);
    helper.setSubject(mailDO.getSubject());
    helper.setTo(mailDO.getTo());
    helper.setText(mailDO.getBody(),true);
    try{
    mailSender.send(message);
    catch(MailException ex) {
    System.err.println(ex.getMessage());
    ex.printStackTrace();
    But i am getting following error :-
    Mail server connection failed; nested exception is javax.mail.NoSuchProviderException: smtp
    org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.NoSuchProviderException: smtp
    javax.mail.NoSuchProviderException: smtp
    at javax.mail.Session.getService(Session.java:760)
    at javax.mail.Session.getTransport(Session.java:685)
    at javax.mail.Session.getTransport(Session.java:628)
    at javax.mail.Session.getTransport(Session.java:608)
    Edited by: arkhit on Oct 16, 2007 11:05 PM

    I do not know org.springframework.mail.javamail but if it is a framework, a wrapper around a mail provider, like the standard JavaMail one, the latter must be on the classpath too and maybe it must be registered somehow.
    But it is just a guess - I don't know the stuff.

  • Send mail exception

    hai guys,
    i am getting the following exception when i try to execute my program which i have given below. can u guys sort this out for me
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
    class javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    class javax.mail.SendFailedException: 552 You must authenticate via SMTP
    AUTH or you must POP first. See http://SoftHome.net/help/popfirst.html .
    program:
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.io.UnsupportedEncodingException;
    public class MailExample {
         public static void main (String args[]) {
              String host = "mail.softhome.net";
              String from = "[email protected]";
              String to = "[email protected]";     
              try {       
                   // Get system properties     
                   Properties props = System.getProperties();          
                   // Setup mail server     
                   Authenticator auth = new PopupAuthenticator();     
                   props.put("mail.smtp.host", host);          
                   // Get session     
                   Session session = Session.getInstance(props, auth);     
                   //session.setDebug(true);          
                   // Define message     
                   MimeMessage message = new MimeMessage(session);          
                   // Set the from address     
                   message.setFrom(new InternetAddress(from,"FromName"));          
                   // Set the to address     
                   message.addRecipient(Message.RecipientType.TO,new InternetAddress(to,"ToName"));
                   // Set the subject     
                   message.setSubject("Hello JavaMail");
                   // Set the content     
                   message.setText("Welcome to JavaMail");          
                   // Send message     
                   Transport.send(message);     
                   System.out.println("OK Man");     
              }     catch (MessagingException e) {e.toString();System.out.println(e);
              }     catch (UnsupportedEncodingException e) {e.toString();System.out.println(e);
              }     catch (Exception e) {e.toString();System.out.println(e);}
              static class PopupAuthenticator extends Authenticator {
                   public PasswordAuthentication getPasswordAuthentication() {  
                        return new PasswordAuthentication("UserName", "Password");
                        } }}

    try to add auth attribute to properties
    eg.
    props.put("mail.smtp.auth", "true");

  • Lines Display when sending E-Mail using SO_NEW_DOCUMENT_ATT_SEND_API1

    Good Afternoon,
    I'm using the following code to send e-Mails:
      LOOP AT t_z3emailusr INTO w_z3emailusr.
        t_receivers-receiver = w_z3emailusr-email.
        t_receivers-rec_type = 'U'.
        t_receivers-express  = 'X'.
        APPEND t_receivers.
      ENDLOOP.
      MOVE text-003 TO t_mailtxt-line.
      APPEND t_mailtxt.
      CLEAR t_mailtxt-line.
      APPEND t_mailtxt.
      MOVE text-001 TO t_mailtxt-line.
      APPEND t_mailtxt.
      CLEAR t_mailtxt-line.
      APPEND t_mailtxt.
      LOOP AT t_apqi INTO w_apqi.
        MOVE w_apqi-groupid TO t_mailtxt-line.
        APPEND t_mailtxt.
      ENDLOOP.
      MOVE text-002 TO t_mailtxt-line.
      APPEND t_mailtxt.
      CLEAR t_mailtxt-line.
      APPEND t_mailtxt.
      MOVE text-003 TO t_mailtxt-line.
      APPEND t_mailtxt.
      MOVE text-004 TO t_mailtxt-line.
      APPEND t_mailtxt.
      CLEAR t_mailtxt.
      DESCRIBE TABLE t_mailtxt LINES mailtxt_size.
      MOVE text-000 TO t_doc_att-obj_descr.
      MOVE sy-langu TO t_doc_att-obj_langu.
      MOVE 'O'      TO t_doc_att-sensitivty.
      t_doc_att-doc_size = mailtxt_size * 255.
      CLEAR t_mailpack-transf_bin.
      MOVE 1 TO t_mailpack-head_start.
      CLEAR t_mailpack-head_num.
      MOVE 1            TO t_mailpack-body_start.
      MOVE mailtxt_size TO t_mailpack-body_num.
      MOVE 'HTM'        TO t_mailpack-doc_type.
      MOVE sy-langu     TO t_mailpack-obj_langu.
      APPEND t_mailpack.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = t_doc_att
          put_in_outbox              = 'X'
        TABLES
          packing_list               = t_mailpack
          contents_txt               = t_mailtxt
          receivers                  = t_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Everything is ok except for the text...
    Although i'm appending lines in t_mailtxt the text of the e-mail is continuous...
    How to display text with "line breaks"? Do i need to change the doc_type of t_mailpack?
    Regards,
    Pedro Gaspar

    Yes .. change the doc_type.

  • How to send a mail as .txt attachment ,As data is seperated by pipeline

    Hi ,
    I got a requirement to send a mail in .txt format (Using OOPS) and the data inside the mail is seperated by '|'  Pls help me in this regard.
    i have written a mail to send the mail in .xls it is working fine for me in .xls but i dont know how to write the same for txt where data should be seperated by '|'.
    Regards
    sas
    Ps:  i am attaching my code. and please specify where i need to modify to achieve the same. and any perfromance enhacements are also welcome.
    *& Report  ZGBTEST02
    REPORT  YSAS_MAIL2.
    *Changes done by sas
    *PARAMETERS: P_MAIL TYPE AD_SMTPADR OBLIGATORY, " G C by sas
    *P_MAIL1 TYPE AD_SMTPADR OBLIGATORY." G by sas
    tables: adr6.
    SELECT-OPTIONS:p_eaddr FOR adr6-SMTP_ADDR NO INTERVALS .
    *end of changes by sas
    DATA: I_GLT0 TYPE STANDARD TABLE OF GLT0.
    DATA: I_MARA  TYPE STANDARD TABLE OF MARA.  " MARA Entries
    *      I_MARC  TYPE STANDARD TABLE OF MARC.  " MARC Entries
    DATA: L_TEXT  TYPE CHAR255.  " Text
    DATA: L_LINES TYPE I,
          L_SIZE  TYPE SOOD-OBJLEN.
    " Size of Attachment
    * Mail related
    DATA: I_CONTENT         TYPE   SOLI_TAB, " Mail content
          I_ATTACH          TYPE   SOLI_TAB, " Attachment
          I_ATTACH1         TYPE   SOLIX_TAB. " Attachment
    DATA: L_SEND_REQUEST    TYPE REF TO    CL_BCS,
                                                " E-Mail Send Request
          L_DOCUMENT        TYPE REF TO    CL_DOCUMENT_BCS,
                                                " E-Mail Attachment
          L_RECIPIENT       TYPE REF TO    IF_RECIPIENT_BCS,
                                                " Distribution List
          L_SENDER          TYPE REF TO    IF_SENDER_BCS,
                                                " Address of Sender
          L_UNAME           TYPE           SALRTDRCPT,
                                                " Sender Name(SY-UNAME)
          L_BCS_EXCEPTION   TYPE REF TO    CX_DOCUMENT_BCS,
                                                " BCS Exception
          L_ADDR_EXCEPTION  TYPE REF TO    CX_ADDRESS_BCS,
                                                " Address Exception
          L_SEND_EXCEPTION  TYPE REF TO    CX_SEND_REQ_BCS.
    " E-Mail sending Exception
    *Constants------------------------------------------------------------*
    CONSTANTS: C_TAB(1) TYPE C VALUE
               CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB,
                                         " Tab Character
               C_CR(1)  TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF,
                                         " Line Feed for End-Of_line
               C_EXT    TYPE SOODK-OBJTP VALUE 'XLS'. " XLS Extension
    START-OF-SELECTION.
      SELECT * FROM MARA INTO TABLE I_MARA UP TO 20 ROWS.
      IF SYST-SUBRC EQ 0.
    *    SELECT * FROM MARC INTO TABLE I_MARC FOR ALL ENTRIES IN I_MARA WHERE MATNR = I_MARA-MATNR.
      ENDIF.
    *select * from glt0 into table i_glt0.
    * Preparing body of the Mail
      MOVE 'SAP Material Master Records' TO L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
      CLEAR L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
      MOVE 'Thanks,' TO L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
      MOVE 'SAP MM' TO L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
    * Creates persistent send request
      TRY.
          L_SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
    * Creating Document
          L_DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
                                        I_TYPE  = 'RAW'
                                        I_TEXT  = I_CONTENT[]
                                        I_SUBJECT = 'SAS MASTER Records' ).
    * Preparing contents of attachment with Change Log
          PERFORM PREPARE_ATTACHMENT.
          DESCRIBE TABLE I_MARA LINES L_LINES.
    * Size to multiplied by 2 for UNICODE enabled systems
          L_SIZE = L_LINES * 2 * 255.
    * Adding Attachment
          CALL METHOD L_DOCUMENT->ADD_ATTACHMENT
            EXPORTING
              I_ATTACHMENT_TYPE    = C_EXT
              I_ATTACHMENT_SIZE    = L_SIZE
              I_ATTACHMENT_SUBJECT = 'MARA Details'
    *          i_att_content_hex    = i_attach[].
              I_ATT_CONTENT_TEXT   = I_ATTACH[].
    *      DESCRIBE TABLE I_MARC LINES L_LINES.
    * Size to multiplied by 2 for UNICODE enabled systems
    *      L_SIZE = L_LINES * 2 * 255.
    ** Adding Attachment
    *      CALL METHOD L_DOCUMENT->ADD_ATTACHMENT
    *        EXPORTING
    *          I_ATTACHMENT_TYPE    = C_EXT
    *          I_ATTACHMENT_SIZE    = L_SIZE
    *          I_ATTACHMENT_SUBJECT = 'MARC Details'
    *          I_ATT_CONTENT_HEX    = I_ATTACH1[].
    **          i_att_content_text   = i_attach1[].
    * Add document to send request
          CALL METHOD L_SEND_REQUEST->SET_DOCUMENT( L_DOCUMENT ).
          DATA:LR_SENDER TYPE REF TO IF_SENDER_BCS,
               LR_SEND TYPE REF TO CL_BCS.
    * Preparing the sender object
    *      LR_SENDER = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( sy-uname ).
           DATA: L1_UNAME TYPE SY-UNAME.
           L1_UNAME = SY-UNAME.
           LR_SENDER = CL_SAPUSER_BCS=>CREATE( L1_UNAME ).
    * Setting the sender
          CALL METHOD L_SEND_REQUEST->SET_SENDER
            EXPORTING
              I_SENDER = LR_SENDER.
    * E-Mail
       LOOP AT P_EADDR.
          TRANSLATE P_EADDR-LOW TO LOWER CASE.
          L_RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( P_EADDR-LOW ).
          CALL METHOD L_SEND_REQUEST->ADD_RECIPIENT
            EXPORTING
              I_RECIPIENT  = L_RECIPIENT
              I_EXPRESS    = 'U'
              I_COPY       = ' '
              I_BLIND_COPY = ' '
              I_NO_FORWARD = ' '.
           IF SY-subrc EQ 0.
              WRITE:/'** SUCCESS:  Email Sent to', p_eaddr-LOW COLOR COL_NORMAL.
            ELSE.
              WRITE:/'** ERROR: Failed to send Email to',p_eaddr-LOW COLOR COL_NEGATIVE .
            ENDIF.
          ENDLOOP.
    *Trigger E-Mail immediately
          L_SEND_REQUEST->SET_SEND_IMMEDIATELY( ' ' ).
          CALL METHOD L_SEND_REQUEST->SEND( ).
          COMMIT WORK.
        CATCH CX_DOCUMENT_BCS INTO L_BCS_EXCEPTION.
        CATCH CX_SEND_REQ_BCS INTO L_SEND_EXCEPTION.
        CATCH CX_ADDRESS_BCS  INTO L_ADDR_EXCEPTION.
      ENDTRY.
    *&      Form  PREPARE_ATTACHMENT
    FORM PREPARE_ATTACHMENT .
      FIELD-SYMBOLS: <LFS_TABLE>,    " Internal table structure
                     <LFS_CON>.      " Field Content
      DATA: L_TEXT TYPE CHAR1024.     " Text content for mail attachment
      DATA: L_CON TYPE STRING. "(50) TYPE c.        " Field Content in character format
      DATA: L_STR TYPE STRING,
            L_STR1 TYPE STRING.
      DATA: LS_SOLIX TYPE SOLIX.
    * Columns to be tab delimeted
      LOOP AT I_MARA ASSIGNING <LFS_TABLE>.
        DO.
          ASSIGN COMPONENT SY-INDEX OF STRUCTURE <LFS_TABLE>
                 TO <LFS_CON>.
          IF SY-SUBRC NE 0.
            CONCATENATE C_CR L_TEXT INTO L_TEXT.
    *        CONCATENATE l_str c_cr l_text INTO l_str.
    *        ls_solix-line = l_text.
    *        APPEND ls_solix TO i_attach.
            APPEND L_TEXT TO I_ATTACH.
            EXIT.
          ELSE.
            CLEAR: L_CON.
            MOVE <LFS_CON> TO L_CON.
            CONDENSE L_CON.
            IF SY-INDEX = 1.
              CLEAR: L_TEXT.
              MOVE L_CON TO L_TEXT.
            ELSE.
              CONCATENATE L_TEXT L_CON INTO L_TEXT
                 SEPARATED BY C_TAB.
            ENDIF.
          ENDIF.
        ENDDO.
      ENDLOOP.
    ** Columns to be tab delimeted
    *  LOOP AT I_MARC ASSIGNING <LFS_TABLE>.
    *    DO.
    *      ASSIGN COMPONENT SY-INDEX OF STRUCTURE <LFS_TABLE>
    *             TO <LFS_CON>.
    *      IF SY-SUBRC NE 0.
    *        CONCATENATE C_CR L_TEXT INTO L_TEXT.
    **        CONCATENATE l_str c_cr l_text INTO l_str1.
    *        LS_SOLIX-LINE = L_TEXT.
    *        APPEND LS_SOLIX TO I_ATTACH1.
    *        EXIT.
    *      ELSE.
    *        CLEAR: L_CON.
    *        MOVE <LFS_CON> TO L_CON.
    *        CONDENSE L_CON.
    *        IF SY-INDEX = 1.
    *          CLEAR: L_TEXT.
    *          MOVE L_CON TO L_TEXT.
    *        ELSE.
    *          CONCATENATE L_TEXT L_CON INTO L_TEXT
    *             SEPARATED BY C_TAB.
    *        ENDIF.
    *      ENDIF.
    *    ENDDO.
    *  ENDLOOP.
    *  i_attach1[] = i_attach[].
    ENDFORM.                    " PREPARE_ATTACHMENT

    Hi Sas,
    I have copied the code and executed and it is working fine. I'm getting the text attachement in the email.
    * Adding Attachment
          CALL METHOD L_DOCUMENT->ADD_ATTACHMENT
            EXPORTING
              I_ATTACHMENT_TYPE    = 'TXT'          "  C_EXT   My change
              I_ATTACHMENT_SIZE    = L_SIZE
              I_ATTACHMENT_SUBJECT = 'MARA Details'
    *          i_att_content_hex    = i_attach[].
              I_ATT_CONTENT_TEXT   = I_ATTACH[].
    CONCATENATE i_mara-MATNR
                             i_mara-ERSDA
                             i_mara-ERNAM
                             i_mara-LAEDA
                   INTO   L_TEXT
                 SEPARATED BY '|'.

  • How to send a mail as .txt attachment ?

    Hi all,
    I got a requirement to write code for sending mail in oops.
    i have written code for .xls which is working fine. But requirement is to send the mail in the format of txt.
    i just only chnge the .xls to .txt where i can see the output properly in sap but problem is that i am unable to get the proper alignment. when i execute the report and see the output in sost i can see the attachment.i am downloading the attachment there only(Our server is not configured to get the mails directly) .So when i open the saved text file on my pc the output is appearing as follows...
    pernr nachn vorna
            0001 L0001 F0001
                0002 L0002 F0002
                   0003 L0003 F0003
                         0004 L0004 F0004...
    Where it should come in straight line as follows in my o/p code..
    pernr nachn vorna
    0001 L0001 F0001
    0002 L0002 F0002
    0003 L0003 F0003
    0004 L0004 F0004...
    i am puttin g my code ..please correct me where i am wrong .....waiting for your valuabel inputs..
    *& Report  ZGBTEST02
    REPORT  YSAS_MAIL2.
    *Changes done by sas
    *PARAMETERS: P_MAIL TYPE AD_SMTPADR OBLIGATORY, " G C by sas
    *P_MAIL1 TYPE AD_SMTPADR OBLIGATORY." G by sas
    TABLES: ADR6.
    SELECT-OPTIONS:P_EADDR FOR ADR6-SMTP_ADDR NO INTERVALS .
    *end of changes by sas
    DATA: I_GLT0 TYPE STANDARD TABLE OF GLT0.
    *DATA: I_pernr  TYPE STANDARD TABLE OF pa0002.  " MARA Entries
    DATA: BEGIN OF I_PERNR OCCURS 1 ,
    PERNR TYPE PA0002-PERNR,
    NACHN TYPE PA0002-NACHN,
    VORNA TYPE PA0002-VORNA,
    END OF I_PERNR..
    *      I_MARC  TYPE STANDARD TABLE OF MARC.  " MARC Entries
    DATA: L_TEXT  TYPE CHAR255.  " Text
    DATA: L_LINES TYPE I,
          L_SIZE  TYPE SOOD-OBJLEN.
    " Size of Attachment
    * Mail related
    DATA: I_CONTENT         TYPE   SOLI_TAB, " Mail content
          I_ATTACH          TYPE   SOLI_TAB, " Attachment
          I_ATTACH1         TYPE   SOLIX_TAB. " Attachment
    DATA: L_SEND_REQUEST    TYPE REF TO    CL_BCS,
                                                " E-Mail Send Request
          L_DOCUMENT        TYPE REF TO    CL_DOCUMENT_BCS,
                                                " E-Mail Attachment
          L_RECIPIENT       TYPE REF TO    IF_RECIPIENT_BCS,
                                                " Distribution List
          L_SENDER          TYPE REF TO    IF_SENDER_BCS,
                                                " Address of Sender
          L_UNAME           TYPE           SALRTDRCPT,
                                                " Sender Name(SY-UNAME)
          L_BCS_EXCEPTION   TYPE REF TO    CX_DOCUMENT_BCS,
                                                " BCS Exception
          L_ADDR_EXCEPTION  TYPE REF TO    CX_ADDRESS_BCS,
                                                " Address Exception
          L_SEND_EXCEPTION  TYPE REF TO    CX_SEND_REQ_BCS.
    " E-Mail sending Exception
    *Constants------------------------------------------------------------*
    CONSTANTS: C_TAB(1) TYPE C VALUE
               CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB,
                                         " Tab Character
               C_CR(1)  TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF,
                                         " Line Feed for End-Of_line
               C_EXT    TYPE SOODK-OBJTP VALUE 'TXT'. " XLS Extension
    START-OF-SELECTION.
      SELECT PERNR NACHN VORNA  FROM PA0002 INTO CORRESPONDING FIELDS OF TABLE I_PERNR UP TO 20 ROWS.
    *select * from glt0 into table i_glt0.
    * Preparing body of the Mail
    *  MOVE 'SAP Material Master Records' TO L_TEXT.
    *  APPEND L_TEXT TO I_CONTENT.
    *  CLEAR L_TEXT.
    *  APPEND L_TEXT TO I_CONTENT.
    *  MOVE 'Thanks,' TO L_TEXT.
    *  APPEND L_TEXT TO I_CONTENT.
    *  MOVE 'SAP MM' TO L_TEXT.
    *  APPEND L_TEXT TO I_CONTENT.
      MOVE '<BR>Attached is your HRIS report(s) generated from the Firm''s' TO L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
      MOVE ' Human Resources  Information System (SAP).' TO L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
      MOVE '<BR>  ' TO L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
      MOVE '<BR>This is an automated report.' TO L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
    *        MOVE '<BR>  ' TO l_text.
    *        APPEND l_text TO i_content.
      MOVE '<BR>  ' TO L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
    *        MOVE '<BR>Please do not reply to this email' TO l_text.
    *        APPEND l_text TO i_content.
    *        MOVE '<BR>  ' TO l_text.
    *        APPEND l_text TO i_content.
      MOVE '<BR>Thank you.' TO L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
    * Creates persistent send request
      TRY.
          L_SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
    * Creating Document
          L_DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
                                        I_TYPE  = 'RAW'
                                        I_TEXT  = I_CONTENT[]
                                        I_SUBJECT = 'Automated HRIS (SAP) Report' ).
    DATA: W_PERNR LIKE I_PERNR.
    * Preparing contents of attachment with Change Log
          PERFORM PREPARE_ATTACHMENT.
          DATA: compressed like solisti1 occurs 10 with header line.
    DATA: decompressed like solisti1 occurs 10 with header line.
          CALL FUNCTION 'TABLE_COMPRESS'
    *   IMPORTING
    *     COMPRESSED_SIZE       =
                        TABLES
    *      in                    = eerec
                          in                    = i_attach
                          out                   = compressed.
          CALL FUNCTION 'TABLE_DECOMPRESS'
            TABLES
              in  = compressed
              out = decompressed.
          DESCRIBE TABLE decompressed LINES L_LINES.
    * Size to multiplied by 2 for UNICODE enabled systems
          L_SIZE = L_LINES * 2 * 255.
    * Adding Attachment
          CALL METHOD L_DOCUMENT->ADD_ATTACHMENT
            EXPORTING
              I_ATTACHMENT_TYPE    = C_EXT
              I_ATTACHMENT_SIZE    = L_SIZE
              I_ATTACHMENT_SUBJECT = 'Hr Details'
    *          i_att_content_hex    = i_attach[].
              I_ATT_CONTENT_TEXT   = decompressed[].
    *      DESCRIBE TABLE I_MARC LINES L_LINES.
    * Size to multiplied by 2 for UNICODE enabled systems
    *      L_SIZE = L_LINES * 2 * 255.
    ** Adding Attachment
    *      CALL METHOD L_DOCUMENT->ADD_ATTACHMENT
    *        EXPORTING
    *          I_ATTACHMENT_TYPE    = C_EXT
    *          I_ATTACHMENT_SIZE    = L_SIZE
    *          I_ATTACHMENT_SUBJECT = 'MARC Details'
    *          I_ATT_CONTENT_HEX    = I_ATTACH1[].
    **          i_att_content_text   = i_attach1[].
    * Add document to send request
          CALL METHOD L_SEND_REQUEST->SET_DOCUMENT( L_DOCUMENT ).
          DATA:LR_SENDER TYPE REF TO IF_SENDER_BCS,
               LR_SEND TYPE REF TO CL_BCS.
    * Preparing the sender object
    *      LR_SENDER = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( sy-uname ).
          DATA: L1_UNAME TYPE SY-UNAME.
          L1_UNAME = SY-UNAME.
          LR_SENDER = CL_SAPUSER_BCS=>CREATE( L1_UNAME ).
    * Setting the sender
          CALL METHOD L_SEND_REQUEST->SET_SENDER
            EXPORTING
              I_SENDER = LR_SENDER.
    * E-Mail
          LOOP AT P_EADDR.
            TRANSLATE P_EADDR-LOW TO LOWER CASE.
            L_RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( P_EADDR-LOW ).
            CALL METHOD L_SEND_REQUEST->ADD_RECIPIENT
              EXPORTING
                I_RECIPIENT  = L_RECIPIENT
                I_EXPRESS    = 'U'
                I_COPY       = ' '
                I_BLIND_COPY = ' '
                I_NO_FORWARD = ' '.
            IF SY-SUBRC EQ 0.
              WRITE:/'** SUCCESS:  Email Sent to', P_EADDR-LOW COLOR COL_NORMAL.
            ELSE.
              WRITE:/'** ERROR: Failed to send Email to',P_EADDR-LOW COLOR COL_NEGATIVE .
            ENDIF.
          ENDLOOP.
    *Trigger E-Mail immediately
          L_SEND_REQUEST->SET_SEND_IMMEDIATELY( ' ' ).
          CALL METHOD L_SEND_REQUEST->SEND( ).
          COMMIT WORK.
        CATCH CX_DOCUMENT_BCS INTO L_BCS_EXCEPTION.
        CATCH CX_SEND_REQ_BCS INTO L_SEND_EXCEPTION.
        CATCH CX_ADDRESS_BCS  INTO L_ADDR_EXCEPTION.
      ENDTRY.
    *&      Form  PREPARE_ATTACHMENT
    FORM PREPARE_ATTACHMENT .
      FIELD-SYMBOLS: <LFS_TABLE>,    " Internal table structure
                     <LFS_CON>.      " Field Content
      DATA: L_TEXT TYPE CHAR1024.     " Text content for mail attachment
      DATA: L_CON TYPE STRING. "(50) TYPE c.        " Field Content in character format
      DATA: L_STR TYPE STRING,
            L_STR1 TYPE STRING.
    *data: w_pernr type TABLE OF I_PERNR.
      DATA: LS_SOLIX TYPE SOLIX.
    *  CONCATENATE 'PERNR' 'FIRST NAME' 'Last Name' C_CR INTO L_TEXT SEPARATED BY '|'.
    *  append l_text to i_attach.
    *  clear l_text.
    * Columns to be tab delimeted
      LOOP AT I_PERNR ASSIGNING <LFS_TABLE>.
        DO.
          ASSIGN COMPONENT SY-INDEX OF STRUCTURE <LFS_TABLE>
                 TO <LFS_CON>.
          IF SY-SUBRC NE 0.
            CONCATENATE C_CR L_TEXT INTO L_TEXT.
    *        CONCATENATE l_str c_cr l_text INTO l_str.
    *        ls_solix-line = l_text.
    *        APPEND ls_solix TO i_attach.
            APPEND L_TEXT TO I_ATTACH.
            EXIT.
          ELSE.
            CLEAR: L_CON.
            MOVE <LFS_CON> TO L_CON.
            CONDENSE L_CON.
            IF SY-INDEX = 1.
              CLEAR: L_TEXT.
              MOVE L_CON TO L_TEXT.
            ELSE.
              CONCATENATE L_TEXT L_CON INTO L_TEXT
                 SEPARATED BY C_TAB.
            ENDIF.
          ENDIF.
        ENDDO.
      ENDLOOP.
    *  i_attach1[] = i_attach[].
    ENDFORM.                    " PREPARE_ATTACHMENT
    Please if any one having 6.0 version please upload it and see..
    Regards
    Sas

    Hi ,
    Did you downloaded from  SOST  using the display icon and inside that 4th tab for attachment ....
    and see?
    Regards
    sas
    pS: THE FIRST page is not allowing the spaces in sdn...
    i am getting o/p as
    pernr vochn norna
    .........0001 f0001 l0001
    .................0002 F0002 L0002
    .......................0003 F0003 L0003.....
    Please remove dots and understand that is the o/p i am getting in my presenation file
    i just expecting the o/p as told earlier..
    Regards
    sas

  • Error while sending E-Mail -- 501 Syntax error in parameters or arguments

    Dear Friends,
    I was trying to send E-Mail using the NTLM Authentication mechanism using the below program:
    import java.util.Properties;
    import javax.mail.Message;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    import javax.mail.PasswordAuthentication;
    import java.util.Date;
    import com.sun.mail.smtp.*;
    public class MailerWithAuthentication
         private String     smtpServer;
         private String      fromEmailId;
         private String      toEmailId;
         private String      ccEmailId;
         private String      bccEmailId;
         private String      subject;
         private String      message;
         private String host;
         public MailerWithAuthentication(String toemail, String msg,String sub,String fromId,String host)
              this.toEmailId = toemail;;
              this.subject = sub;
              this.message = msg;
              this.fromEmailId=fromId;
              this.host=host;
    public void sendMail()
              String mailContent = "";
              try
                   Authenticator authenticator = new Authenticator();
                   Properties props = new Properties();
              props.put("mail.smtp.host",this.host );
              props.put("mail.smtp.port", "25");
              props.put("mail.smtp.auth", "true");
              props.put("mail.smtp.auth.mechanisms", "NTLM");
              props.put("mail.smtp.auth.ntlm.flags", "0x00000200");          
              props.put("mail.smtp.auth.ntlm.domain","sal.ad");
              props.put("mail.debug", "true");
              Session session = Session.getDefaultInstance(props,authenticator);
    Message msg = new MimeMessage(session);          
              MimeMessage message = new MimeMessage(session);
              message.setContent("This is a test", "text/plain");
              message.setFrom(new InternetAddress(this.fromEmailId));
              message.addRecipient(Message.RecipientType.TO,new InternetAddress(this.toEmailId));
              Transport.send(message);
              catch (Exception e)
                   e.printStackTrace();
                   System.out.println("Exception in MailerThread : run: " + e.getMessage());               
    private class Authenticator extends javax.mail.Authenticator {
              private PasswordAuthentication authentication;
              public Authenticator() {
                   String username= "sal.ad\mailuser";
                   String password = "mail@123";          
                   authentication = new PasswordAuthentication(username, password);
              protected PasswordAuthentication getPasswordAuthentication() {
                   return authentication;
    public static void main(String args[])
              try
                   System.out.println(" Usage : java MailerWithAuthentication <To-Email> <Message> <Subject> <From-Email> <Mail-Server-IP>");
                   MailerWithAuthentication mailer = new MailerWithAuthentication (args[0],args[1],args[2],args[3],args[4]);
                   mailer.sendMail();
              catch(Exception e)
                   e.printStackTrace();
    Following is the output while running the program:
    DEBUG: JavaMail version 1.4ea
    DEBUG: java.io.FileNotFoundException: /usr/java/jdk1.5.0_14/jre/lib/javamail.providers (No such file or directory)
    DEBUG: !anyLoaded
    DEBUG: not loading resource: /META-INF/javamail.providers
    DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
    DEBUG: Tables of loaded providers
    DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
    DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
    DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
    DEBUG: !anyLoaded
    DEBUG: not loading resource: /META-INF/javamail.address.map
    DEBUG: java.io.FileNotFoundException: /usr/java/jdk1.5.0_14/jre/lib/javamail.address.map (No such file or directory)
    Mechanishm = NTLM
    DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
    DEBUG SMTP: useEhlo true, useAuth true
    DEBUG SMTP: useEhlo true, useAuth true
    DEBUG SMTP: trying to connect to host "192.168.14.6", port 25, isSSL false
    220 ****************************************************************************
    DEBUG SMTP: connected to host "192.168.14.6", port: 25
    EHLO
    501 Syntax error in parameters or arguments -
    HELO
    501 Syntax error in parameters or arguments -
    javax.mail.MessagingException: 501 Syntax error in parameters or arguments -
    =================================
    The error is :
    EHLO
    501 Syntax error in parameters or arguments -
    HELO
    501 Syntax error in parameters or arguments -
    =================================
    Please tell me what went wrong here. Is it due to any mistake in the program ?
    Thanks in advance.

    hello Anirudh Pucha,
    thanks for your message,
    i'm downloading all the files you advised and one more doubt regarding SOA installation,
    i'm using BPEL Process manager 10.1.3.1.0 installed on my machine and not installed SOA Suite (problem in installing AS Middle tier), i send voice,sms through BPEL PM which works fine, and faced problem in e-mail notification only, according to me with out installing SOA suite we can use BPEL PM or please let me know the procedure to install the downloading files.
    if possible please send me a details in word documents to my mail "[email protected]".
    Thanks again

  • Send a mail with the class CL_HTTP_CLIENT

    hi,
    i use this program and i would send a mail with a attachment file PDF. I try to use the function module SO_NEW_DOCUMENT_ATT_SEND_API1 but i dont know to translate the data XSTRING to internal table.
    Thank you.
    *& Report  ZYTEST_TRANSFER_URL2                                        *
    REPORT  zytest_transfer_url2                    .
    *- begin of internal data
    TYPE-POOLS: swfxc, icon.
    DATA: l_http_client TYPE REF TO if_http_client.
    DATA: l_url TYPE string.
    DATA: l_code TYPE sy-subrc.
    DATA: l_code_string TYPE string.
    DATA: l_message_string TYPE string.
    DATA: lt_http_fields TYPE tihttpnvp.
    DATA: l_http_field_wa TYPE ihttpnvp.
    DATA: l_char_header(40) TYPE c.
    DATA: l_body_string TYPE string.
    DATA : line TYPE string.
    DATA: result_tab TYPE TABLE OF string,
    result_str TYPE string.
    *- end of internal data
    DATA: lv_contents TYPE string.
    DATA: lv_location TYPE string.
    *- begin of parameters
    PARAMETERS: url TYPE swc_value.
    PARAMETERS : receiver TYPE somlreci1-receiver LOWER CASE.
    *- end of parameters
    START-OF-SELECTION.
      PERFORM main.
    *& Form main
    text
    FORM main.
    PERFORM get_contents USING lv_contents.
    *- Create the HTTP-Client
      l_url = url.
    l_proxy_host =
    l_proxy_service =
      CALL METHOD cl_http_client=>create_by_url
      EXPORTING
      url = l_url
    proxy_host = l_proxy_host
    proxy_service = l_proxy_service
      IMPORTING
      client = l_http_client
      EXCEPTIONS
      argument_not_found = 1
      plugin_not_active = 2
      internal_error = 3
      OTHERS = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    *- send the http post
      CALL METHOD l_http_client->send
        EXCEPTIONS
          http_communication_failure = 1
          http_invalid_state         = 2.
      IF sy-subrc <> 0.
        WRITE: / icon_red_light AS ICON.
        CALL METHOD l_http_client->get_last_error
          IMPORTING
            code    = l_code
            MESSAGE = l_message_string.
        CALL METHOD l_http_client->close.
        l_code_string = l_code.
        CONCATENATE 'HTTP-Send: RC=' l_code_string              "#EC NOTEXT
        INTO l_code_string .
        CONCATENATE l_code_string l_message_string
        INTO l_message_string SEPARATED BY space.
        PERFORM print_string USING l_message_string.
        EXIT.
      ENDIF.
    *- receive the result of http post
      CALL METHOD l_http_client->receive
        EXCEPTIONS
          http_communication_failure = 1
          http_invalid_state         = 2.
      IF sy-subrc <> 0.
        WRITE: / icon_red_light AS ICON.
        CALL METHOD l_http_client->get_last_error
          IMPORTING
            code    = l_code
            MESSAGE = l_message_string.
        CALL METHOD l_http_client->close.
        l_code_string = l_code.
        CONCATENATE 'HTTP-Receive: RC=' l_code_string           "#EC NOTEXT
        INTO l_code_string .
        CONCATENATE l_code_string l_message_string
        INTO l_message_string SEPARATED BY space.
        PERFORM print_string USING l_message_string.
        EXIT.
      ENDIF.
    *- print the results
      CALL METHOD l_http_client->response->get_status
        IMPORTING
          code = l_code.
      IF l_code < 300.
    HTTP-codes: 100 - 199 = informations
    HTTP-codes: 200 - 299 = client-request successful (200 = OK)
        WRITE: / icon_green_light AS ICON.
      ELSE.
    HTTP-codes: 300 - 399 = redirected; further actions required
    HTTP-codes: 400 - 499 = client-request incomplete
    HTTP-codes: 500 - 599 = server errors
        WRITE: / icon_red_light AS ICON.
      ENDIF.
    *-- get the http header fields
      CALL METHOD l_http_client->response->get_header_fields
        CHANGING
          fields = lt_http_fields.
      LOOP AT lt_http_fields INTO l_http_field_wa.
        l_char_header = l_http_field_wa-name.
        WRITE: / l_char_header.
        l_char_header = l_http_field_wa-value.
        WRITE: l_char_header.
      ENDLOOP.
      WRITE: / sy-uline.
    *- get the body
      DATA: lv_bin_contents TYPE xstring.
      lv_bin_contents = l_http_client->response->get_data( ).
      PERFORM save_file USING lv_bin_contents.
    ENDFORM. "main
    *& Form print_string
    FORM print_string USING p_string TYPE string.
      REFRESH result_tab.
      SPLIT p_string AT cl_abap_char_utilities=>cr_lf INTO TABLE result_tab.
      LOOP AT result_tab INTO result_str.
        WRITE:/ result_str.
      ENDLOOP.
    ENDFORM. " print_string
    *& Form save_file
    text
    FORM save_file USING lv_bin_contents.
      DATA: save_file(1000) TYPE c VALUE '/tmp/test3.pdf'.
      DATA: lv_file TYPE localfile.
      DATA : g_file(80).
      g_file = url.
      DO.
        SHIFT g_file LEFT UP TO '/'.
        IF sy-subrc NE 0.
          EXIT.
        ENDIF.
        SHIFT g_file LEFT.
      ENDDO.
      SHIFT g_file RIGHT UP TO '.'.
      SHIFT g_file RIGHT.
      lv_file = save_file.
      OPEN DATASET lv_file FOR OUTPUT IN BINARY MODE.
      IF sy-subrc NE 0.
        WRITE:'SY-SUBRC :',sy-subrc.
    MESSAGE i000 WITH text-014. "'File Directory not found'.
        EXIT.
      ENDIF.
      TRANSFER lv_bin_contents TO lv_file.
      CLOSE DATASET lv_file.
      IF sy-subrc <> 0.
        EXIT.
      ENDIF.
      IF sy-subrc EQ 0.
    MESSAGE i000 WITH text-012."'Successfully downloaded to Application
    server'.
        EXIT.
      ENDIF.
    ENDFORM. "save_file

    hi,
    i use this program and i would send a mail with a attachment file PDF. I try to use the function module SO_NEW_DOCUMENT_ATT_SEND_API1 but i dont know to translate the data XSTRING to internal table.
    Thank you.
    *& Report  ZYTEST_TRANSFER_URL2                                        *
    REPORT  zytest_transfer_url2                    .
    *- begin of internal data
    TYPE-POOLS: swfxc, icon.
    DATA: l_http_client TYPE REF TO if_http_client.
    DATA: l_url TYPE string.
    DATA: l_code TYPE sy-subrc.
    DATA: l_code_string TYPE string.
    DATA: l_message_string TYPE string.
    DATA: lt_http_fields TYPE tihttpnvp.
    DATA: l_http_field_wa TYPE ihttpnvp.
    DATA: l_char_header(40) TYPE c.
    DATA: l_body_string TYPE string.
    DATA : line TYPE string.
    DATA: result_tab TYPE TABLE OF string,
    result_str TYPE string.
    *- end of internal data
    DATA: lv_contents TYPE string.
    DATA: lv_location TYPE string.
    *- begin of parameters
    PARAMETERS: url TYPE swc_value.
    PARAMETERS : receiver TYPE somlreci1-receiver LOWER CASE.
    *- end of parameters
    START-OF-SELECTION.
      PERFORM main.
    *& Form main
    text
    FORM main.
    PERFORM get_contents USING lv_contents.
    *- Create the HTTP-Client
      l_url = url.
    l_proxy_host =
    l_proxy_service =
      CALL METHOD cl_http_client=>create_by_url
      EXPORTING
      url = l_url
    proxy_host = l_proxy_host
    proxy_service = l_proxy_service
      IMPORTING
      client = l_http_client
      EXCEPTIONS
      argument_not_found = 1
      plugin_not_active = 2
      internal_error = 3
      OTHERS = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    *- send the http post
      CALL METHOD l_http_client->send
        EXCEPTIONS
          http_communication_failure = 1
          http_invalid_state         = 2.
      IF sy-subrc <> 0.
        WRITE: / icon_red_light AS ICON.
        CALL METHOD l_http_client->get_last_error
          IMPORTING
            code    = l_code
            MESSAGE = l_message_string.
        CALL METHOD l_http_client->close.
        l_code_string = l_code.
        CONCATENATE 'HTTP-Send: RC=' l_code_string              "#EC NOTEXT
        INTO l_code_string .
        CONCATENATE l_code_string l_message_string
        INTO l_message_string SEPARATED BY space.
        PERFORM print_string USING l_message_string.
        EXIT.
      ENDIF.
    *- receive the result of http post
      CALL METHOD l_http_client->receive
        EXCEPTIONS
          http_communication_failure = 1
          http_invalid_state         = 2.
      IF sy-subrc <> 0.
        WRITE: / icon_red_light AS ICON.
        CALL METHOD l_http_client->get_last_error
          IMPORTING
            code    = l_code
            MESSAGE = l_message_string.
        CALL METHOD l_http_client->close.
        l_code_string = l_code.
        CONCATENATE 'HTTP-Receive: RC=' l_code_string           "#EC NOTEXT
        INTO l_code_string .
        CONCATENATE l_code_string l_message_string
        INTO l_message_string SEPARATED BY space.
        PERFORM print_string USING l_message_string.
        EXIT.
      ENDIF.
    *- print the results
      CALL METHOD l_http_client->response->get_status
        IMPORTING
          code = l_code.
      IF l_code < 300.
    HTTP-codes: 100 - 199 = informations
    HTTP-codes: 200 - 299 = client-request successful (200 = OK)
        WRITE: / icon_green_light AS ICON.
      ELSE.
    HTTP-codes: 300 - 399 = redirected; further actions required
    HTTP-codes: 400 - 499 = client-request incomplete
    HTTP-codes: 500 - 599 = server errors
        WRITE: / icon_red_light AS ICON.
      ENDIF.
    *-- get the http header fields
      CALL METHOD l_http_client->response->get_header_fields
        CHANGING
          fields = lt_http_fields.
      LOOP AT lt_http_fields INTO l_http_field_wa.
        l_char_header = l_http_field_wa-name.
        WRITE: / l_char_header.
        l_char_header = l_http_field_wa-value.
        WRITE: l_char_header.
      ENDLOOP.
      WRITE: / sy-uline.
    *- get the body
      DATA: lv_bin_contents TYPE xstring.
      lv_bin_contents = l_http_client->response->get_data( ).
      PERFORM save_file USING lv_bin_contents.
    ENDFORM. "main
    *& Form print_string
    FORM print_string USING p_string TYPE string.
      REFRESH result_tab.
      SPLIT p_string AT cl_abap_char_utilities=>cr_lf INTO TABLE result_tab.
      LOOP AT result_tab INTO result_str.
        WRITE:/ result_str.
      ENDLOOP.
    ENDFORM. " print_string
    *& Form save_file
    text
    FORM save_file USING lv_bin_contents.
      DATA: save_file(1000) TYPE c VALUE '/tmp/test3.pdf'.
      DATA: lv_file TYPE localfile.
      DATA : g_file(80).
      g_file = url.
      DO.
        SHIFT g_file LEFT UP TO '/'.
        IF sy-subrc NE 0.
          EXIT.
        ENDIF.
        SHIFT g_file LEFT.
      ENDDO.
      SHIFT g_file RIGHT UP TO '.'.
      SHIFT g_file RIGHT.
      lv_file = save_file.
      OPEN DATASET lv_file FOR OUTPUT IN BINARY MODE.
      IF sy-subrc NE 0.
        WRITE:'SY-SUBRC :',sy-subrc.
    MESSAGE i000 WITH text-014. "'File Directory not found'.
        EXIT.
      ENDIF.
      TRANSFER lv_bin_contents TO lv_file.
      CLOSE DATASET lv_file.
      IF sy-subrc <> 0.
        EXIT.
      ENDIF.
      IF sy-subrc EQ 0.
    MESSAGE i000 WITH text-012."'Successfully downloaded to Application
    server'.
        EXIT.
      ENDIF.
    ENDFORM. "save_file

  • Sending HTML mail using code in workflow

    Hi All
    I follow somerecomendation to create a program to send the mail out. using a program
    My code looks as the following.
        DATA:   l_docdata TYPE sodocchgi1,
                li_content TYPE TABLE OF solisti1,
                li_receiver TYPE TABLE OF somlreci1,
                l_ename     TYPE pa0002-cname,
                l_text(255),
                lw_receiver TYPE somlreci1.
        l_docdata-obj_name = 'Notification'.
        l_docdata-sensitivty = 'P'.
        l_docdata-proc_syst = sy-sysid.
        l_docdata-proc_clint = sy-mandt.
        l_docdata-obj_descr = 'TEST'.
    l_text  = 'Testing Content'.
    APPEND l_text TO li_content. CLEAR l_text.
    lw_receiver-receiver = 'MyMailtest@GM ail.com'.
    lw_receiver-rec_type = 'U'.
    APPEND lw_receiver TO li_receiver.
        CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
          EXPORTING
            document_data              = l_docdata
            commit_work                = 'X'
            DOCUMENT_TYPE              = 'HTM'
          TABLES
            object_content             = li_content
            receivers                  = li_receiver
          EXCEPTIONS
            too_many_receivers         = 1
            document_not_sent          = 2
            document_type_not_exist    = 3
            operation_no_authorization = 4
            parameter_error            = 5
            x_error                    = 6
            enqueue_error              = 7
            OTHERS                     = 8.
    I try to use the code above and i manage to send the mail out. However when i change the l_text  = 'Testing Content'  to  l_text  = '<A HREF="http://www.google.com">Click Here</A>'  , it does not reach my mailbox even in in transaction SCOT, i can see that it was succesfully transmited.
    Anyone have any idea about this?
    Thanks.
    Regards,
    Bryan.

    Hey PJ,
    I manage to send out the email using the htm type. However, instead of having a hyperlink saying click here and it link to another page, i am getting something like this in the email.
    Click Here <http://www.google.com> 
    In my code, i write 
    <A HREF="http://www.google.com">Click Here</A>
    , but the content just turn to above. What i wan is a CLICK HERE link and will link to google.
    Thanks.
    Regards,
    Bryan.

  • Sending a mail from oracle database

    Hi,
    I have a requirement to send a mail from oracle database.I use UTL_TCP package for this.Although my procedure is executed successfully,i dont get the mails in my inbox.Please help me to figure out a solution.
    Thanks in advance....

    Hi, you must use UTL_SMTP package for send emails, it has more performance and features for debug. You must look the next code, this is a example for send emails.
    DECLARE
    c UTL_SMTP.CONNECTION;
    PROCEDURE send_header(name IN VARCHAR2, header IN VARCHAR2) AS
    BEGIN
    UTL_SMTP.WRITE_DATA(c, name || ': ' || header || UTL_TCP.CRLF);
    END;
    BEGIN
    c := UTL_SMTP.OPEN_CONNECTION('smtp-server.acme.com');
    UTL_SMTP.HELO(c, 'foo.com');
    UTL_SMTP.MAIL(c, '[email protected]');
    UTL_SMTP.RCPT(c, '[email protected]');
    UTL_SMTP.OPEN_DATA(c);
    send_header('From', '"Sender" <[email protected]>');
    send_header('To', '"Recipient" <[email protected]>');
    send_header('Subject', 'Hello');
    UTL_SMTP.WRITE_DATA(c, UTL_TCP.CRLF || 'Hello, world!');
    UTL_SMTP.CLOSE_DATA(c);
    UTL_SMTP.QUIT(c);
    EXCEPTION
    WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
    BEGIN
    UTL_SMTP.QUIT(c);
    EXCEPTION
    WHEN UTL_SMTP.TRANSIENT_ERROR OR UTL_SMTP.PERMANENT_ERROR THEN
    NULL; -- When the SMTP server is down or unavailable, we don't have
    -- a connection to the server. The QUIT call will raise an
    -- exception that we can ignore.
    END;
    raise_application_error(-20000,
    'Failed to send mail due to the following error: ' || sqlerrm);
    END;
    Also review the next link for get more information about the UTL_SMTP packege.
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_smtp.htm#sthref15587
    Regards.

  • Blind copy while sending a mail...

    Hi Friends,
    How to set a recipient under the blind copy recipient list (BCC) while sending a mail using the function module SO_DOCUMENT_SEND_API1. I have checked the flag <b>blind_copy</b> but not seeing that recipient under the bcc list. Some body please help in this.
    Thanx in advance.
    Ram

    See the example program :
    TABLES: SOLI.
       Data Declarations
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: SAPID     RADIOBUTTON GROUP ADDR,
                EMAIL_ID  RADIOBUTTON GROUP ADDR.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    SELECT-OPTIONS: ID  FOR SOLI-LINE NO INTERVALS.
    SELECT-OPTIONS: CC  FOR SOLI-LINE NO INTERVALS.
    SELECT-OPTIONS: BCC FOR SOLI-LINE NO INTERVALS.
    *PARAMETERS:     SENDER LIKE SOUD-USRNAM.
    SELECTION-SCREEN END OF BLOCK B2.
    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-009.
    PARAMETERS: SUB_LINE(60) TYPE C.
    SELECTION-SCREEN END OF BLOCK B3.
    SELECTION-SCREEN BEGIN OF BLOCK B4 WITH FRAME TITLE TEXT-008.
    SELECT-OPTIONS:  TEXT1 FOR SOLI-LINE NO INTERVALS.
    SELECTION-SCREEN END OF BLOCK B4.
    SELECTION-SCREEN BEGIN OF BLOCK B5 WITH FRAME TITLE TEXT-009.
    SELECTION-SCREEN BEGIN OF LINE.
    parameters: P_ATTACH as checkbox.
    selection-screen comment 3(30) text-010.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B5.
    DATA: MAIL_CONTENT LIKE SOLI OCCURS 0 WITH HEADER LINE,
          SUBJECT_LINE LIKE SOOD1-OBJDES.
       Start of program processing
    START-OF-SELECTION.
    Get the Body of the Message from the selection screen or from
    calling program
      LOOP AT TEXT1.
        MOVE   TEXT1-LOW TO MAIL_CONTENT-LINE.
        APPEND MAIL_CONTENT.
      ENDLOOP.
    Subject of the Message
      MOVE  SUB_LINE TO SUBJECT_LINE.
    call a routine to send the workflow message
      PERFORM SEND_EMAIL
              TABLES MAIL_CONTENT
              USING  SUBJECT_LINE.
    *&      Form  SEND_EMAIL
    Send Workflow message
    FORM SEND_EMAIL TABLES OBJCONT STRUCTURE MAIL_CONTENT
                    USING  TITLE   LIKE SOOD-OBJDES.
      DATA: RECEIVERS LIKE SOOS1 OCCURS 0 WITH HEADER LINE,
            TSOOD1 LIKE SOOD1,
            PACKING_LIST LIKE SOXPL OCCURS 0 WITH HEADER LINE,
            OBJCONT1 LIKE MAIL_CONTENT OCCURS 0 WITH HEADER LINE.
      DATA: BEGIN OF AT_HEADER OCCURS 1.
              INCLUDE STRUCTURE SOLI.
      DATA: END OF AT_HEADER.
      CLEAR: TSOOD1,
             RECEIVERS.
      REFRESH RECEIVERS.
      MOVE:  SY-LANGU       TO TSOOD1-OBJLA,
             'Email Notice' TO TSOOD1-OBJNAM,
             'C'            TO TSOOD1-OBJSNS,
             TITLE          TO TSOOD1-OBJDES.
           'SCHIAVONIR'   TO TSOOD1-OWNNAM.
    loop through each ID and move them to recipient table
      LOOP AT ID.
        TRANSLATE ID-LOW TO UPPER CASE.
        IF SAPID = 'X'.
          MOVE: SY-DATUM     TO RECEIVERS-RCDAT,
                SY-UZEIT     TO RECEIVERS-RCTIM,
                ' '          TO RECEIVERS-RECESC,
                 ID-LOW      TO RECEIVERS-RECNAM,
                'X'          TO RECEIVERS-SNDEX.
        ELSE.
          MOVE: SY-DATUM     TO RECEIVERS-RCDAT,
                SY-UZEIT     TO RECEIVERS-RCTIM,
                'U'          TO RECEIVERS-RECESC,
                'U-'         TO RECEIVERS-RECNAM,
                ID-LOW       TO RECEIVERS-RECEXTNAM.
        ENDIF.
        APPEND RECEIVERS.
        CLEAR RECEIVERS.
      ENDLOOP.
    loop through each CC and move them to recipient table
      LOOP AT CC.
        TRANSLATE CC-LOW TO UPPER CASE.
        IF SAPID = 'X'.
          MOVE: SY-DATUM     TO RECEIVERS-RCDAT,
                SY-UZEIT     TO RECEIVERS-RCTIM,
                ' '          TO RECEIVERS-RECESC,
                 CC-LOW      TO RECEIVERS-RECNAM,
                'X'          TO RECEIVERS-SNDEX,
                'X'          TO RECEIVERS-SNDCP.
        ELSE.
          MOVE: SY-DATUM     TO RECEIVERS-RCDAT,
                SY-UZEIT     TO RECEIVERS-RCTIM,
                'U'          TO RECEIVERS-RECESC,
                'U-'         TO RECEIVERS-RECNAM,
                CC-LOW       TO RECEIVERS-RECEXTNAM,
                'X'          TO RECEIVERS-SNDCP.
        ENDIF.
        APPEND RECEIVERS.
        CLEAR RECEIVERS.
      ENDLOOP.
    loop through each BCC and move them to recipient table
      LOOP AT BCC.
        TRANSLATE BCC-LOW TO UPPER CASE.
        IF SAPID = 'X'.
          MOVE: SY-DATUM     TO RECEIVERS-RCDAT,
                SY-UZEIT     TO RECEIVERS-RCTIM,
                ' '          TO RECEIVERS-RECESC,
                 BCC-LOW     TO RECEIVERS-RECNAM,
                'X'          TO RECEIVERS-SNDEX,
                'X'          TO RECEIVERS-SNDBC.
        ELSE.
          MOVE: SY-DATUM     TO RECEIVERS-RCDAT,
                SY-UZEIT     TO RECEIVERS-RCTIM,
                'U'          TO RECEIVERS-RECESC,
                'U-'         TO RECEIVERS-RECNAM,
                BCC-LOW      TO RECEIVERS-RECEXTNAM,
                'X'          TO RECEIVERS-SNDBC.
        ENDIF.
        APPEND RECEIVERS.
        CLEAR RECEIVERS.
      ENDLOOP.
      AT_HEADER = SY-DATUM.
      APPEND AT_HEADER.
      AT_HEADER = SY-UZEIT.
      APPEND AT_HEADER.
    IF SENDER EQ SPACE.
       SENDER = SY-UNAME.
    ENDIF.
      IF P_ATTACH EQ 'X'.
        PACKING_LIST-HEAD_START = 1.
        PACKING_LIST-HEAD_NUM   = 2.
        PACKING_LIST-BODY_START = 1.
        PACKING_LIST-BODY_NUM   = 9999.
        PACKING_LIST-FILE_EXT   = 'TXT'.
        APPEND PACKING_LIST.
        CLEAR  PACKING_LIST.
        APPEND LINES OF OBJCONT TO OBJCONT1.
        REFRESH OBJCONT.
      ENDIF.
      CALL FUNCTION 'SO_OBJECT_SEND'
           EXPORTING
                OBJECT_HD_CHANGE           = TSOOD1
                OBJECT_TYPE                = 'RAW'
           TABLES
                OBJCONT                    = OBJCONT
                RECEIVERS                  = RECEIVERS
                ATT_HEAD                   = AT_HEADER
                ATT_CONT                   = OBJCONT1
                PACKING_LIST               = PACKING_LIST
           EXCEPTIONS
                ACTIVE_USER_NOT_EXIST      = 1
                COMMUNICATION_FAILURE      = 2
                COMPONENT_NOT_AVAILABLE    = 3
                FOLDER_NOT_EXIST           = 4
                FOLDER_NO_AUTHORIZATION    = 5
                FORWARDER_NOT_EXIST        = 6
                NOTE_NOT_EXIST             = 7
                OBJECT_NOT_EXIST           = 8
                OBJECT_NOT_SENT            = 9
                OBJECT_NO_AUTHORIZATION    = 10
                OBJECT_TYPE_NOT_EXIST      = 11
                OPERATION_NO_AUTHORIZATION = 12
                OWNER_NOT_EXIST            = 13
                PARAMETER_ERROR            = 14
                SUBSTITUTE_NOT_ACTIVE      = 15
                SUBSTITUTE_NOT_DEFINED     = 16
                SYSTEM_FAILURE             = 17
                TOO_MUCH_RECEIVERS         = 18
                USER_NOT_EXIST             = 19
                X_ERROR                    = 20
                OTHERS                     = 21.
    ENDFORM.                               " SEND_EMAIL
    text elements
    BCC     Blind CC
    CC     Copy to
    EMAIL_ID     Email ID
    ID     ?...
    P_ATTACH     Send as Attachment?
    SAPID     SAP ID
    SUB_LINE     Subject
    TEXT1     Message

  • Mail crashes when i wanted to send a mail

    I don't what happen, but i recently update my OS, and now when i want to send a mail from my app mail, it closed inmediatley, i obtain this information from the console, could you help me?
    Thanks a lot
    Process:         Mail [382]
    Path:            /Applications/Mail.app/Contents/MacOS/Mail
    Identifier:      com.apple.mail
    Version:         7.3 (1878.6)
    Build Info:      Mail-1878006000000000~1
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [168]
    Responsible:     Mail [382]
    User ID:         501
    Date/Time:       2014-09-22 19:20:08.344 -0500
    OS Version:      Mac OS X 10.9.5 (13F34)
    Report Version:  11
    Anonymous UUID:  0AC8739E-4EB0-5EBD-6AE2-AB675DDAC737
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x000000011c373000
    VM Regions Near 0x11c373000:
        WebKit Malloc          000000011c273000-000000011c373000 [ 1024K] rw-/rwx SM=PRV 
    --> WebKit Malloc          000000011c373000-000000011c374000 [    4K] ---/rwx SM=NUL 
        JS VM register file (r 000000011c374000-000000011c774000 [ 4096K] rw-/rwx SM=NUL  reserved VM address space (unallocated)
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   libsystem_platform.dylib       0x00007fff8ec589a9 _platform_bzero$VARIANT$Ivybridge + 41
    1   com.apple.WebCore             0x00007fff8be1e0cc WebCore::getPropertyNameAtomicString(WebCore::CSSPropertyID) + 108
    2   com.apple.WebCore             0x00007fff8be1e040 WebCore::getPropertyNameString(WebCore::CSSPropertyID) + 16
    3   com.apple.WebCore             0x00007fff8c7320f2 WebCore::StylePropertySet::PropertyReference::cssName() const + 66
    4   com.apple.WebCore             0x00007fff8c65b588 WebCore::PropertySetCSSStyleDeclaration::item(unsigned int) const + 40
    5   com.apple.WebCore             0x00007fff8c191496 -[DOMCSSStyleDeclaration item:] + 54
    6   com.apple.mail                 0x000000010f7695ef 0x10f6ca000 + 652783
    7   com.apple.mail                 0x000000010f7693dd 0x10f6ca000 + 652253
    8   com.apple.mail                 0x000000010f764175 0x10f6ca000 + 631157
    9   com.apple.mail                 0x000000010f75fcaf 0x10f6ca000 + 613551
    10  com.apple.CoreFoundation       0x00007fff86c0d9ac __invoking___ + 140
    11  com.apple.CoreFoundation       0x00007fff86c0d814 -[NSInvocation invoke] + 308
    12  com.apple.MailCore             0x00007fff8fc3f448 -[MCThrowingInvocationOperation main] + 40
    13  com.apple.MailCore             0x00007fff8fbeb578 -[MCMainThreadInvocationOperation main] + 55
    14  com.apple.Foundation           0x00007fff90c0d7ce __NSThreadPerformPerform + 229
    15  com.apple.CoreFoundation       0x00007fff86c535b1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    16  com.apple.CoreFoundation       0x00007fff86c44c62 __CFRunLoopDoSources0 + 242
    17  com.apple.CoreFoundation       0x00007fff86c443ef __CFRunLoopRun + 831
    18  com.apple.CoreFoundation       0x00007fff86c43e75 CFRunLoopRunSpecific + 309
    19  com.apple.HIToolbox           0x00007fff8d60ca0d RunCurrentEventLoopInMode + 226
    20  com.apple.HIToolbox           0x00007fff8d60c7b7 ReceiveNextEventCommon + 479
    21  com.apple.HIToolbox           0x00007fff8d60c5bc _BlockUntilNextEventMatchingListInModeWithFilter + 65
    22  com.apple.AppKit               0x00007fff892e724e _DPSNextEvent + 1434
    23  com.apple.AppKit               0x00007fff892e689b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
    24  com.apple.AppKit               0x00007fff892da99c -[NSApplication run] + 553
    25  com.apple.AppKit               0x00007fff892c5783 NSApplicationMain + 940
    26  libdyld.dylib                 0x00007fff8d88c5fd start + 1
    Thread 1:: Dispatch queue: com.apple.libdispatch-manager
    0   libsystem_kernel.dylib         0x00007fff8530b662 kevent64 + 10
    1   libdispatch.dylib             0x00007fff8730b421 _dispatch_mgr_invoke + 239
    2   libdispatch.dylib             0x00007fff8730b136 _dispatch_mgr_thread + 52
    Thread 2:
    0   libsystem_kernel.dylib         0x00007fff8530ae6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x00007fff8f7aef08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib       0x00007fff8f7b1fb9 start_wqthread + 13
    Thread 3:
    0   libsystem_kernel.dylib         0x00007fff85306a1a mach_msg_trap + 10
    1   libsystem_kernel.dylib         0x00007fff85305d18 mach_msg + 64
    2   com.apple.CoreFoundation       0x00007fff86c44f15 __CFRunLoopServiceMachPort + 181
    3   com.apple.CoreFoundation       0x00007fff86c44539 __CFRunLoopRun + 1161
    4   com.apple.CoreFoundation       0x00007fff86c43e75 CFRunLoopRunSpecific + 309
    5   com.apple.AppKit               0x00007fff8948705e _NSEventThread + 144
    6   libsystem_pthread.dylib       0x00007fff8f7ad899 _pthread_body + 138
    7   libsystem_pthread.dylib       0x00007fff8f7ad72a _pthread_start + 137
    8   libsystem_pthread.dylib       0x00007fff8f7b1fc9 thread_start + 13
    Thread 4:
    0   libsystem_kernel.dylib         0x00007fff8530ae6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x00007fff8f7aef08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib       0x00007fff8f7b1fb9 start_wqthread + 13
    Thread 5:: com.apple.NSURLConnectionLoader
    0   libsystem_kernel.dylib         0x00007fff85306a1a mach_msg_trap + 10
    1   libsystem_kernel.dylib         0x00007fff85305d18 mach_msg + 64
    2   com.apple.CoreFoundation       0x00007fff86c44f15 __CFRunLoopServiceMachPort + 181
    3   com.apple.CoreFoundation       0x00007fff86c44539 __CFRunLoopRun + 1161
    4   com.apple.CoreFoundation       0x00007fff86c43e75 CFRunLoopRunSpecific + 309
    5   com.apple.Foundation           0x00007fff90c10ff7 +[NSURLConnection(Loader) _resourceLoadLoop:] + 348
    6   com.apple.Foundation           0x00007fff90c10dfb __NSThread__main__ + 1318
    7   libsystem_pthread.dylib       0x00007fff8f7ad899 _pthread_body + 138
    8   libsystem_pthread.dylib       0x00007fff8f7ad72a _pthread_start + 137
    9   libsystem_pthread.dylib       0x00007fff8f7b1fc9 thread_start + 13
    Thread 6:: com.apple.CFSocket.private
    0   libsystem_kernel.dylib         0x00007fff8530a9aa __select + 10
    1   com.apple.CoreFoundation       0x00007fff86c90a03 __CFSocketManager + 867
    2   libsystem_pthread.dylib       0x00007fff8f7ad899 _pthread_body + 138
    3   libsystem_pthread.dylib       0x00007fff8f7ad72a _pthread_start + 137
    4   libsystem_pthread.dylib       0x00007fff8f7b1fc9 thread_start + 13
    Thread 7:: com.apple.CoreAnimation.render-server
    0   libsystem_kernel.dylib         0x00007fff85306a1a mach_msg_trap + 10
    1   libsystem_kernel.dylib         0x00007fff85305d18 mach_msg + 64
    2   com.apple.QuartzCore           0x00007fff87188377 CA::Render::Server::server_thread(void*) + 195
    3   com.apple.QuartzCore           0x00007fff871882ad thread_fun + 25
    4   libsystem_pthread.dylib       0x00007fff8f7ad899 _pthread_body + 138
    5   libsystem_pthread.dylib       0x00007fff8f7ad72a _pthread_start + 137
    6   libsystem_pthread.dylib       0x00007fff8f7b1fc9 thread_start + 13
    Thread 8:
    0   libsystem_kernel.dylib         0x00007fff8530ae6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x00007fff8f7aef08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib       0x00007fff8f7b1fb9 start_wqthread + 13
    Thread 9:: JavaScriptCore::BlockFree
    0   libsystem_kernel.dylib         0x00007fff8530a716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x00007fff8f7afc3b _pthread_cond_wait + 727
    2   com.apple.JavaScriptCore       0x00007fff8cceccb5 JSC::BlockAllocator::blockFreeingThreadMain() + 261
    3   com.apple.JavaScriptCore       0x00007fff8cce1f4f ***::wtfThreadEntryPoint(void*) + 15
    4   libsystem_pthread.dylib       0x00007fff8f7ad899 _pthread_body + 138
    5   libsystem_pthread.dylib       0x00007fff8f7ad72a _pthread_start + 137
    6   libsystem_pthread.dylib       0x00007fff8f7b1fc9 thread_start + 13
    Thread 10:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x00007fff8530a716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x00007fff8f7afc3b _pthread_cond_wait + 727
    2   com.apple.JavaScriptCore       0x00007fff8cced727 JSC::GCThread::waitForNextPhase() + 119
    3   com.apple.JavaScriptCore       0x00007fff8cced5b8 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore       0x00007fff8cce1f4f ***::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff8f7ad899 _pthread_body + 138
    6   libsystem_pthread.dylib       0x00007fff8f7ad72a _pthread_start + 137
    7   libsystem_pthread.dylib       0x00007fff8f7b1fc9 thread_start + 13
    Thread 11:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x00007fff8530a716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x00007fff8f7afc3b _pthread_cond_wait + 727
    2   com.apple.JavaScriptCore       0x00007fff8cced727 JSC::GCThread::waitForNextPhase() + 119
    3   com.apple.JavaScriptCore       0x00007fff8cced5b8 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore       0x00007fff8cce1f4f ***::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff8f7ad899 _pthread_body + 138
    6   libsystem_pthread.dylib       0x00007fff8f7ad72a _pthread_start + 137
    7   libsystem_pthread.dylib       0x00007fff8f7b1fc9 thread_start + 13
    Thread 12:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x00007fff8530a716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x00007fff8f7afc3b _pthread_cond_wait + 727
    2   com.apple.JavaScriptCore       0x00007fff8cced727 JSC::GCThread::waitForNextPhase() + 119
    3   com.apple.JavaScriptCore       0x00007fff8cced5b8 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore       0x00007fff8cce1f4f ***::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff8f7ad899 _pthread_body + 138
    6   libsystem_pthread.dylib       0x00007fff8f7ad72a _pthread_start + 137
    7   libsystem_pthread.dylib       0x00007fff8f7b1fc9 thread_start + 13
    Thread 13:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x00007fff8530a716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x00007fff8f7afc3b _pthread_cond_wait + 727
    2   com.apple.JavaScriptCore       0x00007fff8cced727 JSC::GCThread::waitForNextPhase() + 119
    3   com.apple.JavaScriptCore       0x00007fff8cced5b8 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore       0x00007fff8cce1f4f ***::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff8f7ad899 _pthread_body + 138
    6   libsystem_pthread.dylib       0x00007fff8f7ad72a _pthread_start + 137
    7   libsystem_pthread.dylib       0x00007fff8f7b1fc9 thread_start + 13
    Thread 14:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x00007fff8530a716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x00007fff8f7afc3b _pthread_cond_wait + 727
    2   com.apple.JavaScriptCore       0x00007fff8cced727 JSC::GCThread::waitForNextPhase() + 119
    3   com.apple.JavaScriptCore       0x00007fff8cced5b8 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore       0x00007fff8cce1f4f ***::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff8f7ad899 _pthread_body + 138
    6   libsystem_pthread.dylib       0x00007fff8f7ad72a _pthread_start + 137
    7   libsystem_pthread.dylib       0x00007fff8f7b1fc9 thread_start + 13
    Thread 15:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x00007fff8530a716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x00007fff8f7afc3b _pthread_cond_wait + 727
    2   com.apple.JavaScriptCore       0x00007fff8cced727 JSC::GCThread::waitForNextPhase() + 119
    3   com.apple.JavaScriptCore       0x00007fff8cced5b8 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore       0x00007fff8cce1f4f ***::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff8f7ad899 _pthread_body + 138
    6   libsystem_pthread.dylib       0x00007fff8f7ad72a _pthread_start + 137
    7   libsystem_pthread.dylib       0x00007fff8f7b1fc9 thread_start + 13
    Thread 16:
    0   libsystem_kernel.dylib         0x00007fff8530ae6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x00007fff8f7aef08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib       0x00007fff8f7b1fb9 start_wqthread + 13
    Thread 17:
    0   libsystem_kernel.dylib         0x00007fff8530ae6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x00007fff8f7aef08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib       0x00007fff8f7b1fb9 start_wqthread + 13
    Thread 18:
    0   libsystem_kernel.dylib         0x00007fff8530ae6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x00007fff8f7aef08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib       0x00007fff8f7b1fb9 start_wqthread + 13
    Thread 19:
    0   libsystem_kernel.dylib         0x00007fff8530ae6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x00007fff8f7aef08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib       0x00007fff8f7b1fb9 start_wqthread + 13
    Thread 20:
    0   libsystem_kernel.dylib         0x00007fff8530ae6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x00007fff8f7aef08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib       0x00007fff8f7b1fb9 start_wqthread + 13
    Thread 21:
    0   libsystem_kernel.dylib         0x00007fff8530ae6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x00007fff8f7aef08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib       0x00007fff8f7b1fb9 start_wqthread + 13
    Thread 22:: JavaScriptCore::BlockFree
    0   libsystem_kernel.dylib         0x00007fff8530a716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x00007fff8f7afc3b _pthread_cond_wait + 727
    2   com.apple.JavaScriptCore       0x00007fff8cced106 ***::ThreadCondition::timedWait(***::Mutex&, double) + 118
    3   com.apple.JavaScriptCore       0x00007fff8ccecc25 JSC::BlockAllocator::blockFreeingThreadMain() + 117
    4   com.apple.JavaScriptCore       0x00007fff8cce1f4f ***::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff8f7ad899 _pthread_body + 138
    6   libsystem_pthread.dylib       0x00007fff8f7ad72a _pthread_start + 137
    7   libsystem_pthread.dylib       0x00007fff8f7b1fc9 thread_start + 13
    Thread 23:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x00007fff8530a716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x00007fff8f7afc3b _pthread_cond_wait + 727
    2   com.apple.JavaScriptCore       0x00007fff8cced727 JSC::GCThread::waitForNextPhase() + 119
    3   com.apple.JavaScriptCore       0x00007fff8cced5b8 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore       0x00007fff8cce1f4f ***::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff8f7ad899 _pthread_body + 138
    6   libsystem_pthread.dylib       0x00007fff8f7ad72a _pthread_start + 137
    7   libsystem_pthread.dylib       0x00007fff8f7b1fc9 thread_start + 13
    Thread 24:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x00007fff8530a716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x00007fff8f7afc3b _pthread_cond_wait + 727
    2   com.apple.JavaScriptCore       0x00007fff8cced727 JSC::GCThread::waitForNextPhase() + 119
    3   com.apple.JavaScriptCore       0x00007fff8cced5b8 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore       0x00007fff8cce1f4f ***::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff8f7ad899 _pthread_body + 138
    6   libsystem_pthread.dylib       0x00007fff8f7ad72a _pthread_start + 137
    7   libsystem_pthread.dylib       0x00007fff8f7b1fc9 thread_start + 13
    Thread 25:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x00007fff8530a716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x00007fff8f7afc3b _pthread_cond_wait + 727
    2   com.apple.JavaScriptCore       0x00007fff8cced727 JSC::GCThread::waitForNextPhase() + 119
    3   com.apple.JavaScriptCore       0x00007fff8cced5b8 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore       0x00007fff8cce1f4f ***::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff8f7ad899 _pthread_body + 138
    6   libsystem_pthread.dylib       0x00007fff8f7ad72a _pthread_start + 137
    7   libsystem_pthread.dylib       0x00007fff8f7b1fc9 thread_start + 13
    Thread 26:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x00007fff8530a716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x00007fff8f7afc3b _pthread_cond_wait + 727
    2   com.apple.JavaScriptCore       0x00007fff8cced727 JSC::GCThread::waitForNextPhase() + 119
    3   com.apple.JavaScriptCore       0x00007fff8cced5b8 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore       0x00007fff8cce1f4f ***::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff8f7ad899 _pthread_body + 138
    6   libsystem_pthread.dylib       0x00007fff8f7ad72a _pthread_start + 137
    7   libsystem_pthread.dylib       0x00007fff8f7b1fc9 thread_start + 13
    Thread 27:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x00007fff8530a716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x00007fff8f7afc3b _pthread_cond_wait + 727
    2   com.apple.JavaScriptCore       0x00007fff8cced727 JSC::GCThread::waitForNextPhase() + 119
    3   com.apple.JavaScriptCore       0x00007fff8cced5b8 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore       0x00007fff8cce1f4f ***::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff8f7ad899 _pthread_body + 138
    6   libsystem_pthread.dylib       0x00007fff8f7ad72a _pthread_start + 137
    7   libsystem_pthread.dylib       0x00007fff8f7b1fc9 thread_start + 13
    Thread 28:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x00007fff8530a716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x00007fff8f7afc3b _pthread_cond_wait + 727
    2   com.apple.JavaScriptCore       0x00007fff8cced727 JSC::GCThread::waitForNextPhase() + 119
    3   com.apple.JavaScriptCore       0x00007fff8cced5b8 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore       0x00007fff8cce1f4f ***::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff8f7ad899 _pthread_body + 138
    6   libsystem_pthread.dylib       0x00007fff8f7ad72a _pthread_start + 137
    7   libsystem_pthread.dylib       0x00007fff8f7b1fc9 thread_start + 13
    Thread 0 crashed with X86 Thread State (64-bit):
      rax: 0x0000000000000000  rbx: 0x000000011c283108  rcx: 0x0000000115f7f7a8  rdx: 0x000000011c283108
      rdi: 0x000000011c373000  rsi: 0x0000000000000000  rbp: 0x00007fff50533fe0  rsp: 0x00007fff50533fe0
       r8: 0x8ef87693e9c0f76e   r9: 0x9af87692e670282b  r10: 0x1400000000087dc5  r11: 0x8ef8096c9c866c7e
      r12: 0x00006000008310e0  r13: 0x000000010fa6c548  r14: 0x00007fff7547f9a8  r15: 0x00000000000000a3
      rip: 0x00007fff8ec589a9  rfl: 0x0000000000010206  cr2: 0x000000011c373000
    Logical CPU:     0
    Error Code:      0x00000006
    Trap Number:     14
    Binary Images:
           0x10f6ca000 -        0x10f9bcfff  com.apple.mail (7.3 - 1878.6) <84C51E40-00C5-3710-8A99-04A0F6D078F5> /Applications/Mail.app/Contents/MacOS/Mail
           0x10fba3000 -        0x10fbaefff  com.apple.Notes.iaplugin (2.0 - 284) <BF5A1CB0-1040-3781-B19B-C7C4C864DFEC> /System/Library/InternetAccounts/Notes.iaplugin/Contents/MacOS/Notes
           0x10fbdf000 -        0x10fbebff7  com.apple.calendar.iaplugin (7.0 - 1366) <C5D4A563-A116-3442-98A9-D71B17F1E211> /System/Library/InternetAccounts/Calendar.iaplugin/Contents/MacOS/Calendar
           0x10fbf4000 -        0x10fc00ff7  com.apple.reminders.iaplugin (7.0 - 1366) <746ABED7-9075-34FA-B938-19D19FAF06B9> /System/Library/InternetAccounts/Reminders.iaplugin/Contents/MacOS/Reminders
           0x10fd09000 -        0x10fd0affa +cl_kernels (???) <A72E8C15-79F0-4DED-9C67-8AC3F910D6DC> cl_kernels
           0x111997000 -        0x11199afff  libspindump.dylib (161.2) <E16E9BFB-8F34-366F-BE10-48993F5843BC> /usr/lib/libspindump.dylib
           0x113d30000 -        0x113d37fff  com.apple.SyncedDefaults (1.3 - 91.30.1) <26F0AD10-86CC-31A4-899C-097269680E05> /System/Library/PrivateFrameworks/SyncedDefaults.framework/SyncedDefaults
           0x114044000 -        0x114045fff  com.apple.AddressBook.LocalSourceBundle (8.0 - 1371.2) <E63CFFBD-3CC0-329C-BB89-17996C9F75E4> /System/Library/Address Book Plug-Ins/LocalSource.sourcebundle/Contents/MacOS/LocalSource
           0x114058000 -        0x11405cfff  com.apple.DirectoryServicesSource (8.0 - 1371.2) <BDB90569-EC4F-379E-948A-C354C9467E86> /System/Library/Address Book Plug-Ins/DirectoryServices.sourcebundle/Contents/MacOS/DirectoryServices
           0x115971000 -        0x115973fff  apop.so (170.1) <97DD24EE-D5F4-34EB-B521-D7BA883D2606> /usr/lib/sasl2/apop.so
           0x115977000 -        0x115987ff7  dhx.so (170.1) <E4299F4A-F42C-397A-A306-58161EFD7686> /usr/lib/sasl2/dhx.so
           0x115993000 -        0x11599bfff  digestmd5WebDAV.so (170.1) <B11199EC-EF62-3592-AE51-38EBD1B6282F> /usr/lib/sasl2/digestmd5WebDAV.so
           0x1159a0000 -        0x1159a2fff  libanonymous.2.so (170) <D1297C21-A57B-311E-9006-C3FB8689849A> /usr/lib/sasl2/libanonymous.2.so
           0x1159a9000 -        0x1159abfff  libcrammd5.2.so (170) <940A42FC-C634-354E-AD74-691CD90A1427> /usr/lib/sasl2/libcrammd5.2.so
           0x1159b0000 -        0x1159b8ff7  libdigestmd5.2.so (170) <122C0383-F9B2-34D1-89AF-D317BC4D5164> /usr/lib/sasl2/libdigestmd5.2.so
           0x1159bd000 -        0x1159c1fff  libgssapiv2.2.so (170) <AA58D85E-916C-3B0B-959A-DCC58497D0F2> /usr/lib/sasl2/libgssapiv2.2.so
           0x1159c6000 -        0x1159c8fff  login.so (170) <7D801D4E-A1A4-32FC-BF2E-9F25DB902523> /usr/lib/sasl2/login.so
           0x1159cc000 -        0x1159d1fff  libntlm.so (170) <18693B29-154F-339C-A329-4C42A43F6428> /usr/lib/sasl2/libntlm.so
           0x1159d6000 -        0x1159ddfff  libotp.2.so (170) <D1C70F92-1C75-340B-AD53-0C2CD79144FF> /usr/lib/sasl2/libotp.2.so
           0x1159e6000 -        0x1159e8fff  libplain.2.so (170) <E9C3B22A-5958-3869-B778-55948D1EC2B7> /usr/lib/sasl2/libplain.2.so
           0x1159ec000 -        0x1159f0ffd  libpps.so (170.1) <C7604F07-E966-33F7-8727-93F000CBA92F> /usr/lib/sasl2/libpps.so
           0x1159f7000 -        0x1159fafff  mschapv2.so (170.1) <C79F63BB-E66D-3552-9C4C-2D3EB14CEE01> /usr/lib/sasl2/mschapv2.so
           0x1159ff000 -        0x115a27ff6  com.apple.DirectoryService.PasswordServerFramework (10.9 - 36) <C36B818F-C1FE-3F3F-A01C-F4613F570D4D> /System/Library/PrivateFrameworks/PasswordServer.framework/Versions/A/PasswordS erver
           0x115a58000 -        0x115a5afff  pwauxprop.so (400.1) <B95FA3F5-0EE9-335E-BBC7-FDEDEB7F18F0> /usr/lib/sasl2/pwauxprop.so
           0x115a5f000 -        0x115a61fff  shadow_auxprop.so (170.1) <E02127CB-F9C0-3E3B-ABBB-473EC0CB6DE7> /usr/lib/sasl2/shadow_auxprop.so
           0x115a66000 -        0x115a68fff  smb_nt.so (170.1) <B508FD03-CE31-3B93-91D7-440BEDAD9581> /usr/lib/sasl2/smb_nt.so
           0x115a6d000 -        0x115a6ffff  smb_ntlmv2.so (170.1) <938D40AF-BEB3-3F55-B409-C84E3C2886FD> /usr/lib/sasl2/smb_ntlmv2.so
           0x11611a000 -        0x11611aff6 +cl_kernels (???) <2F7A6D46-E7D1-473F-88AF-D79337614301> cl_kernels
           0x116120000 -        0x116121fe2 +cl_kernels (???) <61E6B6D6-2A2E-4CF0-8BF5-F1337427C6F8> cl_kernels
           0x11612a000 -        0x11612bff9 +cl_kernels (???) <631959F5-8590-4EEF-8839-546AD88CFE23> cl_kernels
           0x11613d000 -        0x11613dfe7 +cl_kernels (???) <3362B985-4C58-41FC-9D88-5A12F09590BA> cl_kernels
           0x116142000 -        0x116143fef +cl_kernels (???) <0CE4F291-DF4B-4C41-9F78-4B82F0AD3FEE> cl_kernels
           0x11614b000 -        0x11614bffd +cl_kernels (???) <53F40B9A-61A6-4779-B32F-7A6273CDE82D> cl_kernels
           0x11614f000 -        0x11614ffff +cl_kernels (???) <859328A3-27E3-4910-9C00-C37E6B944B52> cl_kernels
           0x1161e1000 -        0x1161e2fee +cl_kernels (???) <EC89AF23-8B67-4251-8CD9-37CBEE16E752> cl_kernels
           0x11644e000 -        0x116534fef  unorm8_bgra.dylib (2.3.58) <280D6FDD-8CA5-36EC-9EA1-D7DC09598E20> /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/u norm8_bgra.dylib
           0x1165f9000 -        0x1166defe7  unorm8_argb.dylib (2.3.58) <7B4A2580-C169-3ABC-8F62-B766914C59DD> /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/u norm8_argb.dylib
           0x116720000 -        0x116800ff7  unorm8_rgba.dylib (2.3.58) <8252DC3E-7434-34C6-B4B9-CFD59B923D12> /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/u norm8_rgba.dylib
           0x116c6b000 -        0x116c6bfeb +cl_kernels (???) <E9C54640-61CA-4550-B708-95E427DD4A0E> cl_kernels
           0x116d70000 -        0x116d71fe4 +cl_kernels (???) <2C33F03C-8EC6-4468-86FA-DFF86930A4B4> cl_kernels
           0x116ddd000 -        0x116ddefe3 +cl_kernels (???) <5326C2B5-0810-4822-9248-FEA10AF8C60F> cl_kernels
           0x116eb0000 -        0x116eb0fe3 +cl_kernels (???) <A08B208F-058B-43B1-AE00-230E64EDC009> cl_kernels
           0x116ee9000 -        0x116eeaff0 +cl_kernels (???) <41ACDB97-728C-4BBF-8686-6419DB20F0A1> cl_kernels
           0x116f09000 -        0x116f0aff4 +cl_kernels (???) <ED0FF59F-48E9-429E-AB8C-5E21F7CF2F8C> cl_kernels
           0x117289000 -        0x117289fec +cl_kernels (???) <916BBE3D-D5EE-4F55-B89D-8C2526435531> cl_kernels
           0x117349000 -        0x11734afeb +cl_kernels (???) <DC3386B3-2BE2-4562-B58B-8E44454708C4> cl_kernels
           0x11734f000 -        0x117350ffa +cl_kernels (???) <D8B4DDBF-5F91-40DF-ABF6-52F312B1EE7A> cl_kernels
           0x117355000 -        0x117356fe6 +cl_kernels (???) <5A439907-2C3F-4CF3-8F43-52FA7E3E6B7C> cl_kernels
           0x11735a000 -        0x11735aff3 +cl_kernels (???) <B4759B96-32F6-4F1D-85DF-095E368B2431> cl_kernels
           0x117c3f000 -        0x117c43fff  com.apple.google.iaplugin (2.1 - 210) <28AA2815-EB62-347A-B7F6-8F06AB25EBAB> /System/Library/InternetAccounts/Google.iaplugin/Contents/MacOS/Google
           0x117ead000 -        0x117eafff7  com.apple.qq.iaplugin (1.1 - 110) <165AD1AD-7191-3A9B-A761-988DC0AB2114> /System/Library/InternetAccounts/QQ.iaplugin/Contents/MacOS/QQ
           0x117eb4000 -        0x117ebbfff  com.apple.twitter.iaplugin (1.1 - 110) <93EBF687-26AC-3296-938D-61E07B438599> /System/Library/InternetAccounts/TwitterPlugin.iaplugin/Contents/MacOS/TwitterP lugin
           0x117ec4000 -        0x117ef9fff  com.apple.sociald.Social (87 - 87) <25F8FA83-E8DB-3082-93AC-0868A7B46607> /System/Library/Frameworks/Social.framework/Versions/A/Social
           0x117f35000 -        0x117f80ff7  com.apple.accounts.AccountsDaemon (113 - 113) <248F6C14-DDEA-3E8F-B016-E760E9B1E599> /System/Library/PrivateFrameworks/AccountsDaemon.framework/Versions/A/AccountsD aemon
           0x117faf000 -        0x117fb7ff7  com.apple.xpcobjects (103 - 103) <268F4950-61A2-3A14-9697-C121E1798D18> /System/Library/PrivateFrameworks/XPCObjects.framework/Versions/A/XPCObjects
           0x117fc9000 -        0x117fcefff  com.apple.tencentweibo.iaplugin (1.1 - 110) <E81524DB-B266-3056-A69E-94B4F86B58CB> /System/Library/InternetAccounts/TencentWeibo.iaplugin/Contents/MacOS/TencentWe ibo
           0x117fd5000 -        0x117fdafff  com.apple.osxserver.iaplugin (2.1 - 210) <0EE1331E-8734-3A26-9B93-3CE35D61CA74> /System/Library/InternetAccounts/OSXServer.iaplugin/Contents/MacOS/OSXServer
           0x117fe2000 -        0x117fe3ffe  libACSClient.dylib (65) <B068CA41-5A0E-31F9-AFB3-6194620B983D> /usr/lib/libACSClient.dylib
           0x117fe8000 -        0x117febff7  com.apple.yahoo.iaplugin (2.1 - 210) <AA361E32-4E61-30BE-BFB5-57D97C93DAA6> /System/Library/InternetAccounts/Yahoo.iaplugin/Contents/MacOS/Yahoo
           0x117ff1000 -        0x117ff9fff  com.apple.facebook.iaplugin (1.1 - 110) <CDE70454-4A46-387C-8EBD-D9566359E558> /System/Library/InternetAccounts/Facebook.iaplugin/Contents/MacOS/Facebook
           0x118003000 -        0x118005ff7  com.apple.126.iaplugin (1.1 - 110) <6C8CD06A-0779-3D6E-A0C4-21C298557074> /System/Library/InternetAccounts/126.iaplugin/Contents/MacOS/126
           0x11800a000 -        0x118010fff  com.apple.tudou.iaplugin (1.1 - 110) <73468E5A-3303-3110-8660-E46CF3E92F89> /System/Library/InternetAccounts/Tudou.iaplugin/Contents/MacOS/Tudou
           0x118019000 -        0x118023ff7  com.apple.flickr.iaplugin (1.1 - 110) <B178A6C4-369F-3A5C-95A8-96EEDD58DCA6> /System/Library/InternetAccounts/Flickr.iaplugin/Contents/MacOS/Flickr
           0x11802e000 -        0x118030ff7  com.apple.aol.iaplugin (2.1 - 210) <45BC8C0E-A0CF-3695-B612-9ACDA2C98A42> /System/Library/InternetAccounts/AOL.iaplugin/Contents/MacOS/AOL
           0x118035000 -        0x11803bfff  com.apple.vimeo.iaplugin (1.1 - 110) <FD922DDC-6D4A-3B76-9AB2-489C532241EA> /System/Library/InternetAccounts/Vimeo.iaplugin/Contents/MacOS/Vimeo
           0x118044000 -        0x118046ff7  com.apple.163.iaplugin (1.1 - 110) <2B71CC0B-6C16-399E-9758-D1E2A0A689C5> /System/Library/InternetAccounts/163.iaplugin/Contents/MacOS/163
           0x11804b000 -        0x118051ff7  com.apple.youku.iaplugin (1.1 - 110) <C8ED7EFB-F2D9-376B-95DE-7725466F8986> /System/Library/InternetAccounts/Youku.iaplugin/Contents/MacOS/Youku
           0x11805a000 -        0x118079ff7  com.apple.icloud.iaplugin (426 - 460) <F6012E71-1AC7-3B16-81AB-AA5FDC55D8F9> /System/Library/InternetAccounts/iCloud.iaplugin/Contents/MacOS/iCloud
           0x118091000 -        0x118117fff  com.apple.AOSUI (1.2 - 273) <92D761D5-1ABC-3A29-9306-018570EF6005> /System/Library/PrivateFrameworks/AOSUI.framework/Versions/A/AOSUI
           0x118187000 -        0x11818ffff  com.apple.exchange.iaplugin (2.1 - 210) <37CA9806-DE80-3399-8B36-179AB6455B3F> /System/Library/InternetAccounts/Exchange.iaplugin/Contents/MacOS/Exchange
           0x118199000 -        0x1181a1fff  com.apple.linkedin.iaplugin (1.1 - 110) <B0EF0D29-E605-36F0-9CEA-70AF9BCF28CA> /System/Library/InternetAccounts/LinkedIn.iaplugin/Contents/MacOS/LinkedIn
           0x1181ab000 -        0x1181b1ff7  com.apple.weibo.iaplugin (1.1 - 110) <C405B6A9-FF5B-3044-9E84-3C5C00622711> /System/Library/InternetAccounts/Weibo.iaplugin/Contents/MacOS/Weibo
           0x11864a000 -        0x11864bfe6 +cl_kernels (???) <C069D7B4-EABD-4446-8DDA-98E3E4F57024> cl_kernels
           0x118924000 -        0x11892cfff  com.apple.contacts.iaplugin (8.0 - 1371.2) <3264DC1C-2056-3741-9B7E-D28275D17751> /System/Library/InternetAccounts/AddressBook.iaplugin/Contents/MacOS/AddressBoo k
           0x11b8c8000 -        0x11b914ff6  com.apple.AddressBook.CardDAVPlugin (10.9 - 424) <15AC9317-8E7D-3DC3-A68F-89C546648E25> /System/Library/Address Book Plug-Ins/CardDAVPlugin.sourcebundle/Contents/MacOS/CardDAVPlugin
        0x7fff665c0000 -     0x7fff665f3817  dyld (239.4) <7AD43B9B-5CEA-3C7E-9836-A06909F9CA56> /usr/lib/dyld
        0x7fff83749000 -     0x7fff8374aff7  libDiagnosticMessagesClient.dylib (100) <4CDB0F7B-C0AF-3424-BC39-495696F0DB1E> /usr/lib/libDiagnosticMessagesClient.dylib
        0x7fff8374b000 -     0x7fff837baff1  com.apple.ApplicationServices.ATS (360 - 363.3) <546E89D9-2AE7-3111-B2B8-2366650D22F0> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
        0x7fff837bb000 -     0x7fff837c6fff  libkxld.dylib (2422.115.4) <3C678B75-F7C5-3DBB-8DBD-48483AD54D5C> /usr/lib/system/libkxld.dylib
        0x7fff837c7000 -     0x7fff837f6ff7  com.apple.CoreAVCHD (5.7.0 - 5700.4.3) <404369C0-ED9F-3010-8D2F-BC55285F7808> /System/Library/PrivateFrameworks/CoreAVCHD.framework/Versions/A/CoreAVCHD
        0x7fff837f7000 -     0x7fff837f9fff  libCVMSPluginSupport.dylib (9.6.1) <FB37F4C4-1E84-3349-BB03-92CA0A5F6837> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginS upport.dylib
        0x7fff837fa000 -     0x7fff837fafff  com.apple.Accelerate (1.9 - Accelerate 1.9) <509BB27A-AE62-366D-86D8-0B06D217CF56> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
        0x7fff837fb000 -     0x7fff83805ff7  com.apple.bsd.ServiceManagement (2.0 - 2.0) <2D27B498-BB9C-3D88-B05A-76908A8A26F3> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManage ment
        0x7fff83806000 -     0x7fff8383bffc  com.apple.LDAPFramework (2.4.28 - 194.5) <4ADD0595-25B9-3F09-897E-3FB790AD2C5A> /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
        0x7fff83855000 -     0x7fff8385afff  com.apple.NetFSServer (2.0 - 1) <9B7BAA23-4D4D-30A2-8538-DFD3B1E347A6> /System/Library/PrivateFrameworks/NetFSServer.framework/Versions/A/NetFSServer
        0x7fff8385b000 -     0x7fff83c3cffe  libLAPACK.dylib (1094.5) <7E7A9B8D-1638-3914-BAE0-663B69865986> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
        0x7fff83c3d000 -     0x7fff83df5ffb  libicucore.A.dylib (511.35) <6F097DA7-147C-32A1-93D2-728A64CF0DC2> /usr/lib/libicucore.A.dylib
        0x7fff83df6000 -     0x7fff83e0fff7  com.apple.Kerberos (3.0 - 1) <F108AFEB-198A-3BAF-BCA5-9DFCE55EFF92> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
        0x7fff83e10000 -     0x7fff83e34ff7  libJPEG.dylib (1044) <BE0ED4E1-F7FC-3038-86D3-0456DD173FCB> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
        0x7fff83ecc000 -     0x7fff83f1dff7  com.apple.audio.CoreAudio (4.2.1 - 4.2.1) <BE13E840-FB45-3BC2-BCF5-031629754FD5> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
        0x7fff83f1e000 -     0x7fff83f27ff7  com.apple.MailService (7.3 - 1878.6) <9D8CEFF2-6ABD-3654-B70D-D878BB61EBD3> /System/Library/PrivateFrameworks/MailService.framework/Versions/A/MailService
        0x7fff83f28000 -     0x7fff83f28ffd  libOpenScriptingUtil.dylib (157) <19F0E769-0989-3062-9AFB-8976E90E9759> /usr/lib/libOpenScriptingUtil.dylib
        0x7fff83f29000 -     0x7fff83f29fff  com.apple.Carbon (154 - 157) <45A9A40A-78FF-3EA0-8FAB-A4F81052FA55> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
        0x7fff83f2a000 -     0x7fff83f2bffb  libremovefile.dylib (33) <3543F917-928E-3DB2-A2F4-7AB73B4970EF> /usr/lib/system/libremovefile.dylib
        0x7fff83f54000 -     0x7fff83fb1fff  com.apple.imfoundation (10.0 - 1000) <122D84B9-871D-3885-9D8D-840CD529028F> /System/Library/PrivateFrameworks/IMFoundation.framework/Versions/A/IMFoundatio n
        0x7fff83fb2000 -     0x7fff84083ff1  com.apple.DiskImagesFramework (10.9 - 371.1) <DCCAADEC-35D5-3968-8B39-358ACC56ADC4> /System/Library/PrivateFrameworks/DiskImages.framework/Versions/A/DiskImages
        0x7fff8408b000 -     0x7fff840c7ff7  com.apple.ids (10.0 - 1000) <632F7192-0399-34C8-B6BB-463D2F4370E0> /System/Library/PrivateFrameworks/IDS.framework/Versions/A/IDS
        0x7fff840c8000 -     0x7fff840f8fff  com.apple.IconServices (25 - 25.17) <4751127E-FBD5-3ED5-8510-08D4E4166EFE> /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconService s
        0x7fff840f9000 -     0x7fff84103ff7  com.apple.AppSandbox (3.0 - 1) <9F27DC25-C566-3AEF-92D3-DCFE7836916D> /System/Library/PrivateFrameworks/AppSandbox.framework/Versions/A/AppSandbox
        0x7fff84104000 -     0x7fff8414dfff  com.apple.CoreMedia (1.0 - 1273.54) <CAB7303A-9AB2-317A-99C3-BEAA8AE8764B> /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia
        0x7fff8414e000 -     0x7fff84183ffb  com.apple.datadetectors (5.0 - 246.0) <1C4C33FE-F364-3DBA-A1BC-4A53E594CFD3> /System/Library/PrivateFrameworks/DataDetectors.framework/Versions/A/DataDetect ors
        0x7fff84184000 -     0x7fff84184fff  com.apple.SafariDAVNotifier (1.1.1 - 1) <6FD70177-7044-3EFE-905F-08F1D2D40ECA> /System/Library/PrivateFrameworks/BookmarkDAV.framework/Versions/A/Frameworks/S afariDAVNotifier.framework/Versions/A/SafariDAVNotifier
        0x7fff84185000 -     0x7fff84273fff  libJP2.dylib (1044) <BE5FF765-5ECE-38B5-BF5D-BE806F5CAD18> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
        0x7fff84279000 -     0x7fff84294ff7  libPng.dylib (1044) <151BA92C-6E7C-3B69-8024-FDD1E2C89DD3> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
        0x7fff84295000 -     0x7fff84295ff7  com.apple.frameworks.SleepServices (1.1 - 1.1) <4D9C44FF-5403-3372-A90E-CBF2A34D7CE7> /System/Library/PrivateFrameworks/SleepServices.framework/Versions/A/SleepServi ces
        0x7fff84296000 -     0x7fff84346ff7  libvMisc.dylib (423.32) <049C0735-1808-39B9-943F-76CB8021744F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
        0x7fff84396000 -     0x7fff843d6fff  com.apple.PassKit (1.0 - 1) <CE4A0FC6-6E65-38AC-BC8E-74821D713B43> /System/Library/PrivateFrameworks/PassKit.framework/Versions/A/PassKit
        0x7fff843d7000 -     0x7fff843d7ff7  libkeymgr.dylib (28) <3AA8D85D-CF00-3BD3-A5A0-E28E1A32A6D8> /usr/lib/system/libkeymgr.dylib
        0x7fff843d8000 -     0x7fff843dcff7  libcache.dylib (62) <BDC1E65B-72A1-3DA3-A57C-B23159CAAD0B> /usr/lib/system/libcache.dylib
        0x7fff843dd000 -     0x7fff8442efff  com.apple.QuickLookFramework (5.0 - 622.7) <17685CEC-C94B-3F83-ADE1-B24840B35E44> /System/Library/Frameworks/QuickLook.framework/Versions/A/QuickLook
        0x7fff8442f000 -     0x7fff84447ff7  com.apple.GenerationalStorage (2.0 - 160.3) <64749B08-0212-3AC8-9B49-73D662B09304> /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/Gene rationalStorage
        0x7fff84448000 -     0x7fff844bffff  com.apple.CoreServices.OSServices (600.4 - 600.4) <C63562F5-6DF5-3EE9-8897-FF61A44C8251> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
        0x7fff844c0000 -     0x7fff84520fff  com.apple.ISSupport (1.9.9 - 57) <E1E343D7-222C-3458-9D1F-FC600B7F1C50> /System/Library/PrivateFrameworks/ISSupport.framework/Versions/A/ISSupport
        0x7fff84521000 -     0x7fff84525fff  libpam.2.dylib (20) <B93CE8F5-DAA8-30A1-B1F6-F890509513CB> /usr/lib/libpam.2.dylib
        0x7fff84526000 -     0x7fff84535ff8  com.apple.LangAnalysis (1.7.0 - 1.7.0) <8FE131B6-1180-3892-98F5-C9C9B79072D4> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
        0x7fff84536000 -     0x7fff84537fff  libunc.dylib (28) <62682455-1862-36FE-8A04-7A6B91256438> /usr/lib/system/libunc.dylib
        0x7fff84538000 -     0x7fff8457efff  com.apple.DiskManagement (6.1 - 744.1) <3DD4CD10-4476-334C-8C4B-991A85AAC272> /System/Library/PrivateFrameworks/DiskManagement.framework/Versions/A/DiskManag ement
        0x7fff8457f000 -     0x7fff8460bff7  com.apple.ink.framework (10.9 - 207) <8A50B893-AD03-3826-8555-A54FEAF08F47> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
        0x7fff8460c000 -     0x7fff8460ffff  com.apple.help (1.3.3 - 46) <AE763646-D07A-3F9A-ACD4-F5CBD734EE36> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
        0x7fff84610000 -     0x7fff84618ff7  com.apple.AppleSRP (5.0 - 1) <ABC7F088-1FD5-3768-B9F3-847F355E90B3> /System/Library/PrivateFrameworks/AppleSRP.framework/Versions/A/AppleSRP
        0x7fff84619000 -     0x7fff84619fff  com.apple.AOSMigrate (1.0 - 1) <ABA8F3F2-BC96-3F89-AAF4-1AA459A0BCBD> /System/Library/PrivateFrameworks/AOSMigrate.framework/Versions/A/AOSMigrate
        0x7fff84659000 -     0x7fff84743fff  libsqlite3.dylib (158) <00269BF9-43BE-39E0-9C85-24585B9923C8> /usr/lib/libsqlite3.dylib
        0x7fff84744000 -     0x7fff84c67fff  com.apple.QuartzComposer (5.1 - 319) <8B90921F-911B-3240-A1D5-3C084F3E6A36> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzCompose r.framework/Versions/A/QuartzComposer
        0x7fff84c68000 -     0x7fff84c7fffa  libAVFAudio.dylib (32.2) <52DA516B-DE79-322C-9E1B-2658019289D7> /System/Library/Frameworks/AVFoundation.framework/Versions/A/Resources/libAVFAu dio.dylib
        0x7fff84c80000 -     0x7fff84ce5ffb  com.apple.Heimdal (4.0 - 2.0) <F34D6627-9F80-3823-8B57-DB629307DF87> /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
        0x7fff84ce6000 -     0x7fff84d12ff7  com.apple.framework.SystemAdministration (1.0 - 1.0) <6FD03EF6-32B6-397D-B9D7-D68E89A462F5> /System/Library/PrivateFrameworks/SystemAdministration.framework/Versions/A/Sys temAdministration
        0x7fff84d13000 -     0x7fff84d1fff7  com.apple.KerberosHelper (4.0 - 1.0) <6D64703B-D7A3-3EF7-89AB-16F7F89333FC> /System/Library/PrivateFrameworks/KerberosHelper.framework/Versions/A/KerberosH elper
        0x7fff84d20000 -     0x7fff84d32ff7  com.apple.MultitouchSupport.framework (245.13.1 - 245.13.1) <38262B92-C63F-35A0-997D-AD2EBF2F8338> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/Multit ouchSupport
        0x7fff84dc0000 -     0x7fff84f30ff4  com.apple.CFNetwork (673.4 - 673.4) <F3BF6020-99BE-3844-A7B8-352B93AD02F3> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
        0x7fff84f31000 -     0x7fff84f3affb  libsystem_notify.dylib (121.20.1) <9B34B4FE-F5AD-3F09-A5F0-46AFF3571323> /usr/lib/system/libsystem_notify.dylib
        0x7fff84f3b000 -     0x7fff84f7bff7  com.apple.CalDAV (7.0 - 155.2) <B96DAB4A-7431-3FD2-971B-726A67F6E004> /System/Library/PrivateFrameworks/CalDAV.framework/Versions/A/CalDAV
        0x7fff84f7c000 -     0x7fff84f7cfff  com.apple.CoreServices (59 - 59) <7A697B5E-F179-30DF-93F2-8B503CEEEFD5> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
        0x7fff84f7d000 -     0x7fff84fbefff  com.apple.PerformanceAnalysis (1.47 - 47) <7B73DFF4-75DB-3403-80D2-0F3FE48764C3> /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/Perf ormanceAnalysis
        0x7fff84fc5000 -     0x7fff8508fff7  com.apple.LaunchServices (572.28 - 572.28) <FC72C089-A069-3374-B80A-E041AF149F24> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/LaunchServices
        0x7fff85090000 -     0x7fff852f4ffd  com.apple.security (7.0 - 55471.14.18) <83A9E8C8-06A1-3F6D-8514-C35CD0DBD370> /System/Library/Frameworks/Security.framework/Versions/A/Security
        0x7fff852f5000 -     0x7fff85311ff7  libsystem_kernel.dylib (2422.115.4) <9EDE872E-2A9E-3A78-8E1D-AB790794A098> /usr/lib/system/libsystem_kernel.dylib
        0x7fff85bd6000 -     0x7fff85c25ff7  com.apple.framework.internetaccounts (2.1 - 210) <D7175985-03A5-315B-B788-FBDC0019B0EA> /System/Library/PrivateFrameworks/InternetAccounts.framework/Versions/A/Interne tAccounts
        0x7fff85c61000 -     0x7fff85ccdfff  com.apple.framework.IOKit (2.0.1 - 907.100.13) <057FDBA3-56D6-3903-8C0B-849214BF1985> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
        0x7fff85d0d000 -     0x7fff85d21fff  com.apple.aps.framework (4.0 - 4.0) <2D42DCDD-055E-3EE1-97F8-FC447B495D3E> /System/Library/PrivateFrameworks/ApplePushService.framework/Versions/A/ApplePu shService
        0x7fff8647f000 -     0x7fff86482ff7  com.apple.LoginUICore (3.0 - 3.0) <1ECBDA90-D6ED-3333-83EB-9C8232DFAD7C> /System/Library/PrivateFrameworks/LoginUIKit.framework/Versions/A/Frameworks/Lo ginUICore.framework/Versions/A/LoginUICore
        0x7fff86516000 -     0x7fff865e1fff  libvDSP.dylib (423.32) <3BF732BE-DDE0-38EB-8C54-E4E3C64F77A7> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
        0x7fff865e2000 -     0x7fff865e5fff  libCoreVMClient.dylib (58.1) <EBC36C69-C896-3C3D-8589-3E9023E7E56F> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClien t.dylib
        0x7fff865e6000 -     0x7fff8682eff7  com.apple.CoreData (107 - 481.3) <E78734AA-E3D0-33CB-A014-620BBCAB2E96> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
        0x7fff8682f000 -     0x7fff86830fff  liblangid.dylib (117) <9546E641-F730-3AB0-B3CD-E0E2FDD173D9> /usr/lib/liblangid.dylib
        0x7fff86831000 -     0x7fff86836fff  com.apple.DiskArbitration (2.6 - 2.6) <A4165553-770E-3D27-B217-01FC1F852B87> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
        0x7fff86837000 -     0x7fff8683afff  com.apple.AppleSystemInfo (3.0 - 3.0) <61FE171D-3D88-313F-A832-280AEC8F4AB7> /System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/AppleSys temInfo
        0x7fff86bd4000 -     0x7fff86db9fff  com.apple.CoreFoundation (6.9 - 855.17) <729BD6DA-1F63-3E72-A148-26F21EBF52BB> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
        0x7fff86e3f000 -     0x7fff86e5cff7  com.apple.framework.Apple80211 (9.4 - 940.60) <043C7CFD-B57B-3F9D-B0FE-CA4B97C43968> /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
        0x7fff86e6d000 -     0x7fff86e7ffff  com.apple.ImageCapture (9.0 - 9.0) <BE0B65DA-3031-359B-8BBA-B9803D4ADBF4> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
        0x7fff86e80000 -     0x7fff87114ff7  com.apple.RawCamera.bundle (5.07 - 760) <EA94F148-975D-32D7-8A20-B06017E5793B> /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
        0x7fff87115000 -     0x7fff87131fff  com.apple.frameworks.preferencepanes (16.0 - 16.0) <059E99D8-67C2-3B59-B5E7-850DD7A92D75> /System/Library/Frameworks/PreferencePanes.framework/Versions/A/PreferencePanes
        0x7fff87132000 -     0x7fff87160ff7  com.apple.securityinterface (9.0 - 55047) <0346D8A9-2CAA-38F3-A741-5FBA5E9F1E7C> /System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInter face
        0x7fff87161000 -     0x7fff872fdff3  com.apple.QuartzCore (1.8 - 332.3) <72003E51-1287-395B-BCBC-331597D45C5E> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
        0x7fff872fe000 -     0x7fff87307ff7  libcldcpuengine.dylib (2.3.58) <E3A84FEC-4060-39C2-A469-159A443D2B6D> /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libcldcpuengin e.dylib
        0x7fff87308000 -     0x7fff87322fff  libdispatch.dylib (339.92.1) <C4E4A18D-3C3B-3C9C-8709-A4270D998DE7> /usr/lib/system/libdispatch.dylib
        0x7fff87323000 -     0x7fff87325fff  com.apple.marco (10.0 - 1000) <FC7EF8C7-5EDF-3720-BAEC-281F12A7A3F8> /System/Library/PrivateFrameworks/Marco.framework/Versions/A/Marco
        0x7fff87347000 -     0x7fff87349ff7  com.apple.securityhi (9.0 - 55005) <18C42525-688C-3D47-B9C9-1E0F8F58FA64> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
        0x7fff8734a000 -     0x7fff8761bff4  com.apple.CoreImage (9.4.0) <2C636ECD-0F1A-357C-9EFF-0452476FDDF5> /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage .framework/Versions/A/CoreImage
        0x7fff8761c000 -     0x7fff8761cffd  com.apple.audio.units.AudioUnit (1.10 - 1.10) <68B21135-55A6-3563-A3D6-3E692A7DEB7F> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
        0x7fff8761d000 -     0x7fff87624ff8  liblaunch.dylib (842.92.1) <A40A0C7B-3216-39B4-8AE0-B5D3BAF1DA8A> /usr/lib/system/liblaunch.dylib
        0x7fff87625000 -     0x7fff8764eff7  libc++abi.dylib (49.1) <21A807D3-6732-3455-B77F-743E9F916DF0> /usr/lib/libc++abi.dylib
        0x7fff8764f000 -     0x7fff87658fff  com.apple.speech.synthesis.framework (4.7.1 - 4.7.1) <383FB557-E88E-3239-82B8-15F9F885B702> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
        0x7fff87659000 -     0x7fff87788fef  com.apple.MediaControlSender (2.0 - 200.34.4) <FC24EC8D-2E46-3F76-AF63-749F30857B96> /System/Library/PrivateFrameworks/MediaControlSender.framework/Versions/A/Media ControlSender
        0x7fff87789000 -     0x7fff877a2ff7  com.apple.Ubiquity (1.3 - 289) <C7F1B734-CE81-334D-BE41-8B20D95A1F9B> /System/Library/PrivateFrameworks/Ubiquity.framework/Versions/A/Ubiquity
        0x7fff877a5000 -     0x7fff877afff7  libcsfde.dylib (380.70.2) <3ACB87D7-A81C-3C45-B648-AD27F1B9D841> /usr/lib/libcsfde.dylib
        0x7fff877b0000 -     0x7fff87a41ff7  com.apple.AOSKit (1.06 - 176) <35525B2F-B02F-31FD-A3B2-FD6AE6D32C11> /System/Library/PrivateFrameworks/AOSKit.framework/Versions/A/AOSKit
        0x7fff87a42000 -     0x7fff87a4bffd  com.apple.CommonAuth (4.0 - 2.0) <32BA436F-6319-3A0B-B5D2-2EB75FF36B5B> /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
        0x7fff87a4c000 -     0x7fff87a4efff  com.apple.SecCodeWrapper (3.0 - 1) <DE7CA981-2B8B-34AC-845D-06D5C8F10441> /System/Library/PrivateFrameworks/SecCodeWrapper.framework/Versions/A/SecCodeWr apper
        0x7fff87a95000 -     0x7fff87a95fff  com.apple.Accelerate.vecLib (3.9 - vecLib 3.9) <F8D0CC77-98AC-3B58-9FE6-0C25421827B6> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
        0x7fff87a96000 -     0x7fff87a9eff3  libCGCMS.A.dylib (599.35.4) <67AD122A-B8DA-3C05-8B8C-1939F5064FAE> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGCMS .A.dylib
        0x7fff87a9f000 -     0x7fff87aa4fff  libmacho.dylib (845) <1D2910DF-C036-3A82-A3FD-44FF73B5FF9B> /usr/lib/system/libmacho.dylib
        0x7fff87aa5000 -     0x7fff87addff7  com.apple.RemoteViewServices (2.0 - 94) <3F34D630-3DDB-3411-BC28-A56A9B55EBDA> /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/Remot eViewServices
        0x7fff87ade000 -     0x7fff87ae9ff7  com.apple.DirectoryService.Framework (10.9 - 173.90.1) <22A0C230-CF1E-38F5-A947-5ACDAEEE0DB6> /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServi ce
        0x7fff87aea000 -     0x7fff87b87fff  com.apple.imcore (10.0 - 1000) <DF924E35-74AB-389C-9279-1828518218F8> /System/Library/PrivateFrameworks/IMCore.framework/Versions/A/IMCore
        0x7fff87bf4000 -     0x7fff87bf8fff  com.apple.CommonPanels (1.2.6 - 96) <6B434AFD-50F8-37C7-9A56-162C17E375B3> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
        0x7fff87bf9000 -     0x7fff87c14ff7  libsystem_malloc.dylib (23.10.1) <A695B4E4-38E9-332E-A772-29D31E3F1385> /usr/lib/system/libsystem_malloc.dylib
        0x7fff87c15000 -     0x7fff87d06ff9  libiconv.2.dylib (41) <BB44B115-AC32-3877-A0ED-AEC6232A4563> /usr/lib/libiconv.2.dylib
        0x7fff87d07000 -     0x7fff87d30fff  com.apple.DictionaryServices (1.2 - 208) <A539A058-BA57-35EE-AA08-D0B0E835127D> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Diction aryServices.framework/Versions/A/DictionaryServices
        0x7fff8810d000 -     0x7fff88139fff  com.apple.CoreServicesInternal (184.9 - 184.9) <4DEA54F9-81D6-3EDB-AA3C-1F9C497B3379> /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/Cor eServicesInternal
        0x7fff8813a000 -     0x7fff881c3ff7  libsystem_c.dylib (997.90.3) <6FD3A400-4BB2-3B95-B90C-BE6E9D0D78FA> /usr/lib/system/libsystem_c.dylib
        0x7fff881c4000 -     0x7fff881c5ff7  libodfde.dylib (20) <C00A4EBA-44BC-3C53-BFD0-819B03FFD462> /usr/lib/libodfde.dylib
        0x7fff881c6000 -     0x7fff88297fff  com.apple.QuickLookUIFramework (5.0 - 622.7) <13841701-34C2-353D-868D-3E08D020C90F> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuickLookUI.f ramework/Versions/A/QuickLookUI
        0x7fff88298000 -     0x7fff8829cfff  com.apple.FindMyMac (2.1 - 2.1) <57D589E9-B726-3519-BE99-1B38F7737ED6> /System/Library/PrivateFrameworks/FindMyMac.framework/Versions/A/FindMyMac
        0x7fff8829d000 -     0x7fff8845bfff  com.apple.GeoServices (1.0 - 702.15.12) <5A4D463F-689F-3822-BF26-A19D51503019> /System/Library/PrivateFrameworks/GeoServices.framework/Versions/A/GeoServices
        0x7fff8845c000 -     0x7fff8845eff7  com.apple.diagnosticlogcollection (10.0 - 1000) <5CA6D8A2-DEA6-33C3-91BC-F3B076C0500B> /System/Library/PrivateFrameworks/DiagnosticLogCollection.framework/Versions/A/ DiagnosticLogCollection
        0x7fff8845f000 -     0x7fff8846afff  libGL.dylib (9.6.1) <4B65BF9F-F34A-3CD1-94E8-DB26DAA0A59D> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
        0x7fff8846b000 -     0x7fff884b3ff7  com.apple.ExchangeWebServices (4.0 - 193) <867EDAF0-5863-397E-BA75-855878D68949> /System/Library/PrivateFrameworks/ExchangeWebServices.framework/Versions/A/Exch angeWebServices
        0x7fff884b4000 -     0x7fff884e5ff7  libtidy.A.dylib (15.12) <BF757E3C-733A-3B6B-809A-A3949D46466E> /usr/lib/libtidy.A.dylib
        0x7fff884e6000 -     0x7fff884e8ff3  libsystem_configuration.dylib (596.15) <4998CB6A-9D54-390A-9F57-5D1AC53C135C> /usr/lib/system/libsystem_configuration.dylib
        0x7fff884eb000 -     0x7fff8850ffff  libxpc.dylib (300.90.2) <AB40CD57-F454-3FD4-B415-63B3C0D5C624> /usr/lib/system/libxpc.dylib
        0x7fff8858f000 -     0x7fff88592fff  com.apple.TCC (1.0 - 1) <32A075D9-47FD-3E71-95BC-BFB0D583F41C> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
        0x7fff88593000 -     0x7fff885b7fff  com.apple.quartzfilters (1.8.0 - 1.7.0) <39C08086-9866-372F-9420-81F5689149DF> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzFilters .framework/Versions/A/QuartzFilters
        0x7fff885b8000 -     0x7fff885dafff  com.apple.framework.fa

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Click the Clear Display icon in the toolbar. Then take an action that isn't working the way you expect. Select any lines that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name or email address, may appear in the log. Anonymize before posting.

  • Need to send a mail when job window time is over

    Hi ,
    select * from v$version;
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE 11.2.0.2.0 Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    ========
    I have created a job using dbms_scheduler.create_job with a 1 hour window ( created using dbms_scheduler.create_window ) .
    My job triggers a stored procedure . Now I have a send_mail code at the end of the stored procedure which sends a mail with plsql log as an attachment . When my job runs more than 1 hour the stored proc is getting stopped and not triggering the mail though I put the same code in exception block ( exception when others ) .
    CREATE OR REPLACE PROCEDURE my_sp
    AS
    BEGIN
    -- some code ---
    begin
    -- send mail --
    end
    EXCEPTION
    WHEN OTHERS
    THEN
    send mail ( Can I get this piece when window time is over )
    END;
    Is there any other way I can run the last piece of the proc (send_mail) .
    Thanks ,
    Mahesh

    Mahesh wrote:
    Folllowing below note .
    http://download.oracle.com/docs/cd/E14072_01/server.112/e10595/scheduse008.htm
    but need to attach a file .
    SQL> desc utl_mail
    PROCEDURE SEND
    Argument Name               Type               In/Out Default?
    SENDER                VARCHAR2          IN
    RECIPIENTS               VARCHAR2          IN
    CC                    VARCHAR2          IN     DEFAULT
    BCC                    VARCHAR2          IN     DEFAULT
    SUBJECT               VARCHAR2          IN     DEFAULT
    MESSAGE               VARCHAR2          IN     DEFAULT
    MIME_TYPE               VARCHAR2          IN     DEFAULT
    PRIORITY               BINARY_INTEGER          IN     DEFAULT
    REPLYTO               VARCHAR2          IN     DEFAULT
    PROCEDURE SEND_ATTACH_RAW
    Argument Name               Type               In/Out Default?
    SENDER                VARCHAR2          IN
    RECIPIENTS               VARCHAR2          IN
    CC                    VARCHAR2          IN     DEFAULT
    BCC                    VARCHAR2          IN     DEFAULT
    SUBJECT               VARCHAR2          IN     DEFAULT
    MESSAGE               VARCHAR2          IN     DEFAULT
    MIME_TYPE               VARCHAR2          IN     DEFAULT
    PRIORITY               BINARY_INTEGER          IN     DEFAULT
    ATTACHMENT               RAW               IN
    ATT_INLINE               BOOLEAN           IN     DEFAULT
    ATT_MIME_TYPE               VARCHAR2          IN     DEFAULT
    ATT_FILENAME               VARCHAR2          IN     DEFAULT
    REPLYTO               VARCHAR2          IN     DEFAULT
    PROCEDURE SEND_ATTACH_VARCHAR2
    Argument Name               Type               In/Out Default?
    SENDER                VARCHAR2          IN
    RECIPIENTS               VARCHAR2          IN
    CC                    VARCHAR2          IN     DEFAULT
    BCC                    VARCHAR2          IN     DEFAULT
    SUBJECT               VARCHAR2          IN     DEFAULT
    MESSAGE               VARCHAR2          IN     DEFAULT
    MIME_TYPE               VARCHAR2          IN     DEFAULT
    PRIORITY               BINARY_INTEGER          IN     DEFAULT
    ATTACHMENT               VARCHAR2          IN
    ATT_INLINE               BOOLEAN           IN     DEFAULT
    ATT_MIME_TYPE               VARCHAR2          IN     DEFAULT
    ATT_FILENAME               VARCHAR2          IN     DEFAULT
    REPLYTO               VARCHAR2          IN     DEFAULT

  • How to send a mail with HTML body from Oracle

    Hi Team,
    Can somebody guide me how to send a mail with HTML body from oracle.
    Here is the piece of code i am trying to send a mail.
    procedure SEND_MAIL is
    cursor c_1 is select * from table_name;
    l_mail_id varchar2(40);
    -- ls_mailhost VARCHAR2(64) := Mailhost;
    ls_from VARCHAR2(64) := ‘[email protected]
    ls_subject VARCHAR2(200);
    ls_to VARCHAR2(64);
    l_mail_conn UTL_SMTP.connection;
    ls_left_menu_name VARCHAR2(64);
    ll_emp_num number(8);
    begin
    for i in c_1 loop
    begin
    l_mail_conn := UTL_SMTP.OPEN_CONNECTION('IP');
    UTL_SMTP.HELO(l_mail_conn, 'IP');
    UTL_SMTP.MAIL(l_mail_conn, LS_FROM);
    UTL_SMTP.RCPT(L_mail_conn, LS_TO);
    UTL_SMTP.DATA(l_mail_conn,'From: ' ||ls_from || utl_tcp.crlf ||
    'To: ' ||ls_to || utl_tcp.crlf ||
    'Subject: ' ||ls_subject|| utl_tcp.crlf);
    UTL_SMTP.QUIT(l_mail_conn);
    exception
    when no_data_found then
    null;
    when others then
    RAISE_APPLICATION_ERROR(-20000, 'Failed to send mail due to the following error: ' || sqlerrm);
    end;
    end loop;
    end;
    Thnx

    Hi Nicolas!
    Have you tried to set "Output Format" for "RAW Text" to HTM in SCOT.
    If HTM is missing in your dropdown-list, you could check out table SXCONVERT2. Copy the line with category T/format TXT, and change the format from TXT to HTM. The existing function
    SX_OBJECT_CONVERT__T.TXT does not need to be changed. Now you should be able to choose HTM in SCOT. You will probably need som HTML-tags in your text to make it look good.
    Hope this helps!
    Regards
    Geir

Maybe you are looking for

  • Visual Basic making pdf with hyperlink Acrobat 9 / Office 2003

    hello, I try to make document with VBA and I can't use the same references. AdobePdfMakerForOffice seems don't work since Acrobat 6 ( an object seems to have disappear) I have try with pdfmakerapilib an have an error (-10) If someone has an Idea for

  • Interface Determination under Enhanced Receiver Determination Scenario

    Hi, One of the very basic assumption for Enhanced Receiver Determination is that Receivers are found at run time, and one of the such requirement is that we don't know about Receiver  Business System at the time of configuration. Now for such scenari

  • Sharing albums thru photo stream

    When someone else shares an album thru photo stream with me, does it take up my icloud stroage space or just theirs?

  • Trackpad not working as expected

    Hi I bought a new 27" iMac with a trackpad about three weeks ago and ever since I ve been having problems with the trackpad If I go to click, for example , on a menu item in an app or in safari on a link, every so often the cursor disappears and appe

  • Updating my iPod mini from a second PC

    I want to update my iPod mini from a second PC. When I start to do so I get a message that my iPod is linked to another iTunes music library and am asked: Do you want to change the link and replace all existing songs with those from this (the second)