Send mail issue

I am using JavaMail API 1.1.3 to compose and send mail messages. It is possible to send messages both in text or HTML format with or without attachments. But recently just one user has complained that some mails sent out from our system is not being parsed by recipient servers. There is no pattern to the problem - apparently people from different companies using different mail servers are reporting this problem.
Below is part of the header of a mail that was sent from my server. Does anyone know what could be the reason? I suspect the content-transfer-encoding: 7bit. If that is the culprit, how can I change it?
Thanks in advance.
Message-ID: <12173.1045192088842.JavaMail.IUSR_RLIVE-DEV@RLDEVIIS>
Date: Fri, 14 Feb 2003 14:08:08 +1100 (GMT+11:00)
Subject: Test header
Mime-Version: 1.0
Content-Type: text/html
Content-Transfer-Encoding: 7bit

Hi asheque have a look on following link.
http://ccm.redhat.com/asj/mime/
rest if u think there is some problem withe encoding u can try addheader Content-Transfer-Encoding Quoted-printable or something like that.

Similar Messages

  • Oracle PLSQL Send mail Issue.

    Hi All,
    I used to send some emails using oracle PLSQL code in both 10 g and 11g.But now days mail is getting triggered without any body in both the 10g and 11g versions.
    Some mails are triggering perfectly.I am unable to sort out the issue, please help me in this concern.

    Code that i have used is:
    create or replace
    PROCEDURE Sendmail(V_MAILHOST VARCHAR2,V_FROM VARCHAR2,V_TO clob ,V_CC VARCHAR2, V_SUBJECT VARCHAR2,V_MSGTEXT VARCHAR2,V_MODULE VARCHAR2) AS
      l_mail_conn   UTL_SMTP.connection;
      l_subject      VARCHAR2(100):='test mail';
      l_msg_text   VARCHAR2(500):='hi , testing alert mail';
      v_reply      utl_smtp.reply;
      L_RECIPIENTS  clob;
      l_recipients1  clob;
      V_TO1            clob;
      v_errmsg        VARCHAR2(500);
      mul_recip        NUMBER;
      mul_recip1        NUMBER;
      slen             NUMBER:=1;
      slen1             NUMBER:=1;
      V_errcode        VARCHAR2(500);
    BEGIN
      l_mail_conn:= UTL_SMTP.open_connection(v_mailhost,25);
       v_reply :=UTL_SMTP.helo(l_mail_conn, v_mailhost);
       v_reply :=UTL_SMTP.mail(l_mail_conn, v_from);
      -- V_TO1:=null;--'[email protected]';
       SELECT INSTR(V_TO,',') INTO mul_recip FROM dual;
        IF mul_recip =0
        THEN
             utl_smtp.rcpt(l_mail_conn, V_TO );
        ELSE
            WHILE(INSTR(V_TO,',',slen) > 0)
            LOOP
                  l_recipients := SUBSTR(V_TO, slen, INSTR(SUBSTR(V_TO,slen),',')-1);
                  slen := slen+INSTR(SUBSTR(V_TO, slen),',');
                utl_smtp.rcpt(l_mail_conn, l_recipients);
            END LOOP;
                l_recipients := SUBSTR(V_TO, slen);
                utl_smtp.rcpt(l_mail_conn, l_recipients);
        END IF;    
         IF V_CC IS NOT NULL
         THEN
          SELECT INSTR(V_CC,',') INTO mul_recip1 FROM dual;
        IF mul_recip1 =0
        THEN
             utl_smtp.rcpt(l_mail_conn, V_CC );
        ELSE
            WHILE(INSTR(V_CC,',',slen1) > 0)
            LOOP
                  l_recipients1 := SUBSTR(V_CC, slen1, INSTR(SUBSTR(V_CC,slen1),',')-1);
                  slen1 := slen1+INSTR(SUBSTR(V_CC, slen1),',');
                utl_smtp.rcpt(l_mail_conn, l_recipients1);
            END LOOP;
                l_recipients1 := SUBSTR(V_CC, slen1);
                utl_smtp.rcpt(l_mail_conn, l_recipients1);
        END IF;    
    END IF;        
    v_reply :=utl_smtp.open_data(l_mail_conn );
    utl_smtp.write_data(l_mail_conn, 'From: ' || V_FROM || utl_tcp.crlf);
    utl_smtp.write_data(l_mail_conn, 'Subject: ' || v_subject || utl_tcp.crlf);
    utl_smtp.write_data(l_mail_conn, 'To: ' || V_TO || utl_tcp.crlf);
    utl_smtp.write_data(l_mail_conn, 'CC: ' || V_CC || utl_tcp.crlf);
    utl_smtp.write_data(l_mail_conn, 'Content-Type: text/html' || utl_tcp.crlf);
    UTL_SMTP.WRITE_DATA(L_MAIL_CONN, V_MSGTEXT );
      if length(V_TO)>=4000 then
      dbms_output.put_line('none');
      else
       insert into MAIL_LOG(MAILFROM, MAILTO, SUBJECT, LOGGED_DATE, MAIL_STATUS, MAILCC, MAILTEXT,MODULE_ID)
          VALUES(V_FROM,v_to,V_SUBJECT,SYSDATE,'sent',V_CC,V_MSGTEXT,V_MODULE);
        end if;
        utl_smtp.close_data(l_mail_conn );
        utl_smtp.quit(l_mail_conn);
    EXCEPTION
    WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
        BEGIN
          UTL_SMTP.QUIT(l_mail_conn);
        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;
         v_errmsg:='Failed to send mail due to the following error: ' ||SQLERRM||' errcode '||SQLCODE||'from :'||V_FROM|| ' V_TO '||V_TO;
    INSERT INTO MAIL_LOG(MAILFROM, MAILTO, SUBJECT, LOGGED_DATE, MAIL_STATUS, MAILCC, MAILTEXT,MODULE_ID)
    VALUES(V_FROM,v_to,V_SUBJECT,SYSDATE,v_errmsg,V_CC,V_MSGTEXT,V_MODULE);
    END Sendmail;

  • Windows Live Sending mail Issue

    Hi Team,
    As I can't able to send mails to more than 50 recepients on a single go. I'm getting this error
    Subject '*************'
    Server: 'smtp.gmail.com'
    Windows Live Mail Error ID: 0x800CCC0B
    Protocol: SMTP
    Port: 25
    Secure(SSL): Yes
    I changed the Port to 587 and 465 but no result. Please help me out how to tackle from this situation

    That error ID indicates that the destination is busy, rather than you've reached the recipient limit. Gmail seem to have multiple limits depending on method of sending, but from what I can see in this instance the recipient limit would be 100 rather than
    50 so that's not your issue.
    Most common cause for that error is local anti-virus / firewall software causing issues. There's a thread discussing the same issue here
    http://answers.microsoft.com/en-us/windows/forum/windows_vista-networking/error-code-0x800ccc0b-when-trying-to-send-email/31dce8ff-7b1a-4b25-b3bf-eba5eccabd29 and includes a few troubleshooting steps, but the main initial one is to disable any AV software
    you have installed on your machine temporarily and try sending again. If that works then it's definitely the AV software causing the problem, and configuring it to no longer scan outbound mail may resolve it, depending on the AV software you're using.

  • Mail 7.0 (1822) Sending Mail Issues

    In OS X 10.9, I consistently have issues when sending mail, the message seems to stall at the outgoing server for some reason and Mail forces me to select a different outgoing server.  After I select the same server as is already correctly configured, Mail.app finally sends the message.
    Steps I've taken to replicate this issue:
    Removed all email accounts from: System Preferences/Internet Accounts
    Rebooted MacBook
    Verified all accounts were removed
    Rebooted once more
    Added accounts back to Mail.app
    Rebooted once more
    Problem persisted so I repeated above 3 times before sending this message.
    Problem will not go away!  I didn't have this issue in 10.8.x
    Types of Mail accounts:
    MS Exchange (config as Exchange, not IMAP)
    iCloud (Mac mail)
    GoogleMail IMAP account
    Standard IMAP account

    I installed Mavericks on my iMac as a completely new installation due to a replaced dead hard drive. I also have a powerbook with a standard Mavericks install. Both are updated to the 1822 build of Mail version 7.0. My host is 123-reg.
    Recieving emails works fine. Sending is near impossible, yet strangely intermittent. However both computers will either work, or not, for no apparent reason. I have been in touch with 123-reg support who suggest it is due to the ISP ( in my case BT). My iPhone 5s meanwhile hums along happily which is on O2.
    I cannot pinpoint any one change at my end that makes any sort of permanent difference. I have made all the normal checks and gone through the loops of changing ports and security etc. It sometimes works and sometimes don't. Everytime the error message is the same:-
    Connections to the server “smtp.123-reg.co.uk” on the default ports timed out.
    Activity monitor shows the turning Barbers Pole but just hanging there. Suddenly nearly all my messages were sent! I thought I might have done something my temporarily deactivating my account in system prefs/internet accounts. So I turned on my laptop, but that still would not work, nietehr would the iMac upon my return to it.
    Activity monitor seems to show some very quick actions that I cannot read. I wonder if it is set to go too fast for the server to respond?
    Hope this helps someone work out a fix as I need one as well.

  • Smtp - sending mail issues

    Bought a new Macbook Pro and have a home wireless connection (Orange). Can send and receive email (Pipex is my office ISP). Had to change smtp setting to Orange's in order to send mail.
    Problem: I intend to use my MacBook at various locations and have successfully logged into several wireless connections. Web browsing and receiving email no problem. Sending email never works other than at home?
    I cannot beleieve that I have to change smtp settings for every network I connect to in order to send email - It will be impossible.
    Pipex and Orange are not interested and offer no help at all. Help please.
    Not a .Mac user.
    MacBook Pro   Mac OS X (10.4.9)  
    MacBook Pro   Mac OS X (10.4.9)  

    Most networks block sending mail on port 25, except for their own customers.
    Ask Orange or Pipex (or google for it) if they have an alternate smtp port (like 587) that works instead of port 25.

  • Sending mail issues from personal account with bt router

    Please can anyone help? I have a personal email address which mails fine from my ipad and iphone but since changing to a BT router it won't mail from my macbook pro despite the other devices working fine!
    BT won't help and say they don't support 3rd party emails which I never knew - now I'm stuck with them for 18 mnths!
    Is it a firewall issue on the Macbook pro? I had a friend try to set up Thunderbird on my macbook pro with the personal address and again it received mails fine but wouldn't send - just gives the same error message saying it couldn't connect to the SMTP server...
    Please does anyone have any suggestions as I can now received and read work based messages on my macbook pro but have to respond from ipad or iphone :-(
    Thank you for any advice anyone can offer...

    I have experienced the same problems. I could receive but not send email through a third party email. Our ISP is BT and it would appear even though they wont admit it that they have changed some peoples settings.
    I spoke with my email provider 123-reg and they asked me to check my ISP and then check the SPAMHAUS and our ISP has been Blocklisted. I called BT and they wouldnt answer why this had happened.
    To cut a long story short I have had to pay BT £30 (not happy) to resolve the problem. They set my SMTP details as mail.btinternet.com and i had to authenticate this by logging into a BT/Yahoo email account that we never use., go to options then mail options then mail accounts and add details for the account your having problems with. You should then receive an email link on your third party email address.
    I have actually complained to OFCOM about this as I dont believe that I should have to pay to rectify a problem that I havent caused. All BT would say is that they fixed the problem and I have to pay the £30. they wouldnt answer why I couldnt send emails prior to this fix. I asked why I now have to have the SMTP as mail.btinternet.com and again they couldnt answer this.
    I hope this helps

  • Yet another cant send mail issue

    Hi, I am going nuts here!! At home I have Comcast and my dotmac account works via port 25 no set up, perfect. I am now in another house with comcast and I cannot send anything. I telnetted port 25, nothing shows, so I contacted Comcast and they sent me this url http://www.comcast.net/help/faq/index.jsp?faq=EmailMail_(Mac)17798 it seems to have ALL the answers, but I am just going round in circles.
    Assume I want to set up for traveling purposes. I set up a new account POP, used dotmac info for incoming mail/server info and for outgoing server I have smtp.comcast.net, I use the 465 port with ssl, and for the password authentication I use my dotmac name and password.
    In advanced I use 995 port and ssl.
    This info seems good to go, but when I try to send I always get the dialog box The SMTP server “smtp.comcast.net” rejected the password for user “dotmac account”.
    I just cant work out why it wont accept the password. Should I have some extra comcast info?
    this is madness, but oh well, is there an answer out there

    Checking Comcast's website, Comcast's SMTP server settings should be as follows:
    SMTP Server: smtp.comcast.net
    Server Port: 587
    Use SSL: Off or not selected.
    Authentication: Password
    User Name: The portion of your Comcast email address in front of the @ sign only.
    Password: Your Comcast account password - the same password used to check the incoming mail server for new messages.
    .Mac's SMTP server settings should be as follows:
    SMTP Server: smtp.mac.com
    Server Port: 587
    Use SSL: On/Selected but isn't required.
    Authentication: Password
    User Name: The portion of your .Mac email address in front of the @ sign only.
    Password: Your .Mac account password - the same password used to check the incoming mail server for new messages.
    These settings will not guarantee being able to send messages with either account and SMTP server when traveling and not connected to the internet with Comcast. This is determined by the ISP being used to connect to the internet since all ISPs have restrictions on using an SMTP server that is outside of their network or not provided by the ISP.
    You can use .Mac's authenticated SMTP server to send messages with your .Mac account only but you can use Comcast's authenticated SMTP server to send messages with your .Mac account when connected to the internet with Comcast.

  • Sending mail slow

    All of a sudden, it seems like it takes forever to send a small simple (Text only email)* (Apple Mail: Version 3.0 (912.1/912).
    I'm hooked up to "Super road runner". I just did a speed test and the results were: Download= 9185 kbps, Upload 956 kbps. Any ideas??

    jabidof wrote:
    Maybe this can be helpful to others.
    I solved this weird problem by adding manually some DNS server IP addresses to my Airport configuration. This happened to solve the slow sending mail issue.
    I'm still a bit puzzled why this can happen on a 21st century OS... Should be smarter than that to my opinion.
    Anyway, Mail.app is back on tracks
    Great suggestion! To flesh it out some more, I'd be sure to use the ISP's DNS numbers, rather than some third party, in the System Preferences » Network control panel. Then if it doesn't work, call the ISP and get some feedback from them...

  • Is there a fix for "can't send mail?"

    I just spent 4+ hours on this forum and worked through all suggestions I could find - still can't send mail. It happened yesterday afternoon, from one moment to the next - suddenly all my three POP accounts are offline and there was nothing I could do about it. I checked with Entourage, same thing there as well, can't send mail.
    I have no idea if this is connected with the problem in many posts about the "can't send mail" issue or not, but at least on the surface it looks like it is.
    Any help is appreciated! Thank you.

    Yes, there are complaint sites online where I've read hundreds of complaints that trickle in one by one on different dates.
    Take a look at this post, and the comments below it:
    http://www.lockergnome.com/usrbingeek/2007/04/12/comcast-blocking-port-25/
    This is going to be an ongoing problem for different users, one at a time.
    DSL users in my area are going through a similar issue with their CenturyTel email accounts. Over the last two years they have added a new smtp server and some people were transferred immediately to it, and others got added month by month (some were on smtp.centurytel.net while others are on smtpauth.centurytel.net). Then a couple of months ago, they started requiring login and password to the smtp server, but not for all users. I get a few calls a month for the next batch. Centurytel has gone with a 3rd party email hosting company so that they don't have to deal with it.
    I'm trying to set up all clients with the latest changes, but they don't always work in advance of the changes. It's hit and miss. CenturyTel has said that they have posted notices on their help site, but who goes there?
    Maybe they are just trying to manage their tech support load during changes?
    Message was edited by: dechamp

  • Sender Mail Adapter issue

    Hi All,
    We are getting this error in Sender Mail adapter.
    "exception caught during processing mail message; java.net.ConnectException: A remote host refused an attempted connect operation"
    It is a (Lotus Notes) Mail to File scenario.
    Used POP3, and gave the URL as POP:// ** .
    I have tried pinging the server and getting a good response.
    I have also tried the OS01 ans it returned a response : Program Terminated.
    I am not sure if the POP3 port is enabled.
    Are there any check points we are missing ?
    Please throw some light on this as we need to solve this asap ..
    Yashwanth
    Edited by: YashwanthSVK on Aug 2, 2011 7:18 PM

    Shabarish is right.
    This seem a connectivity issue. Try to ping Mail server from your PI System and check pop3 port.
    This document can be helpful for you:
    http://wiki.sdn.sap.com/wiki/display/XI/SMTPConfigurationinSAPXI

  • I have seen all the early responses to how to fix AOL mail issues on Iphones, however no mater how many smpt servers I set up or on .... I can not get AOL mail to send from my Iphone 5, running IOS 6.  I have an Iphone 4 running IOS6 and it works fine...

    I can not get the Iphone 5 to send out aol mail.  I have added the extra smtp server as suggested and it still will not send mail.

    I am having the same problem. Sometimes it works and sometimes it doesn't. I called apple restored my phone to its original and it did not work :-( Now it seems like it worked for a bit than stopped again. Now I have to contact Apple again to set up an appointment at an Apple store because it may be an issue with my phone. I have only had it for a week and half!

  • Issue  while sending mails using classes

    Hi Experts ,
    i have one issue when i try to send mails using classes cl_document_bcs,cl_cam_address_bcs,cl_bcs etc
    ISSUE :
    i put some data in selection screen and i get some output ( say i got 5 records), i select 3 records and press some button to trigger mail and mail is send, and now again the OUTPUT screen is  shown with  sended records but we can not send these records again ............ now i selcect remaining two records  and press button to trigger mail and THIS TIME MAIL IS NOT SEND.
    amd my code is :
    CREATE OBJECT l_document.
      CREATE OBJECT l_recipient.
      TRY.
          cl_bcs_convert=>string_to_solix(
          EXPORTING
          iv_string = fp_wa_output
          iv_codepage = fp_v_code_page
          iv_add_bom = 'X'
          IMPORTING
          et_solix = l_wa_output_binary
          ev_size = l_v_size ).
          l_send_request = cl_bcs=>create_persistent( ).
    *-->Creating Document
          l_document = cl_document_bcs=>create_document(
          i_type = 'RAW'
          i_text = fp_it_content[]
          i_subject = fp_text_48 ) .
    *-->Adding Attachment*
          CALL METHOD l_document->add_attachment
            EXPORTING
              i_attachment_type    = fp_text_049
              i_attachment_size    = l_v_size
              i_attachment_subject = fp_v_file
              i_att_content_hex    = l_wa_output_binary.
    *-->Add document to send request*
          CALL METHOD l_send_request->set_document( l_document ).
    *    do send delivery info for successful mails
          CALL METHOD l_send_request->set_status_attributes
            EXPORTING
              i_requested_status = 'E'
              i_status_mail      = 'A'.
    *-->Get Sender Object
          l_uname = sy-uname.
          l_sender = cl_sapuser_bcs=>create( l_uname ).
          CALL METHOD l_send_request->set_sender
            EXPORTING
              i_sender = l_sender.
          LOOP AT fp_s_mail INTO l_wa_mail.
            l_v_objid = l_wa_mail-low.
            l_v_mail = l_v_smtpadr.
            TRANSLATE l_v_mail TO LOWER CASE.
            l_recipient = cl_cam_address_bcs=>create_internet_address( l_v_mail ).
            CALL METHOD l_send_request->add_recipient
              EXPORTING
                i_recipient  = l_recipient
                i_express    = 'X' .
    *            i_copy       = ' '
    *            i_blind_copy = ' '
    *            i_no_forward = ' '.
          ENDLOOP.
    **-->Trigger E-Mail immediately*
    *      IF fp_send_all EQ 'X'.
    *        l_send_request->set_send_immediately( 'X' ).
    *      ENDIF.
          CALL METHOD l_send_request->send(
          EXPORTING
          i_with_error_screen = 'X'
            RECEIVING result = l_v_sent_to_all ).
          BREAK TARK.
          IF l_v_sent_to_all = 'X'.
            MESSAGE i000 .
          ENDIF.
        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.
        CATCH cx_bcs INTO l_exp.
      ENDTRY.
    thanks in advance
    rahul

    Every time when i choose other network or dongle to send those mails it gets sent.
    As per the description, seems it's an issue related to this specific network. Probably, they've adjusted their security policy, like blocked some port numbers, etc.
    You might need to contact the support of your ISP to confirm what SMTP settings you need. Check port number, and security settings.
    By the way, this is the forum to discuss questions and feedback for Windows-based Microsoft Office client. Since your query is directly related to
    Office for mac, I would suggest you to post in the forum of
    Office for Mac, where you can get more experienced responses:
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011?tab=Threads
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Issue with sending mail through java stored procedure in Oracle

    Hello
    I am using Oracle 9i DB. I created a java stored procedure to send mail using the code given below. The java class works fine standalone. When its run from Java, mail is sent as desired. But when the java stored procedure is called from pl/sql "Must issue a STARTTLS command first" error is thrown. Please let me know if am missing something. Tried the same code in 11.2.0.2 DB and got the same error
    Error:
    javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first. va6sm31201010igc.6
    Code for creating java stored procedure: (T1 is the table created for debugging)
    ==================================================
    create or replace and compile java source named "MailUtil1" AS
    import java.util.Enumeration;
    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;
    public class MailUtil1 {
    public static void sendMailwithSTARTTLS(String host, //smtp.projectp.com
    String from, //sender mail id
    String fromPwd,//sender mail pwd
    String port,//587
    String to,//recepient email ids
    String cc,
    String subject,
    String messageBody) {
    try{
    Properties props = System.getProperties();
    props.put("mail.smtp.starttls.enable", "True"); // added this line
    props.put("mail.smtp.host", host);
    props.put("mail.smtp.user", from);
    props.put("mail.smtp.password", fromPwd);
    props.put("mail.smtp.port", port);
    props.put("mail.smtp.auth", "true");
    #sql { insert into t1 (c1) values ('1'||:host)};
    Session session = Session.getDefaultInstance(props, null);
    MimeMessage message = new MimeMessage(session);
    message.setFrom(new InternetAddress(from));
    #sql { insert into t1 (c1) values ('2')};
    InternetAddress[] toAddress = new InternetAddress[1];
    // To get the array of addresses
    for( int i=0; i < toAddress.length; i++ ) { // changed from a while loop
    toAddress[i] = new InternetAddress(to);
    //System.out.println(Message.RecipientType.TO);
    for( int i=0; i < toAddress.length; i++) { // changed from a while loop
    message.addRecipient(Message.RecipientType.TO, toAddress);
    if (cc!=null) {
    InternetAddress [] ccAddress = new InternetAddress[1];
    for(int j=0;j<ccAddress.length;j++){
    ccAddress[j] = new InternetAddress(cc);
    for (int j=0;j<ccAddress.length;j++){
    message.addRecipient(Message.RecipientType.CC, ccAddress[j]);
    message.setSubject(subject);
    message.setText(messageBody);
    message.saveChanges();
    #sql { insert into t1 (c1) values ('3')};
    Enumeration en = message.getAllHeaderLines();
    String token;
    while(en.hasMoreElements()){
    token ="E:"+en.nextElement().toString();
    #sql { insert into t1 (c1) values (:token)};
    token ="ConTyp:"+message.getContentType();
    #sql { insert into t1 (c1) values (:token)};
    token = "Encod:"+message.getEncoding();
    #sql { insert into t1 (c1) values (:token)};
    token = "Con:"+message.getContent();
    #sql { insert into t1 (c1) values (:token)};
    Transport transport = session.getTransport("smtp");
    #sql { insert into t1 (c1) values ('3.1')};
    transport.connect(host, from, fromPwd);
    #sql { insert into t1 (c1) values ('3.2')};
    transport.sendMessage(message, message.getAllRecipients());
    #sql { insert into t1 (c1) values ('3.3')};
    transport.close();
    #sql { insert into t1 (c1) values ('4')};
    catch(Exception e){
    e.printStackTrace();
    String ex= e.toString();
    try{
    #sql { insert into t1 (c1) values (:ex)};
    catch(Exception e1)
    Edited by: user12050615 on Jan 16, 2012 12:18 AM

    Hello,
    Thanks for the reply. Actually I have seen that post before creating this thread. I thought that I could make use of java mail to work around this problem. I created a java class that succesfully sends mail to SSL host. I tried to call this java class from pl-sql through java stored procedure. That did not work
    So, is this not supported in Oracle ? Please note that I have tested this in both 9i and 11g , in both the versions I got the error. You can refer to the code in the above post.
    Thanks
    Srikanth
    Edited by: user12050615 on Jan 16, 2012 12:17 AM

  • Issue in workflow binding of Table in send mail step

    Hi All,
    I am working on a Travel Management workflow where mail needs to be sent to the manager along with the trip details.
    We are displaying data in tables (html format). Now i need to add another such table with details into this already existing workflow but i am facing issues in binding.
    Issue: For already existing tables, the binding is like this,
    Export to task,
    &TRIP& --> &T_SUMMARY##&
    Import to w/f,
    &T_SUMMARY##& <--- &T_SUMMARY##&.
    But when i am trying to add my table in binding as, &TRIP& --> &T_MILEAGE##&,
    I am getting a binding error, &T_MILEAGE##& is not available in the container.
    I checked the container both in workflow and in task, both contain multiple declarations of the variable &TRIP& which is of type the BO.
    Kindly help me how to proceed further.
    Regards,
    Jose

    Hi Anjan,
    The status of  note  1658491 is also cannot not be implemented.
    I checked the correction given in this note. All changes exists into system.
    Following is code of method SEND ( (CL_SWF_UTL_MAIL_FACADE)
    *- check if document has recipients at all
           lt_recipients = lo_send_request->recipients( ).
           if lt_recipients is initial.
             lo_send_request->delete( ).
             ls_t100msg-msgid = 'WZ'.
             ls_t100msg-msgty = 'E'.
             ls_t100msg-msgno = 619.
             raise exception type cx_swf_run_wim
               exporting
                 t100_msg = ls_t100msg.
           else.
    *-       Send document
             call method lo_send_request->send( ).
           endif.
    The exception is thrown, because lt_recipients table is blank.
    With same parameter the workflow is running successfully if 'Long mail title' is not set in SWPA.
    When is field is active, workflow returns message Document <> could not be sent
    The method "SELFITEM->SendTaskDescription" does not send mail if Long Mail Title" indicator is set .   
    Thanks & Regards,
    Mounj K

  • Sender Mail Adapter ASMA issue - due to limitation of length upto 200 only.

    Hi,
    I have a scenario where i have to pull the emails from the mail server using sender mail adpater with XIPAYLOAD as message protocol.
    Also i am setting the "Set Adapter Setting Messgae Attributes" for retrieving values form header such as SHeaderCC etc..
    I use dynamic config in the mapping to get those values.
    The Scenario works fine, but when the cc length is more that 200, i am not getting any value in the inbound messgae to mapping.
    In SAP help, it says, "The length of the attribute value is defined by the XI message protocol. Values can be a maximum of 200 characters long. If, for example, you assign longer values in the mapping or adapter modules then this can lead to processing errors at runtime or the values are shortened to 200 characters. This shortening can also lead to a processing error. The processing error that occurs depends on the components that access the attributes."
    In my case, the cc is empty if the length is more that 200.
    Any idea how to tackle this issue? I think even writng the sender adapter module wont solve the issue as the any attribute lenght inthe message ehader cannot be greater than 200.
    All ideas are welcome.
    Regards,
    Manikandan R

    Hi
    As you said this error will occur when the mail messages with header attributes containing the values more than 200 chars. By including the adapter module u2013 DynamicConfigurationBean (valuelength) in the configuration part - Advanced you can avoid this error.
    Processing Sequence:
    AF_Modules/DynamicConfigurationBean
    Module Configuration
    dc.valueLength                    200
    Note:
    This module will remove the header attributes if the value is > 200.
    Regards
    Ramg

Maybe you are looking for