Error in sending OUTLOOK mail step

Hi ,
Here is the design of sending the mail.
From the OUTLOOK MAIL TO INITIATOR step i m getting the required mail id to whom mail should be sent from SAP system regarding the errors.
then on moving to the send mail step i m encountering the error ,below is the data elements i maintained in the send mail step.
But when a workflow is triggered i m getting the below error-->

Hi Ranjith
In your email step, the Type ID should be U - Email Address and not G - Org Object
Specify the recipient type as Email and then select the container element which contains the email ID.
Type ID G - is for org objects and to send directly to email IDs ... you need to use type U
regards,
Modak

Similar Messages

  • Error in sending external mail

    hi ..
    while sending mail using BCS objects .... i am geting error
    Internal error: SO_OBJECT_MIME_GET Exception: 2
    ....i too configured SCOT transaction wit port number 25 , mail host and also given the internet email id for mailing user....
    plz do help me ...

    This error occurs when you send a mail via the SMTP node and can have several causes:
    1. Default domain not set
    2. Default code page not set (only with multi-codepage systems)
    3. Code page not suitable for sending mail
    4. COMMIT WORK is missing (programming error)
    5. Workplace plug-in is missing
    Solution
    Activate the SAPconnect trace and resend the document if necessary. The next time the SAPconnect send job is running, search for the entries marked in red in the SAPconnect trace of the document. The applicable solutions, depending on these entries, are listed below:
    1. Default domain not set
    Trace entries:
    BCS->MIME_MESSAGE_GENERATE
    Sender Address Not Found 80
    SO_OBEJECT_MIME_GET
    No MIME Document Received. Error Code: SENDER_BCS
    SX_GENERATE_NDR
    Internal Error: SO_OBJECT_MIME_GET Exception: 0
    or
    SX_GENERATE_NDR
    Internal error: SO_OBJECT_MIME_GET Exception: 2
    or:
    BCS->MIME_MESSAGE_GENERATE
    Error during MIME Flow Generation
    BCS->MIME_MESSAGE_GENERATE
    Error During Automatic Determinaton of Default Internet Domain
    SO_OBEJECT_MIME_GET
    No MIME Document Received. Error Code: MIME_BCS
    SX_GENERATE_NDR
    Internal Error: SO_OBJECT_MIME_GET Exception: 0
    or
    SX_GENERATE_NDR
    Internal error: SO_OBJECT_MIME_GET Exception: 2
    Solution: In the SAPconnect Administration (transaction SCOT), you must set the domain of the SAP System (Settings --> Default Domain).
    2. Default code page not set (only with multi-codepage systems)
    Trace entries:
    CL_BCOM_MIME->GET_CODEPAGE
    Termination: Multi-Codepage Systems Not Supported
    SO_OBEJECT_MIME_GET
    No MIME Document Received. Error Code: MNA_DOC
    SX_GENERATE_NDR
    Internal Error: SO_OBJECT_MIME_GET Exception: 0
    or
    SX_GENERATE_NDR
    Internal error: SO_OBJECT_MIME_GET Exception: 2
    Solution: In the SAPconnect Administration (transaction SCOT), you must specify a code page on the SMTP node.
    3. Code page not suitable for sending mail
    Trace entries:
    CL_BCOM_MIME->GET_CHARSET
    Termination: Charset Cannot Be Determined for SAP Code Page
    SO_OBEJECT_MIME_GET
    No MIME Document Received. Error Code: MNA_DOC
    SX_GENERATE_NDR
    Internal Error: SO_OBJECT_MIME_GET Exception: 0
    or
    SX_GENERATE_NDR
    Internal error: SO_OBJECT_MIME_GET Exception: 2
    Solution: In the SAPconnect Administration (transaction SCOT), you must specify a code page (an entry is available in table TCP00A) that is suitable for sending mail on the SMTP node.
    4. COMMIT WORK is missing (programming error)
    Trace entries:
    SO_OBEJECT_MIME_GET
    No Send Order Exists -> Termination
    SX_GENERATE_NDR
    Internal Error: SO_OBJECT_MIME_GET Exception: 0
    Solution: See note 429427 for the correction.
    5. Configuration for the sending of Business Objects
    An attempt is made to send a document of type OBJ to an external recipient. This requires a conversion to TXT/HTML format, but the necessary modules are not configured correctly.
    Trace entries:
    SX_OBJECT_CONVERT_OBJ_HTM
    Converting Document Format from OBJ to TXT/HTML
    SO_OBEJECT_MIME_GET
    No MIME Document Received. Error Code: MNA_DOC
    SX_GENERATE_NDR
    Internal Error: SO_OBJECT_MIME_GET Exception: 0
    or
    SX_GENERATE_NDR
    Internal error: SO_OBJECT_MIME_GET Exception: 2
    Solution:
    Please refer to Note 530932.
    1. You can refer to SAP Note 487754.
    2. Error in Sending External Mail
    3. Re: BWCCMS: send email if process chain fails?
    Hope this will solve your issue.
    Re: Send mails
    Re: SCOT Setup
    Reward points..

  • Workitem in attachment of outlook mail sending from mail step in workflow

    Hi  Expert,
    Presently  i am sending  a mail to approver of PO to external ID to inform that he has received a workitem in SAP in Box please login into SAP system and Approve the PO....
    But now requirment has changed .
    They need  this workitem in attachment of the mail i am sending to approver. approver click on that attachment it automaticly direct to sap system to the transaction ME21N to approve PO.
    Please guide to achive the new requirment..
    Deepanker Dwivedi

    There are two ways of doing this stuff...if you are running on WAS 6.4 or above then use second one.
    First method:-
    Schedule the program RSWUWFML2 as per your requirement. This will route the workitem links to the external mail id like outlook from user can log into sap and approve or reject the workitem.The SCOT should be configured to send and recieve external mails.
    Second Method:-
    U can use extended notifications for approving the workiten from the outlook or any other extrenal mail id.
    The basic configuration required is expalined in these two links
    [http://help.sap.com/saphelp_erp2005vp/helpdata/en/d5/581ee8d56f1247bf34cfcd66d16d81/frameset.htm|
    [/people/saujanya.gn/blog/2006/12/19/how-to-get-work-items-your-outlook-inbox ]
    Please revert back if you require further inputs.

  • Sending OUTLOOK mail from Workflows

    HI ,
    Please help me in getting out of this error encountered during a sample workflow thing.
    Here is the requirement I need to send a OUTLOOK mail from SAP.If the user accepts the workflow task then mail  need to send a recipient ,stating that he accepthed the request.
    Below I designed  that task.
    In send Mail step I added the recipent thing as stated below.But I was unable to send mail to OUTLOOK .In this I am not even  getting notification in my SBWP  in SAP INBOX.
    How should i send the mail to OUTLOOK from SAP.

    Hi Ranjith,
    Here's some friendly advice for you:
    - don't post the same question twice
    - if you get a specific error message ('wait for communications service'), try investigating it yourself by googling it.
    In this case, your issue is almost certainly with your mail setup - you can confirm this by trying to send a mail from SBWP to an external address. If so, it's a Basis issue, not workflow. You can safely hand it off to your Basis team.
    cheers
    Paul

  • Error while sending a mail using UTP_MAIL package in Oracle 10g

    Hi,
    We are using UTP_MAIL package to send a mail from Oracle 10g.We have follwed the following steps ...
    SQL> connect sys/password as sysdba
    Connected.
    SQL> @$ORACLE_HOME/rdbms/admin/utlmail.sql
    Package created.
    Synonym created.
    SQL> @$ORACLE_HOME /rdbms/admin/prvtmail.plb
    Package body created.
    SQL > alter system set smtp_out_server = '<mail_server_ip:25>' scope =spfile;
    System altered..
    Now we try the code
    begin
    utl_mail.send(
    sender => 'sender's mail',
    recipients => 'receiver mail',
    CC => 'optional',
    subject => 'Testing utl_mail',
    message => 'Test Mail'
    end;
    But we get the following error...
    ERROR at line 1:
    ORA-29278: SMTP transient error: 421 Service not available
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 97
    ORA-06512: at "SYS.UTL_SMTP", line 139
    ORA-06512: at "SYS.UTL_MAIL", line 405
    ORA-06512: at "SYS.UTL_MAIL", line 594
    ORA-06512: at line 2
    We also tried connecting to the mail server through telnet .But it is not getting connected..
    Please help us to solve the issue.

    From your own posting you may have the clue, if you try to access your mail server through telnet and it is not successful, it means the service is down or there are networking issues.
    On pre 10gR2 versions there was a bug 4083461.8. It could affect you if you are on 10gR1
    "Bug 4083461 - UTL_SMTP.OPEN_CONNECTION in shared server fails with ORA-29278 Doc ID:      Note:4083461.8"
    This was fixed on 10gR2 base and on 9.2.0.8.0
    ~ Madrid

  • Error while sending E-Mail Notification

    hi,
    when i tried to send mail from BPEL i faced error, where i configured the outlook with gmail server its working fine,here i paste the ns-emails.xml and the error code is server.
    ns_emails.xml
    <EmailAccounts xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"
    EmailMimeCharset=""
    NotificationMode="ALL">
    <EmailAccount>
    <Name>Default</Name>
    <GeneralSettings>
    <FromName>my name</FromName>
    <FromAddress>my email address</FromAddress>
    </GeneralSettings>
    <OutgoingServerSettings>
    <SMTPHost>smtp.gmail.com</SMTPHost>
    <SMTPPort>587</SMTPPort>
         <AuthenticationRequired>true</AuthenticationRequired>
    <UseTLS>true</UseTLS>
    </OutgoingServerSettings>
    <IncomingServerSettings>
    <Server>pop.gmail.com</Server>
    <Port>995</Port>
    <Protocol>pop3</Protocol>
    <UserName>my email address</UserName>
    <Password ns0:encrypted="false" xmlns:ns0="http://xmlns.oracle.com/ias/pcbpel/NotificationService">my password</Password>
    <UseSSL>true</UseSSL>
    <Folder>Inbox</Folder>
    <PollingFrequency>1</PollingFrequency>
    <PostReadOperation>
    <MarkAsRead/>
    </PostReadOperation>
    </IncomingServerSettings>
    </EmailAccount>
    </EmailAccounts>
    Error in server:
    javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS
    command first. a4sm326251tib.11
    at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTran
    sport.java:1020)
    at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTranspor
    t.java:716)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTrans
    port.java:388)
    at oracle.tip.pc.services.notification.email.EmailDriver
    .sendMessage(EmailDriver.java:215)
    at oracle.tip.pc.services.notification.email.EmailDriver
    .send(EmailDriver.java:185)
    at oracle.tip.pc.services.notification.DefaultNotificati
    onServiceImpl.sendEmailNotification(DefaultNotificationServiceImpl.java:251)
    at oracle.tip.pc.services.notification.NotificationServi
    ceImpl.sendEmailNotification(NotificationServiceImpl.java:271)
    at oracle.bpel.services.notification.queue.sender.MDBCon
    sumer.deliverNotification(MDBConsumer.java:256)
    at oracle.bpel.services.notification.queue.sender.MDBCon
    sumer.onMessage(MDBConsumer.java:137)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMet
    hodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Deleg
    atingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.evermind.server.ejb.interceptor.joinpoint.EJBJoin
    PointImpl.invoke(EJBJoinPointImpl.java:35)
    at com.evermind.server.ejb.interceptor.InvocationContext
    Impl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterce
    ptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContext
    Impl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.SetContext
    ActionInterceptor.invoke(SetContextActionInterceptor.java:44)
    at com.evermind.server.ejb.interceptor.InvocationContext
    Impl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(
    InvocationContextPool.java:55)
    at com.evermind.server.ejb.MessageDrivenConsumer.onMessa
    ge(MessageDrivenConsumer.java:347)
    at com.evermind.server.ejb.MessageDrivenConsumer.process
    Messages(MessageDrivenConsumer.java:233)
    at com.evermind.server.ejb.MessageDrivenConsumer.run(Mes
    sageDrivenConsumer.java:169)
    at com.evermind.util.ReleasableResourcePooledExecutor$My
    Worker.run(ReleasableResourcePooledExecutor.java:298)
    at java.lang.Thread.run(Thread.java:595)
    please help me out to resolve the issue.
    thanks in Advance
    Aswath Thaniga

    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

  • Regarding runtime error ehile execution of Mail step in workflow

    Hi all when i execute mail step in workflow i am getting following error-
    SQL error in the database when accesing a table.
    How to correct the error
       Database error text........: "SQL system error. MSGID= Job=038082/DEV05/WP02"
       Internal call code.........: "[RSQL/INSR/ARFCSDATA ]"
       Please check the entries in the system log (Transaction SM21).
       If the error occures in a non-modified SAP program, you may be able to
       find an interim solution in an SAP Note.
       If you have access to SAP Notes, carry out a search with the following
       keywords:
       "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB"
       "SAPLARFC" or "LARFCU03"
       "END_TRANSACTION_NONE_LOCAL_UPD"
       If you cannot solve the problem yourself and want to send an error
       notification to SAP, include the following information:
       1. The description of the current problem (short dump)
          To save the description, choose "System->List->Save->Local File
       (Unconverted)".
       2. Corresponding system log
          Display the system log by calling transaction SM21.
          Restrict the time interval to 10 minutes before and five minutes
       after the short dump. Then choose "System->List->Save->Local File
       (Unconverted)".
       3. If the problem occurs in a problem of your own or a modified SAP
       program: The source code of the program
          In the editor, choose "Utilities->More
    Please guide.
    Thanks.

    Hi Sanjay,
    Firstly are you using Send mail Activity or are u calling Fm SO_DOCUMENT_SEND_API1.
    Well  I suppose u are calling the FM, in that case just check the data that you are fetching before calling this FM. This error is related to sql query so check your select statements used before sending mail.
    Hope this helps.

  • 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

  • Getting error when sending SMTP mail using javamail api

    hi all
    i am new to javamail api...and using it first-time....i'v used the following code
    <%
    String mailHost="mail.mastsale.com";
    String mailText="Hello this is a test msg";
    String to="<a href="mailto:[email protected]">[email protected]</a>";
    String subject="jsp test mail";
    try
    String from="<a href="mailto:[email protected]">[email protected]</a>";
    String mailhost = "mail.mastsale.com";
    Properties props = System.getProperties();
    props.put("mail.smtp.host", mailhost);
    // Get a Session object
    Authenticator auth = new SMTPAuthenticator( "<a href="mailto:[email protected]">[email protected]</a>", "abcd" );
    Session session1 = Session.getInstance(props,auth);
    //Session.setDebug(true);
    //construct message
    Message msg = new MimeMessage(session1);
    msg.setFrom(new InternetAddress(from,"Your Name"));
    msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));
    msg.setSubject(subject);
    msg.setText(mailText);
    //msg.setHeader("X-Mailer",mailer);
    msg.setSentDate(new Date());
    msg.saveChanges();
    //Send the message
    out.println("Sending mail to " + to);
    Transport.send(msg);
    catch (MessagingException me)
    out.println("Error in sending message for messaging exception:"+me);
    %>
    and
    SMTPAuthenticator.java
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class SMTPAuthenticator extends javax.mail.Authenticator {
    private String fUser;
    private String fPassword;
    public SMTPAuthenticator(String user, String password) {
    fUser = user;
    fPassword = password;
    public PasswordAuthentication getPasswordAuthentication() {
    return new PasswordAuthentication(fUser, fPassword);
    Now getting error as: Error in sending message for messaging exception:javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550-(host.hostonwin.com) [208.101.41.106] is currently not permitted to relay 550-through this server. Perhaps you have not logged into the pop/imap server 550-in the last 30 minutes or do not have SMTP Authentication turned on in your 550 email client.
    Can anyone help me?

    i got the following error while using the below code,
    -----------registerForm----------------
    DEBUG: setDebug: JavaMail version 1.3.2
    DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
    DEBUG SMTP: useEhlo true, useAuth true
    :::::::::::::::::::::::::::::::::<FONT SIZE=4 COLOR="blue"> <B>Error : </B><BR><HR> <FONT SIZE=3 COLOR="black">javax.mail.AuthenticationFailedException<BR><HR>
    -----------registerForm----------------
    public class SendMailBean {
    public String send(String p_from, String p_to, String p_cc, String p_bcc,
    String p_subject, String p_message, String p_smtpServer,String FilePath) {
    String l_result = "";
    // Name of the Host machine where the SMTP server is running
    String l_host = p_smtpServer;
    //for file attachment
    String filename = FilePath;
    // Gets the System properties
    Properties l_props = System.getProperties();
    // Puts the SMTP server name to properties object
    l_props.put("mail.smtp.host", l_host);
    l_props.put("mail.smtp.auth", "true");
    // Get the default Session using Properties Object
    Session l_session = Session.getDefaultInstance(l_props, null);
    l_session.setDebug(true); // Enable the debug mode
    try {
    MimeMessage l_msg = new MimeMessage(l_session); // Create a New message
    l_msg.setFrom(new InternetAddress(p_from)); // Set the From address
    // Setting the "To recipients" addresses
    l_msg.setRecipients(Message.RecipientType.TO,
    InternetAddress.parse(p_to, false));
    // Setting the "Cc recipients" addresses
    l_msg.setRecipients(Message.RecipientType.CC,
    InternetAddress.parse(p_cc, false));
    // Setting the "BCc recipients" addresses
    l_msg.setRecipients(Message.RecipientType.BCC,
    InternetAddress.parse(p_bcc, false));
    l_msg.setSubject(p_subject); // Sets the Subject
    // Create and fill the first message part
    MimeBodyPart l_mbp = new MimeBodyPart();
    //123
    ///////l_mbp.setText(p_message);
    l_mbp.setContent(p_message,"text/html");
    // Create the Multipart and its parts to it
    Multipart l_mp = new MimeMultipart();
         //l_mp.setContent(html,"text/html");
    l_mp.addBodyPart(l_mbp);
    // Add the Multipart to the message
    l_msg.setContent(l_mp,"text/html");
    // Set the Date: header
    l_msg.setSentDate(new Date());
    //added by cibijaybalan for file attachment
         // attach the file to the message
    //Multipart l_mp1 = new MimeMultipart();
         if(!filename.equals(""))
                   String fname = filename;
                   MimeBodyPart mbp2 = new MimeBodyPart();
                   FileDataSource fds = new FileDataSource(fname);
                   mbp2.setDataHandler(new DataHandler(fds));
                   mbp2.setFileName(fds.getName());
                   l_mp.addBodyPart(mbp2);
              // add the Multipart to the message
              l_msg.setContent(l_mp);
    //ends here
         l_msg.setSentDate(new java.util.Date());
    // Send the message
    Transport.send(l_msg);
    // If here, then message is successfully sent.
    // Display Success message
    l_result = l_result + "Mail was successfully sent to : "+p_to;
    //if CCed then, add html for displaying info
    //if (!p_cc.equals(""))
    //l_result = l_result +"<FONT color=green><B>CCed To </B></FONT>: "+p_cc+"<BR>";
    //if BCCed then, add html for displaying info
    //if (!p_bcc.equals(""))
    //l_result = l_result +"<FONT color=green><B>BCCed To </B></FONT>: "+p_bcc ;
    //l_result = l_result+"<BR><HR>";
    } catch (MessagingException mex) { // Trap the MessagingException Error
    // If here, then error in sending Mail. Display Error message.
    l_result = l_result + "<FONT SIZE=4 COLOR=\"blue\"> <B>Error : </B><BR><HR> "+
    "<FONT SIZE=3 COLOR=\"black\">"+mex.toString()+"<BR><HR>";
    } catch (Exception e) {
    // If here, then error in sending Mail. Display Error message.
    l_result = l_result + "<FONT SIZE=4 COLOR=\"blue\"> <B>Error : </B><BR><HR> "+
    "<FONT SIZE=3 COLOR=\"black\">"+e.toString()+"<BR><HR>";
    e.printStackTrace();
    }//end catch block
    //finally {
    System.out.println(":::::::::::::::::::::::::::::::::"+l_result);
    return l_result;
    } // end of method send
    } //end of bean
    plz help me

  • Error when sending a Mail (SUBSTITUTE_NOT_DEFINED in SO_OBJECT_SEND)

    Hello,
    we want to send an e-mail from ABAP during the inbound processing of IDocs. We use the function module SO_OBJECT_SEND. During the perform CHECK_USER_ROLE the exception SUBSTITUTE_NOT_DEFINED is raised. Because of this error the mail is not sent. What does this mean? What do we have to do to finally send the mail?
    Best regards,
    David

    this might help:
    http://help.sap.com/saphelp_nw70/helpdata/EN/8d/25f558454311d189430000e829fbbd/frameset.htm
    Or, go to your (or the person responsible in the Idoc processing) SAP inbox (SBWP transaction). Via the menu you can maintain a substitute (Menu->Settings->Workflow settings->Maintain Substitute.

  • Error when sending e-mails...

    Hello experts,
    We are currently testing our report that lets users create new customers and then send e-mails
    to specfified user's e-mail address located in a custom table. Now, we always get this error:
    Database error for <ADDR_PERS_COMP_COMM_GET> <0>
    We cannot pinpoint exactly whatcauses this error. Really need help on this guys and thank you very much.

    Hi Ong,
    I am using FM SO_NEW_DOCUMENT_API1. Here is my code:
    START-OF-SELECTION.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE it_zts0001
        FROM zts0001
        WHERE kunnr = p_kunnr.
      SELECT * FROM zshipto_email
      INTO TABLE it_zshipto_email.
    *if p_flag = 'A'.
      IF p_flag = 'A'.
        v_title = 'Add Information'.
        SORT it_zts0001 BY cdseq DESCENDING.
        READ TABLE it_zts0001 INDEX 1.
        IF sy-subrc EQ 0.
          v_seq = it_zts0001-cdseq + 1.
        ELSE.
          v_seq = 1.
        ENDIF.
        REFRESH it_zts0001.
        CLEAR it_zts0001.
        MOVE: p_kunnr  TO it_zts0001-kunnr,
              v_seq    TO it_zts0001-cdseq,
              p_addr   TO it_zts0001-zaddress,
              p_pers   TO it_zts0001-zcperson,
              p_numb   TO it_zts0001-zcnumber,
              sy-uname TO it_zts0001-zcreated_by,
              sy-datum TO it_zts0001-zchanged_date.
        MOVE-CORRESPONDING it_zts0001 TO it_zts_stpgeoloc.
        APPEND: it_zts0001, it_zts_stpgeoloc.
        CLEAR:  it_zts0001, it_zts_stpgeoloc.
        INSERT zts_stpgeoloc FROM TABLE it_zts_stpgeoloc.
        INSERT zts0001 FROM TABLE it_zts0001.
        IF sy-subrc EQ 0.
          maildata-obj_name = 'New Ship-To parties for processing'.
          maildata-obj_descr = 'New Ship-To parties for processing'.
          maildata-obj_langu = sy-langu.
    *code to send messages for e-mails found in table ZSHIPTO_EMAIL
    *message body is dependent on field ZEVENT
          LOOP AT it_zshipto_email.
          for controllers
            IF it_zshipto_email-zevent = 1.
              mailtxt-line = 'You have new Ship-To parties for processing.'.
              APPEND mailtxt.
              CLEAR mailtxt.
              CONCATENATE: 'Kindly activate the ship-to party in table'
                           'ZTS0001'
                           INTO v_contents
                           SEPARATED BY space.
              mailtxt-line = v_contents.
              APPEND mailtxt.
              CLEAR: mailtxt, v_contents.
              APPEND mailtxt.
            dealer code and name
              CONCATENATE: 'Dealer :' p_kunnr '-' p_name1
                           INTO v_contents
                           SEPARATED BY space.
              mailtxt-line = v_contents.
              APPEND mailtxt.
              CLEAR: mailtxt, v_contents.
            ship-to code
              CONCATENATE: 'Ship-To:' v_seq
                           INTO v_contents
                           SEPARATED BY space.
              mailtxt-line = v_contents.
              APPEND mailtxt.
              CLEAR: mailtxt, v_contents.
            address
              CONCATENATE: 'Address:' p_addr
                           INTO v_contents
                           SEPARATED BY space.
              mailtxt-line = v_contents.
              APPEND mailtxt.
              CLEAR: mailtxt, v_contents.
            contact person
              CONCATENATE: 'Contact person:' p_pers
                           INTO v_contents
                           SEPARATED BY space.
              mailtxt-line = v_contents.
              APPEND mailtxt.
              CLEAR: mailtxt, v_contents.
            contact number
              CONCATENATE: 'Contact number:' p_numb
                           INTO v_contents
                           SEPARATED BY space.
              mailtxt-line = v_contents.
              APPEND mailtxt.
              CLEAR: mailtxt, v_contents.
              APPEND mailtxt.
         for handling cost admins
            ELSE.
              mailtxt-line = 'You have new Ship-To parties for processing.'.
              APPEND mailtxt.
              CONCATENATE: 'Kindly assign the geographical location'
                           'in table ZTS_STPGEOLOC'
                           INTO v_contents
                           SEPARATED BY space.
              mailtxt-line = v_contents.
              APPEND mailtxt.
              CLEAR: mailtxt, v_contents.
              APPEND mailtxt.
            dealer code and name
              CONCATENATE: 'Dealer :' p_kunnr '-' p_name1
                           INTO v_contents
                           SEPARATED BY space.
              mailtxt-line = v_contents.
              APPEND mailtxt.
              CLEAR: mailtxt, v_contents.
            ship-to code
              CONCATENATE: 'Ship-To:' v_seq
                           INTO v_contents
                           SEPARATED BY space.
              mailtxt-line = v_contents.
              APPEND mailtxt.
              CLEAR: mailtxt, v_contents.
            address
              CONCATENATE: 'Address:' p_addr
                           INTO v_contents
                           SEPARATED BY space.
              mailtxt-line = v_contents.
              APPEND mailtxt.
              CLEAR: mailtxt, v_contents.
            contact person
              CONCATENATE: 'Contact person:' p_pers
                           INTO v_contents
                           SEPARATED BY space.
              mailtxt-line = v_contents.
              APPEND mailtxt.
              CLEAR: mailtxt, v_contents.
            contact number
              CONCATENATE: 'Contact number:' p_numb
                           INTO v_contents
                           SEPARATED BY space.
              mailtxt-line = v_contents.
              APPEND mailtxt.
              CLEAR: mailtxt, v_contents.
              APPEND mailtxt.
            ENDIF.
            mailrec-receiver = it_zshipto_email-zemail.
            TRANSLATE it_zshipto_email-zemail TO LOWER CASE.
            mailrec-rec_type  = 'U'.
            APPEND mailrec.
            CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
                 EXPORTING
                      document_data              = maildata
                      document_type              = 'RAW'
                      put_in_outbox              = 'X'
                      commit_work                = 'X'
                 TABLES
                      object_header              = mailtxt
                      object_content             = mailtxt
                      receivers                  = mailrec
                 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.
            CLEAR:    mailtxt,  mailrec.
            REFRESH:  mailtxt, mailrec.
          ENDLOOP.
          WRITE:/ 'Record Added' COLOR 1.
          SKIP 1.
          WRITE:/05 'Customer Number     :', p_kunnr,
                /05 'Code                :', v_seq,
                /05 'Address             :', p_addr,
                /05 'Contact Person      :', p_pers,
                /05 'Contact Number      :', p_numb.
        ENDIF.

  • E61i error when sending e-mail

    I am trying to send e-mail messages from my brand new E61i. I have verified the configuration is OK. The Internet connection works for all applications, including retrieving e-mails.
    When I try to send an e-mail, the phone connects to the remote SMTP server, which rejects the message. On the phone, I get a saying that the sending failed.
    The interesting part is actually on the SMTP server side: the log file shows that the recipient address has been replaced by the phone with the string "ReceiptAddress". Strangely, this is exactly matching the name of a string value in the
    SymbianOS library.
    Here is the relevant extract from the SMTP server log file (which I manage). The data has been anonymized, but I am willing to provide the original logs by private e-mail.
    Aug 31 08:20:52 myhost postfix/smtpd[26867]: 4281F9C014: reject: RCPT from ip-12-34-56-78.dyn.dsl.myisp.com[12.34.56.78]: 550 5.1.1 <ReceiptAddress>: Recipient address rejected: User unknown in local recipient table; from=<[email protected]> to=<ReceiptAddress> proto=ESMTP helo=<[192.168.0.101]>
    FWIW, the software version on my phone is 1.0633.22.05 from 15-02-07 RM-227
    Note to the support or development team: If I can help in any way to debug this problem, please let me know.
    If there is a fix, of course it is even better.

    I do agree, my E61i has the same trouble. I think we need a fix
    for this...
    and OTOH there is another big email problem: the classical
    header prefixes like Re:, Fwd: and so on are replaced following
    the phone language, so for Italian you get R: and I:, that are
    totally bogus and, I think, non-rfc compliant.
    I suppose that for German you'll get something like Aw: for replies
    This MUST be fixed, with the standard values!
    Bye

  • Error while sending the mail( Database error for ADDR_PERS_COMP_COMM_GE)

    Hello guys,
    I am facing the error    " Database error for <ADDR_PERS_COMP_COMM_GET> <0> " as a pop-up message.
    below is my program.
    types: BEGIN OF t_p0002,
            pernr type PERSNO,       "Personnel number
            nachn TYPE PAD_NACHN,    "Last Name
            VORNA TYPE PAD_VORNA,    "First Name
            gbdat TYPE gbdat,        "Date of Birth
          END OF t_p0002.
    *******************Data of an object which can be changed**************************************
    data   S_maildata type SODOCCHGI1.
    *******************Text field length 255: texts***********************************************
    data : IT_MAILTXT1 type table of SOLISTI1 ,  "Internal table will contain texts of mail header
           WA_MAILTXT1 TYPE SOLISTI1,
           IT_MAILTXT2 type table of SOLISTI1 ,  "Internal table will contain texts of contents in the mail
           WA_MAILTXT2 TYPE SOLISTI1.
    *******************Structure of the API Recipient List*****************************************
    data : IT_MAILREC type table of SOMLRECI1,
           WA_MAILREC TYPE SOMLRECI1.
    DATA : it_pa0002 TYPE TABLE OF t_p0002,
           wa_pa0002 type t_p0002.
    data  Header_text type c LENGTH 15.
    CONSTANTS  content_text type c LENGTH 35 VALUE 'Tomorrow is the birthday of'.
    *******************Event start of selection***************************************************
    start-of-selection.
      PERFORM get_birthdate.   " will give birthday details
      PERFORM document_details. " will give text and mail details
    *&      Form  get_birthdate
          text : subroutine to get employee birthdate details
    form get_birthdate.
      data : l_date like sy-datum.
      refresh it_pa0002.
      l_date = sy-datum + 1.
      SELECT pernr nachn vorna gbdat
        from pa0002
        INTO TABLE it_pa0002
        where gbdat = '19650302'.
    ENDFORM.                    "get_birthdate
    *&      Form  document_details
          text : subroutine to get texts and mail details.
    FORM document_details.
      CLEAR: Header_text,
              wa_MAILREC.
      REFRESH  IT_MAILREC.
      S_maildata-obj_name = 'Birthday Reminder'.
      s_maildata-obj_descr = 'Birthday Reminder'.
      s_maildata-obj_langu = sy-langu.
      READ TABLE IT_MAILTXT1 INTO WA_MAILTXT1
      WITH KEY WA_MAILTXT1-line .
      WA_MAILTXT1-line = 'Birthday Reminder'.
      append WA_MAILTXT1 TO IT_MAILTXT1.
      CLEAR WA_MAILTXT1.
      LOOP at it_pa0002 INTO wa_pa0002.
        READ TABLE IT_MAILTXT2 INTO WA_MAILTXT2
         WITH KEY WA_MAILTXT2-line .
        CONCATENATE content_text ' ( ' wa_pa0002-pernr ' ) ' wa_pa0002-nachn wa_pa0002-vorna
        INTO  WA_MAILTXT2 SEPARATED BY ' '.
        append WA_MAILTXT2 TO IT_MAILTXT2.
        CLEAR WA_MAILTXT2.
        CLEAR wa_pa0002.
      ENDLOOP.
       LOOP AT IT_MAILREC INTO WA_MAILREC.
      WA_MAILREC-RECEIVER = 'Any mail id'.
      WA_MAILREC-rec_type = 'U'.
      append WA_MAILREC TO IT_MAILREC.
       ENDLOOP.
    ********************Function Mofule:To Send new Document*****************************************
      CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
      EXPORTING
      document_data = S_maildata
      DOCUMENT_TYPE = 'RAW'
      PUT_IN_OUTBOX = ' '
      COMMIT_WORK = 'X'
    IMPORTING
    SENT_TO_ALL =
    NEW_OBJECT_ID =
      tables
      OBJECT_HEADER = IT_MAILTXT1
      OBJECT_CONTENT = IT_MAILTXT2
    CONTENTS_HEX =
    OBJECT_PARA =
    OBJECT_PARB =
      receivers = IT_MAILREC
       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.
    ENDFORM.                    "document_details
    After I pressed the exit button the program is getting terminated but still this mail is comming to sost transaction code.
    If I will comment the message code which is after sy-subrc the popup will not come and program will work without any interruption.
    Can anybody please solve this problem?

    Resolved

  • Error in sending ALV mail

    Hi,
    I am sending the ALV List through mail. But I am getting the error "MAXIMUM NUMBER OF INTERNAL SESSION REACHED".
    But without using the mail variant i am able to see the output. Mine mail functionality is not working

    Hi Can u send the code for that..
    I want to send a SAP mail to SAP Id with attachment as a Ouput of ALV_LIST_DISPLAY.
    please help..
    Thnks in Advance

  • Error when sending iCloud mail in Mavericks

    Trying to send an email in Mavericks Mail from iCloud account and got the following error: MCMailErrorDomain error 1032.
    Does this simply mean that iCloud had a hiccup (there was no outage reported at https://www.apple.com/support/systemstatus/), or is there something that I can do to prevent this from happening?

    What happens when you try to send the message via icloud.com? It should be in the Drafts folder.
    KOT

Maybe you are looking for

  • Possible to have two urxvt on the desktop in diff. spots?

    I'm trying to find a way to have two different urxvt's on my openbox desktop in different spots.  I want the same style on it but just in different spot.  Like one for irssi, one for music, etc.  I tried adding another applicaiton entry to rc.xml but

  • Why can't I open a pdf in Firefox? I can on this same computer through Safari.

    What do I need to do to use Firefox and open up these files?

  • Method 'getAttributeInternal' deprecated

    I'm creating a new page using Jdev 10.1.3 and getting warnings as Method 'getAttributeInternal' deprecated How to fix this? Thanks!

  • View Criteria

    Hi, I am new to adf exploring by doing one POC ,my requirement is, i need to call the application module impl through backing bean to search based on 2 inputs form DB table and the result set i need to store into session. for this i wrote view criter

  • Jdeveloper + UDDI

    Hello everyone, Can anyone help me to provide the links where I can find the tutorials about using Jdeveloper with UDDI? My object is to create a business process, then I will deploy the services in repository, UDDI. Then, I will create an other busi