While sending mail through applet

Hi All,
I have a problem while using the following code in my applet
Here is the code i got the exception.
public void postMail( String smtpHost, String recipients[], String subject,
String message , String file, String from) throws MessagingException
boolean debug = false;
//Set the host smtp address
Properties props = new Properties();
props.put("mail.smtp.host", smtpHost);
props.put("mail.smtp.auth", "true");
Authenticator auth = new SMTPAuthenticator();
Session session = Session.getDefaultInstance(props, auth);
session.setDebug(debug);
// create a message
Message msg = new MimeMessage(session);
// set the from and to address
InternetAddress addressFrom = new InternetAddress(from);
msg.setFrom(addressFrom);
InternetAddress[] addressTo = new InternetAddress[recipients.length];
for (int i = 0; i < recipients.length; i++)
addressTo[i] = new InternetAddress(recipients);
msg.setRecipients(Message.RecipientType.TO, addressTo);
// Setting the Subject and Content Type
msg.setSubject(subject);
msg.setSentDate(new Date());
if(!file.equals(""))
BodyPart messageBodyPart = new MimeBodyPart();
// Fill the message
messageBodyPart.setText(message);
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);
// Part two is attachment
messageBodyPart = new MimeBodyPart();
DataSource source = new FileDataSource(file);
messageBodyPart.setDataHandler(new DataHandler(source));
messageBodyPart.setFileName((new File(file)).getName());
multipart.addBodyPart(messageBodyPart);
msg.setContent(multipart);
else msg.setContent(message, "text/plain");
Transport.send(msg);
---->exception
Exception in thread "AWT-EventQueue-2" java.lang.NoClassDefFoundError: javax/mail/MessagingException
And -->
Exception in thread "AWT-EventQueue-2" java.lang.NoClassDefFoundError: javax/mail/Authenticator
i set the jar file mail.jar and activation.jar file in tomcat webserver
webapp/ myproj/lib
Can any one please help me???
Thanks,
Kiran

The JVM can't find JavaMail or the JavaBeans Activation Framework (JAF) on the classpath.
Assuming your applet is packaged in a JAR file, you'll need the "archive" attribute to specify not just your applet's JAR file but also the JavaMail and JAF JARs too, so all 3 get downloaded to the browser.
<applet archive="your.jar,mail.jar,activation.jar" ... />
Alternatively you can permanently install JavaMail and JAF on the client machine (PATH_TO_JRE/lib/ext folder).
However, the default applet security policy won't allow connections to machines other than the one from which the applet was downloaded. You will have to change the policy on the client to allow SMTP connections. (To put it another way, if you do get the JavaMail/JAF classes sent to the browser, you'll get SecurityExceptions.)
A better (?) way of doing this would be to have a servlet that the applet can make requests to, and have the server send the mail.

Similar Messages

  • Uncaught Exception occured while sending mail through abap code.

    Hi,
    Uncaught Exception occured while sending mail through abap code.Run time Errors "UNCAUGHT_EXCEPTION" occured after excuting the call method  CALL METHOD SEND_REQUEST->SEND( ).kindly help in resolving the issue.

    HI,
    Runtime Error:  UNCAUGHT_EXCEPTION details.
    Runtime Errors         UNCAUGHT_EXCEPTION
    Exception              CX_ADDRESS_BCS
    Short text
         An exception occurred that was not caught.
    What happened?
         The exception 'CX_ADDRESS_BCS' was raised, but it was not caught anywhere along
         the call hierarchy.
         Since exceptions represent error situations and this error was not
         adequately responded to, the running ABAP program 'SAPLZSEND_MAIL' has to be
         terminated.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_ADDRESS_BCS', was not caught in
        procedure "SEND_MAIL" "(FORM)", nor was it propagated by a RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        An exception occurred
    How to correct the error
        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:
        "UNCAUGHT_EXCEPTION" "CX_ADDRESS_BCS"
        "SAPLZSEND_MAIL" or "LZSEND_MAILU01"
        "ZSEND_EMAIL"
        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
        Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    The exception must either be prevented, caught within proedure
    "SEND_MAIL" "(FORM)", or its possible occurrence must be declared in the
    RAISING clause of the procedure.
    Please help me to resolve this issue.

  • Error while sending mail through SMTP

    Hi,
      We are getting the following error while trying to send mail through SMTP.
    '554 ERROR_MESSAGE_STATE: SMTP_NO_HANDLER( host:1-,subrc:0001)'
    Please advice,
    Regards,
    Sam

    Hi All,
      Configured SMTP as per the note 455140,i can able to send mails from SAP to the out side world,
    mails in SAP.When i tried the test to check whether the SAP system is correctly set up to receive e-mails as per the note 607108, iam getting a connection closed message as below.                                                                           
    afgdev:pgdadm> telnet afgdev 2500                                          
    Trying...                                                                  
    Connected to afgdev.                                                       
    Escape character is '^]'.                                                  
    220 afgdev.abc.ae SAP 6.40(52) ESMTP service ready                   
    helo afgdev                                                                
    250 afgdev.abc.ae                                                    
    mail from:<[email protected]>                                      
    250 Ok                                                                     
    rcpt to:<[email protected]>                                 
    250 Ok                                                                     
    data                                                                       
    354 Enter mail, end with "."                                               
    Hello,This is a test.                                                      
    Connection closed.                                                         
    afgdev:pgdadm> 
    rgds
    Sam

  • Problem while sending mail through posprocess event hadler  inOIM 11g r2

    Hi,
    i am sending mail through posprocess event hadler inOIM 11g r2 when user is created.But i am getting following error in resolver class.
    java.lang.NullPointerException
    at oracle.iam.identity.usermgmt.impl.UserDetailsProviderImpl.getUserDetails(UserDetailsProviderImpl.java:102)
    at oracle.iam.notification.impl.util.NotificationUtil.getUserPreferences(NotificationUtil.java:83)
    at oracle.iam.notification.impl.NotificationServiceImpl.notify(NotificationServiceImpl.java:523)
    at oracle.iam.notification.impl.NotificationServiceImpl.notify(NotificationServiceImpl.java:271)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at oracle.iam.notification.impl.util.NotificationUtil.getUserPreferences(NotificationUtil.java:83)
    at oracle.iam.notification.impl.NotificationServiceImpl.notify(NotificationServiceImpl.java:523)
    at oracle.iam.notification.impl.NotificationServiceImpl.notify(NotificationServiceImpl.java:271)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    Edited by: 853559 on Sep 25, 2012 6:27 AM

    If you are using Custom Notification XML, make sure to have StaticData element in it. StaticData defines the entitites that can be used in the notification template, and these entities attributes are used to define substitution tokens in the template.

  • How to use variables in the mail text while sending mails through workflows

    Dear All,
                   I had prepared a workflow in which i am sending mail to a administrator if personnel data of any employee is changed.But i want to send the personnel no of employee whose data have been changed.How can i send this personnel no in the mail.
                  Points will be rewarded for useful answer.

    Hi Anand,
    You have the "EmployeeNumber" field in the event container. Pass this into the workflow container by defining a Workflow Container element and subsequently use this container as a variable in your email using insert fields option and you will have the PersonNumber visible in your mail sent to the administrator.
    Regards,
    Karthik

  • Getting error while sending mail through javamail api

    I can able to compile the following code successfully but while executing it showing the error
    C:\Program Files\Java\javamail-1.4\demo>java msgsend -o [email protected] -M 203.112.158.188 [email protected]
    Exception in thread "main" java.lang.NoClassDefFoundError: msgsend
    import java.io.*;
    import java.net.InetAddress;
    import java.util.Properties;
    import java.util.Date;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class msgsend {
    public static void main(String[] argv) {
         String to, subject = null, from = null,
              cc = null, bcc = null, url = null;
         String mailhost = "null";
         String mailer = "msgsend";
         String file = null;
         String protocol = null, host = null, user = null, password = null;
         String record = null;     // name of folder in which to record mail
         boolean debug = false;
         BufferedReader in =
                   new BufferedReader(new InputStreamReader(System.in));
         int optind;
         for (optind = 0; optind < argv.length; optind++) {
         if (argv[optind].equals("-T")) {
              protocol = argv[++optind];
         } else if (argv[optind].equals("-H")) {
              host = argv[++optind];
         } else if (argv[optind].equals("-U")) {
              user = argv[++optind];
         } else if (argv[optind].equals("-P")) {
              password = argv[++optind];
         } else if (argv[optind].equals("-M")) {
              mailhost = argv[++optind];
         } else if (argv[optind].equals("-f")) {
              record = argv[++optind];
         } else if (argv[optind].equals("-a")) {
              file = argv[++optind];
         } else if (argv[optind].equals("-s")) {
              subject = argv[++optind];
         } else if (argv[optind].equals("-o")) { // originator
              from = argv[++optind];
         } else if (argv[optind].equals("-c")) {
              cc = argv[++optind];
         } else if (argv[optind].equals("-b")) {
              bcc = argv[++optind];
         } else if (argv[optind].equals("-L")) {
              url = argv[++optind];
         } else if (argv[optind].equals("-d")) {
              debug = true;
         } else if (argv[optind].equals("--")) {
              optind++;
              break;
         } else if (argv[optind].startsWith("-")) {
              System.out.println(
    "Usage: msgsend [[-L store-url] | [-T prot] [-H host] [-U user] [-P passwd]]");
              System.out.println(
    "\t[-s subject] [-o from-address] [-c cc-addresses] [-b bcc-addresses]");
              System.out.println(
    "\t[-f record-mailbox] [-M transport-host] [-a attach-file] [-d] [address]");
              System.exit(1);
         } else {
              break;
         try {
         if (optind < argv.length) {
              // XXX - concatenate all remaining arguments
              to = argv[optind];
              System.out.println("To: " + to);
         } else {
              System.out.print("To: ");
              System.out.flush();
              to = in.readLine();
         if (subject == null) {
              System.out.print("Subject: ");
              System.out.flush();
              subject = in.readLine();
         } else {
              System.out.println("Subject: " + subject);
         Properties props = System.getProperties();
         // XXX - could use Session.getTransport() and Transport.connect()
         // XXX - assume we're using SMTP
         if (mailhost != null)
              props.put("mail.smtp.host", mailhost);
         // Get a Session object
         Session session = Session.getInstance(props, null);
         if (debug)
              session.setDebug(true);
         // construct the message
         Message msg = new MimeMessage(session);
         if (from != null)
              msg.setFrom(new InternetAddress(from));
         else
              msg.setFrom();
         msg.setRecipients(Message.RecipientType.TO,
                             InternetAddress.parse(to, false));
         if (cc != null)
              msg.setRecipients(Message.RecipientType.CC,
                             InternetAddress.parse(cc, false));
         if (bcc != null)
              msg.setRecipients(Message.RecipientType.BCC,
                             InternetAddress.parse(bcc, false));
         msg.setSubject(subject);
         String text = collect(in);
         if (file != null) {
              // Attach the specified file.
              // We need a multipart message to hold the attachment.
              MimeBodyPart mbp1 = new MimeBodyPart();
              mbp1.setText(text);
              MimeBodyPart mbp2 = new MimeBodyPart();
              mbp2.attachFile(file);
              MimeMultipart mp = new MimeMultipart();
              mp.addBodyPart(mbp1);
              mp.addBodyPart(mbp2);
              msg.setContent(mp);
         } else {
              // If the desired charset is known, you can use
              // setText(text, charset)
              msg.setText(text);
         msg.setHeader("X-Mailer", mailer);
         msg.setSentDate(new Date());
         // send the thing off
         Transport.send(msg);
         System.out.println("\nMail was sent successfully.");
         // Keep a copy, if requested.
         if (record != null) {
              // Get a Store object
              Store store = null;
              if (url != null) {
              URLName urln = new URLName(url);
              store = session.getStore(urln);
              store.connect();
              } else {
              if (protocol != null)          
                   store = session.getStore(protocol);
              else
                   store = session.getStore();
              // Connect
              if (host != null || user != null || password != null)
                   store.connect(host, user, password);
              else
                   store.connect();
              // Get record Folder. Create if it does not exist.
              Folder folder = store.getFolder(record);
              if (folder == null) {
              System.err.println("Can't get record folder.");
              System.exit(1);
              if (!folder.exists())
              folder.create(Folder.HOLDS_MESSAGES);
              Message[] msgs = new Message[1];
              msgs[0] = msg;
              folder.appendMessages(msgs);
              System.out.println("Mail was recorded successfully.");
         } catch (Exception e) {
         e.printStackTrace();
    public static String collect(BufferedReader in) throws IOException {
         String line;
         StringBuffer sb = new StringBuffer();
         while ((line = in.readLine()) != null) {
         sb.append(line);
         sb.append("\n");
         return sb.toString();
    So please help me to resolve that error.

    The directory that contains msgsend.class (usually the current directory)
    is not in your CLASSPATH setting. Be sure that "." is included as one of the
    entries in CLASSPATH.

  • How to put mail ids in CC and BCC while sending mail through ABAP?

    Hi all,
    i have created a report which sends the output of the  report to external mail ids. I want to put some email ids in CC or BCC.
    Please do guide me so that i can proceed with the development.
    Thanks and Regards,
    Syed

    just go through below code and
    *& Report  Z_TTTT
    REPORT  Z_TTTT1.
    *TABLE DECLARATIONS
    TABLES: SOLI.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT_B1 NO INTERVALS.
    SELECTION-SCREEN BEGIN  OF LINE .
    PARAMETERS: SAPID RADIOBUTTON GROUP ADDR.
    SELECTION-SCREEN COMMENT 5(20) T_SAPID.
    PARAMETERS: EMAIL_ID RADIOBUTTON GROUP ADDR.
    SELECTION-SCREEN COMMENT 30(20) T_EMAIL.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT_B2 NO INTERVALS.
    SELECTION-SCREEN BEGIN  OF LINE .
    SELECTION-SCREEN COMMENT 5(20) TXT_ID.
    SELECT-OPTIONS: ID FOR SOLI-LINE NO INTERVALS.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN  OF LINE .
    SELECTION-SCREEN COMMENT 5(20) TXT_CC.
    SELECT-OPTIONS: CC FOR SOLI-LINE NO INTERVALS.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN  OF LINE .
    SELECTION-SCREEN COMMENT 5(20) TXT_BCC.
    SELECT-OPTIONS: BCC FOR SOLI-LINE NO INTERVALS.
    SELECTION-SCREEN END OF LINE.
    *SELECTION-SCREEN BEGIN  OF LINE .
    *SELECTION-SCREEN COMMENT 5(20) TXT_SEND.
    *PARAMETERS: SENDER LIKE SOUD-USRNAM.
    *SELECTION-SCREEN END OF LINE.
    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_B5.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: P_ATTACH AS CHECKBOX USER-COMMAND RAD1.
    SELECTION-SCREEN COMMENT 5(20) T_ATTACH.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(20) T_FLNAME.
    PARAMETERS: P_FLNAME  TYPE RLGRAP-FILENAME MODIF ID M1 .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B5.
    *Data Declarations
    DATA: MAIL_CONTENT LIKE SOLI OCCURS 0 WITH HEADER LINE,
          SUBJECT_LINE LIKE SOOD1-OBJDES.
    DATA : SENDER TYPE SY-UNAME.
    DATA : IT_REC type SOLI OCCURS 0 WITH HEADER LINE.
    *INITIALIZATION Block
    INITIALIZATION.
      TEXT_B1 = 'Output Specification'.
      T_SAPID = 'SAP User ID'.
      T_EMAIL = 'Email ID'.
      TXT_ID =  'Receipient Id'.
      TXT_CC =  'CC'.
      TXT_BCC = 'BCC'.
      TEXT_B2 = 'Receipient'.
      TEXT_B5 = 'Attachment'.
      T_ATTACH = 'Attachment'.
      T_FLNAME = 'File name'.
    *  TXT_SEND = 'Sender Name'.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF P_ATTACH <> 'X'.
          IF SCREEN-GROUP1 = 'M1'.
            SCREEN-INPUT = 0. " Disable for input.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
      ENDLOOP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FLNAME.
      PERFORM GET_FILENAME.
    *start of selection Block
    START-OF-SELECTION.
    *  LOOP AT TEXT1.
    *    MOVE TEXT1-LOW TO MAIL_CONTENT-LINE.
    *    APPEND MAIL_CONTENT.
    *  ENDLOOP.
    ****  Mail Body
      MOVE 'Hi' TO MAIL_CONTENT-LINE.
      APPEND MAIL_CONTENT.
      MOVE 'This is Test mail' TO MAIL_CONTENT-LINE.
      APPEND MAIL_CONTENT.
      MOVE 'Thanxs' TO MAIL_CONTENT-LINE.
      APPEND MAIL_CONTENT.
    ****  Mail Heading
      MOVE 'Test Mail' TO SUBJECT_LINE.
      PERFORM SEND_EMAIL  TABLES MAIL_CONTENT USING SUBJECT_LINE.
    *& Form SEND_EMAIL
    FORM SEND_EMAIL TABLES OBJCONT STRUCTURE MAIL_CONTENT
                    USING TITLE LIKE SOOD-OBJDES.
      DATA: RECEIVERS TYPE  SOOS1 OCCURS 0 WITH HEADER LINE,
            TSOOD1 TYPE SOOD1,
            PACKING_LIST TYPE SOXPL OCCURS 0 WITH HEADER LINE,
            OBJCONT1 type SOLI 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,  " rajan
      'Rajan' 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 = 'PDF'.
        APPEND PACKING_LIST.
        CLEAR PACKING_LIST.
    *    APPEND LINES OF OBJCONT TO OBJCONT1.
    *    REFRESH OBJCONT.
        DATA : FLNAME TYPE  STRING.
        FLNAME = P_FLNAME.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            FILENAME                      = FLNAME
       FILETYPE                      = 'BIN'
    *   HAS_FIELD_SEPARATOR           = ' '
    *   HEADER_LENGTH                 = 0
    *   READ_BY_LINE                  = 'X'
    *   DAT_MODE                      = ' '
    *   CODEPAGE                      = ' '
    *   IGNORE_CERR                   = ABAP_TRUE
    *   REPLACEMENT                   = '#'
    *   CHECK_BOM                     = ' '
    *   VIRUS_SCAN_PROFILE            =
    *   NO_AUTH_CHECK                 = ' '
    * IMPORTING
    *   FILELENGTH                    =
    *   HEADER                        =
          TABLES
            DATA_TAB                      = IT_REC
    * EXCEPTIONS
    *   FILE_OPEN_ERROR               = 1
    *   FILE_READ_ERROR               = 2
    *   NO_BATCH                      = 3
    *   GUI_REFUSE_FILETRANSFER       = 4
    *   INVALID_TYPE                  = 5
    *   NO_AUTHORITY                  = 6
    *   UNKNOWN_ERROR                 = 7
    *   BAD_DATA_FORMAT               = 8
    *   HEADER_NOT_ALLOWED            = 9
    *   SEPARATOR_NOT_ALLOWED         = 10
    *   HEADER_TOO_LONG               = 11
    *   UNKNOWN_DP_ERROR              = 12
    *   ACCESS_DENIED                 = 13
    *   DP_OUT_OF_MEMORY              = 14
    *   DISK_FULL                     = 15
    *   DP_TIMEOUT                    = 16
    *   OTHERS                        = 17
        IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    APPEND LINES OF IT_REC TO OBJCONT1.
    *    APPEND  P_FLNAME TO OBJCONT1.
      ENDIF.
      CALL FUNCTION 'SO_OBJECT_SEND'
        EXPORTING
          SENDER                     = 'AAB_ABAP5'
          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.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE .
        MESSAGE 'sent successfully' TYPE 'I'.
      ENDIF.
    *  CALL FUNCTION 'GUI_DOWNLOAD'
    *  EXPORTING
    **  BIN_FILESIZE = GV_BIN_FILESIZE
    *  FILENAME =  'C:\Documents and Settings\Administrator\Desktop\file'"W_FULL_PATH
    *  FILETYPE = 'BIN'
    ** APPEND = ' '
    ** WRITE_FIELD_SEPARATOR = ' '
    ** HEADER = '00'
    ** TRUNC_TRAILING_BLANKS = ' '
    ** WRITE_LF = 'X'
    ** COL_SELECT = ' '
    ** COL_SELECT_MASK = ' '
    ** DAT_MODE = ' '
    ** CONFIRM_OVERWRITE = ' '
    ** NO_AUTH_CHECK = ' '
    ** CODEPAGE = ' '
    ** IGNORE_CERR = ABAP_TRUE
    ** REPLACEMENT = '#'
    ** WRITE_BOM = ' '
    ** TRUNC_TRAILING_BLANKS_EOL = 'X'
    ** WK1_N_FORMAT = ' '
    ** WK1_N_SIZE = ' '
    ** WK1_T_FORMAT = ' '
    ** WK1_T_SIZE = ' '
    ** IMPORTING
    ** FILELENGTH =
    *  TABLES
    *  DATA_TAB = IT_REC
    ** FIELDNAMES =
    ** EXCEPTIONS
    ** FILE_WRITE_ERROR = 1
    ** NO_BATCH = 2
    ** GUI_REFUSE_FILETRANSFER = 3
    ** INVALID_TYPE = 4
    ** NO_AUTHORITY = 5
    ** UNKNOWN_ERROR = 6
    ** HEADER_NOT_ALLOWED = 7
    ** SEPARATOR_NOT_ALLOWED = 8
    ** FILESIZE_NOT_ALLOWED = 9
    ** HEADER_TOO_LONG = 10
    ** DP_ERROR_CREATE = 11
    ** DP_ERROR_SEND = 12
    ** DP_ERROR_WRITE = 13
    ** UNKNOWN_DP_ERROR = 14
    ** ACCESS_DENIED = 15
    ** DP_OUT_OF_MEMORY = 16
    ** DISK_FULL = 17
    ** DP_TIMEOUT = 18
    ** FILE_NOT_FOUND = 19
    ** DATAPROVIDER_EXCEPTION = 20
    ** CONTROL_FLUSH_ERROR = 21
    ** OTHERS = 22
    *  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. " SEND_EMAIL
    *&      Form  GET_FILENAME
    FORM GET_FILENAME .
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          FILE_NAME = P_FLNAME.
    ENDFORM.                    " GET_FILENAME

  • Error Occurred while sending mail through gmail account

    Hello,
    I am writing 1 demo appln which will send a mail from my gmail account. It will show error like "javax.mail.MessagingException: 530 5.5.1 Authentication Required f77sm3109311pyh"
    Here is Code : -
    package demo;
    import java.util.Properties;
    import javax.mail.Address;
    import javax.mail.Authenticator;
    import javax.mail.Message;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    public class Demo {
         * @param args
         public static void main(String[] args) {
              try
              Properties properties=System.getProperties();
              properties.put("mail.smtp.host","smtp.gmail.com");
              properties.put("mail.smtp.auth","true");
              properties.put("mail.from","[email protected]");
              properties.put("mail.smtp.port","465");
              properties.put("mail.smtp.starttls.enable","true");          
              properties.put("mail.smtp.socketFactory.port", "465");
              properties.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
              properties.put("mail.smtp.socketFactory.fallback", "false");
              Authenticator auth = new PopupAuthenticator();
              Session session = Session.getDefaultInstance(properties,auth);                    
              session.setDebug(true);     
    //          Define message
              MimeMessage message = new MimeMessage(session);
              message.addRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
              message.setSubject("Hello JavaMail");
              message.setText("Welcome to JavaMail");          
              message.saveChanges();
              Address address[] = message.getAllRecipients();
              Address a1 = address[0];
              System.out.println("Recipient : "+a1.toString());          
              Transport.send(message, message.getAllRecipients());
              catch(Exception e){e.printStackTrace();}
    and code for PopupAuthenticator :-
    package demo;
    import javax.mail.Authenticator;
    import javax.mail.PasswordAuthentication;
    import javax.swing.*;
    import java.util.StringTokenizer;
    public class PopupAuthenticator extends Authenticator
         public PopupAuthenticator()
              System.out.println("In Auth");
    public PasswordAuthentication getPasswordAuthentication()
    String username, password;
    String result = JOptionPane.showInputDialog("Enter 'username,password'");
    StringTokenizer st = new StringTokenizer(result, ",");
    username = st.nextToken();
    password = st.nextToken();
    return new PasswordAuthentication(username, password);
    But when i run this code i never get popup window asking for username/password and it throws follwing exception
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
         javax.mail.MessagingException: 530 5.5.1 Authentication Required f77sm3109311pyh
         at javax.mail.Transport.send0(Transport.java:204)
         at javax.mail.Transport.send(Transport.java:88)
         at demo.Demo.main(Demo.java:66)
    may i know wats wrong wid my code? I am confussed about when getPasswordAuthentication () method will call?
    please reply me at [email protected]
    thnx in advance ..
    -Sushrut

    Hi bshannon ,
    Thnx ..
    I have removed the popup code from my PopUpAuthanticer.java file
    But i got similar error ....
    Here is Debug message : -
    In Auth
    Recipient : [email protected]
    DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
    DEBUG: SMTPTransport trying to connect to host "smtp.gmail.com", port 465
    DEBUG SMTP RCVD: 220 mx.google.com ESMTP y78sm4251719pyg
    DEBUG SMTP SENT: helo sushrutr
    DEBUG SMTP RCVD: 250 mx.google.com at your service
    DEBUG: SMTPTransport connected to host "smtp.gmail.com", port: 465
    DEBUG SMTP SENT: mail from: <[email protected]>
    DEBUG SMTP RCVD: 530 5.5.1 Authentication Required y78sm4251719pyg
    DEBUG SMTP SENT: quit
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
         javax.mail.MessagingException: 530 5.5.1 Authentication Required y78sm4251719pyg
         at javax.mail.Transport.send0(Transport.java:204)
         at javax.mail.Transport.send(Transport.java:88)
         at demo.Demo.main(Demo.java:53)
    can u please tell me when getPasswordAuthentication() will call ? and who is going to call this ...
    Thnx in advance ...

  • I have suddenly got the following message An (SMTP) error occurred while sending mail. The server responded: Requested action aborted: This mail account has se

    Having been on Thunderbird for some years I have suddenly got the following message when trying to send mail.
    An (SMTP) error occurred while sending mail. The server responded: Requested action aborted: This mail account has sent too many messages in a short amount of time. Please try later..
    I have checked the SMTP server settings in tools, account settings and they are as they have always been. Is there something I have missed?

    Sending through web mail is totally irrelevant to using an SMTP server. The message even says it is from the server. Why do you think this is a Thunderbird problem.
    The provider has put in place measures to keep people from spamming other email recipients using thier SMTP server. You have seen the result of those measures.

  • Problem while sending mail inOIM 11g r2 after usercreation

    Hi,
    By default OIM sends mail to user mail id when the user created. i have tested this scenario using test mail server, it is working fine . when i am trying this scenario using exchange mail server, it is throwing errors. for Exchange just i have changed IT resource parameters.
    Authentication      true
    Server Name      ip address of the Exchange server
    User Login      [email protected]
    User Password *************
    is there anything missing. for SMTP server is ums nedded ?.
    <Oct 1, 2012 7:07:51 AM EDT> <Error> <oracle.iam.notification.impl> <BEA-000000> <Provider UMSEmailServiceProvider has encountered exception : javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: Connection refused>
    <Oct 1, 2012 7:07:51 AM EDT> <Error> <oracle.iam.notification.impl> <BEA-000000> <Sending notification with Provider UMSEmailServiceProvider has encountered exception : Error occured while Sending Notification through Provider UMSEmailServiceProvider : javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: Connection refused>
    <Oct 1, 2012 7:07:51 AM EDT> <Error> <oracle.iam.notification.impl> <BEA-000000> <Sending notification with Provider UMSEmailServiceProvider detailed exception : javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: Connection refused>
    <Oct 1, 2012 7:07:52 AM EDT> <Error> <oracle.iam.notification.provider> <BEA-000000> <300>
    <Oct 1, 2012 7:07:52 AM EDT> <Error> <oracle.iam.notification.impl> <BEA-000000> <Provider SOAEmailServiceProvider has encountered exception : java.lang.IllegalArgumentException: 300>
    <Oct 1, 2012 7:07:52 AM EDT> <Error> <oracle.iam.notification.impl> <BEA-000000> <Sending notification with Provider SOAEmailServiceProvider has encountered exception : Error occured while Sending Notification through Provider SOAEmailServiceProvider : java.lang.IllegalArgumentException: 300>
    <Oct 1, 2012 7:07:52 AM EDT> <Error> <oracle.iam.notification.impl> <BEA-000000> <Sending notification with Provider SOAEmailServiceProvider detailed exception : java.lang.IllegalArgumentException: 300>
    <Oct 1, 2012 7:07:52 AM EDT> <Error> <oracle.iam.notification.impl> <BEA-000000> <Provider EmailServiceProvider has encountered exception : null>
    Thanks,

    Given below steps in oracle doc for UMS configuration. you can try the same
    Configuring UMS Provider for Sending Notifications (Optional)
    To configure Unified Messaging Service (UMS) provider for sending notifications:
    Edit the oim-config.xml file by using MBeans. To do so:
    Log in to Oracle Enterprise Manager.
    Navigate to Identity and Access, oim.
    Right-click oim(11.1.1.x.x), and select System MBean Browser.
    In the System MBean Browser, navigate to Application Defined MBeans, oracle.iam, Server: oim_server1, Application:oim, XMLConfig, Config, XMLConfig.NotificationConfig, EmailProvider.
    Click the EmailProvider attribute, and replace the value oracle.iam.notification.provider.EmailServiceProvider with oracle.iam.notification.provider.UMSEmailServiceProvider.
    Click Apply.
    Configure the Email Provider Instance - UMS IT resource with the UMS Web service details. To do so:
    Login to Oracle Identity Manager Administrative and User Console, and navigate to Advanced Administration.
    Click the Configuration tab, click Resource Management, and then click Manage IT Resource.
    Click Search. The list of IT resources is displayed.
    For the Email Provider Instance - UMS IT resource, click the Edit icon. The Edit IT Resource Details and Parameters page is displayed.
    Specify values in the following fields:
    Web service URL: The URL of the UMS web service to be invoked. For example, http://<SOA_host>:<SOA_Port>/ucs/messaging/webservice.
    Policies: The OWSM policy attached to the given web service. Leave this field as blank.
    Username: The username provided in the security header. If no policy is attached, then leave this field as blank.
    Password: The password provided in the security header. If no policy is attached, then leave this field as blank.
    Click Apply, and then close the popup window.
    Configure UMS Server for using a mail server other than the local LINUX mail server, which is picked by default. For example, to setup the mail server to use stbeehive email server:
    Stop the Linux Local sendmail email server running on the host, if this is a LINUX host, by running the following command:
    /usr/local/redhat/packages/aime/ias/run_as_root "/sbin/service sendmail stop"
    Configure Mail Server information in UMS Email Driver. To do so:
    i. Login to Oracle Enterprise Manager.
    ii. Expand User Messaging Service, and select usermessagingdriver-email (soa_server1).
    iii. From the Driver-Specific Configuration list, select Email Driver Properties.
    iv. Configure the following mandatory fields:
    OutgoingMailServer: The name of the SMTP server, for example, mailserver.mycompany.com.
    OutgoingMailServerPort: The port number of the SMTP server, for example, 465.
    OutgoingMailServerSecurity: The security setting used by the SMTP server. Possible values can be None, TLS, or SSL.
    OutgoingUsername: Any valid username similar to your mail client configuration, such as in the [email protected].
    OutgoingPassword: The password used for SMTP authentication. This consists of the following fields:
    Type of Password: Select Indirect Password, Create New User.
    Indirect Username/Key: Enter a unique string, for example, OIMEmailConfig. This masks the password and does not expose it in clear text in the configuration file.
    Password: Enter a valid password for this account.
    v. Click Apply.
    Right-click usermessagingdriver-email (soa_server1), and select Control, Shutdown.
    Allow at least 2 minutes to pass, after which you can restart the email driver. To so so, right-click usermessagingdriver-email (soa_server1), and select Control, Restart.

  • Problem while sending mail inOIM 11g r2

    HI,
    i am getting following error while sending mail in OIM 11G r2
    <Jun 13, 2012 12:53:25 AM PDT> <Warning> <oracle.adfinternal.view.faces.renderkit.rich.SelectItemUtils> <ADF_FACES-30118> <No help provider found for helpTopicId=create_user.>
    java.net.MalformedURLException: For input string: "SOA_PORT"
    at java.net.URL.<init>(URL.java:601)
    at java.net.URL.<init>(URL.java:464)
    at java.net.URL.<init>(URL.java:413)
    at java.net.URI.toURL(URI.java:1081)
    at oracle.j2ee.ws.common.transport.HttpTransport.transmit(HttpTransport.java:61)
    at oracle.j2ee.ws.common.async.MessageSender.call(MessageSender.java:64)
    at oracle.j2ee.ws.common.async.Transmitter.transmitSync(Transmitter.java:134)
    at oracle.j2ee.ws.common.async.Transmitter.transmit(Transmitter.java:90)
    at oracle.j2ee.ws.common.async.RequestorImpl.transmit(RequestorImpl.java:273)
    at oracle.j2ee.ws.common.async.RequestorImpl.invoke(RequestorImpl.java:94)
    at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:811)
    at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:235)
    at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:106)
    at oracle.j2ee.ws.client.jaxws.WsClientProxyInvocationHandler.invoke(WsClientProxyInvocationHandler.java:254)
    at $Proxy422.send(Unknown Source)
    But it is known issue in OIM 11gr2 .
    solution is The cause of this error is malformed URL. To resolve the issue, provide the correct values for SOA_PORT and SOA_HOST in Enterprise Manager (EM).
    BUT i didn't find the SOA_PORT,SOA_HOST in EM console.
    Thanks,
    Edited by: 853559 on Sep 20, 2012 3:09 AM

    . Follow the steps mentioned below to configure the workflow notification properties:
    •     Login to EM console as weblogic user.
    •     Expand SOA.
    •     Right click on <soa-infra> ANY ONE WILL BE REFLECTED. Select SOA Administration --> Workflow notification properties
    •     Select "Email" from “Notification Mode” list
    •     Provide notification service field values as:
    o     Email : From Address * : [email protected]
    o     Email : Actionable Address : [email protected]
    o     Email : Reply To Address: [email protected]
    •     Click Apply
    •     Click "Go to the Messaging Driver page" link
    •     Select configure driver: Provide Driver-Specific Configuration as:
    o     MailAccessProtocol : IMAP
    o     ReceiveFolder : INBOX
    o     OutgoingMailServer : smtp.sample.com
    o     OutgoingMailServerPort : 25
    o     OutgoingDefaultFromAddress : [email protected]
    •     Click Apply
    If you are sending mail through xelsysadm account then change the value of “Email” field of that account .
    Also configure Email Server ITResource .
    Edited by: IAM_TECH on Sep 20, 2012 3:48 PM

  • Getting java.lang.SecurityException while sending mail

    While i trying to send mail through web browser i am getting following error.But by calling same function in main method of my Mailer.java class its successful. Will anybody suggest me what am i miss .I m using Tomcat & i already put activation.jar and mail.jar in classpath.
    "java.lang.SecurityException: class "javax.mail.Address";'s signer information does not match signer information of other classes in the same package"
    Regards
    Riaz
    Edited by: Riaz_Ansari on May 2, 2008 12:44 AM

    You've probably got more than one version of the javax.mail.* classes in your CLASSPATH.
    Look for multiple copies of mail.jar, or perhaps a j2ee.jar or javaee.jar that duplicates those
    classes.

  • Urgent:-REP-50152: Error while sending mail

    hi
    i am using reports10g. i have called a report from a form and destype=mail.
    i have already mention the smtp server name in conf. file but still receiving this error
    REP-50152: Error while sending mail - Sending failed; nested exception is: javax.mail.SendFailedException: Invalid Addresses; nested exception is: javax.mail.SendFailedException: 550 5.7.1 Unable to relay for [email protected]
    thanks

    Your smtp server forbids relaying, which is very common. Often a smtp server is configured to send only mails within the same domain without authentication. Otherwise, you need a username and password for the smtp server. I'm not sure if you can configure Reports to send mail through an authenticated server.

  • Acrobat 9 Pro  " An error occurred while sending mail"

    Dear Gurus:
    Free ice cream to the person with the answer that works.      I use Vista OS, 32 bit;    IE (Primary) and Mozilla;   Outlook E-mail (primary) and Windows Mail.  The preceding has been the case for the last two years so "nothing has changed".    I used Adobe Acrobat 9 Pro for two years and designed a number of interactive forms and used the functionality as much as possible.   Overall a good experience with Pro 9
    Case in point, I designed an interactive employment application that was regularly used, updated and re-released over a period of about two years without incident.  It was set up to be completed online by employment applicants.  Once completed, they would click to  "e-mail the office"  the completed application then close the document.    It was set up with the button to send a form, and more precisely to send the form as .FDF to the mailto: address#1; address #2.   Again it worked fine using either Mozilla or IE until last week.      As usual, I made some minor edits to the existing body fields and left the buttons alone sine there was no need to bother them.
    I emailed  the revised  .PDF document to   "the web guy" who added it to the website- like all the times before.     I went online to  "test it" as usual so I filled it out.   When I click the button to send form to office, the option comes up to select the email client.   I use Outlook so I selected "Desktop E-mail Application",  click  OK  and then I immediately get the message  "An error has occurred while sending mail".      In the past without fail, the Outlook would open after 1-3 seconds and attach the   .FDF file with the normal  .FDF and data jargon.  no problem...      Also, I am aware of extending features to Reader and the licensing issue, but I doubt that is an issue.....
    So, before I posted here I tried a few things:
    A-  I tried opening the source  .PDF application locally on my PC and filled it out. I clicked the button to "sent the file" to myself.    To be clear this was not posted on the website, but it did open Outlook, create the email, add the .FDF and sent it to me.       HHHMMMM so it works locally....
    B-  Next, I started fresh with a blank adobe document page and added two items:  1- a text field and a new email submit button I created to send the data via FDF.    I set it up, it worked fine when I tested it locally on the PC and created the .FDF file and the Outlook email and I sent it to myself.     Then  I took this same little test file and added it to a different website I have access to, I re-published the site,  ccessed the form and  no dice......    I got the same message,  " an error occurred while sending mail"  when I clicked OK to use the Desktop Email Application.
    C- I read other posts and Googled for about 6 hours yesterday and  now I am missing clumps of hair.
    So, it seems something "happened" that will not let the email be created from an existing form; or a NEW form that are available for use on a website;  but BOTH  work just fine if accessed on a local PC. 
    Please , and thank you..
    Brian P.

    Hi Bill,
    Thank you for your follow up.       I'm not sure what you mean by,  "did I do a comparison to the original".    If you're asking whether I'm sure the .PDF and the .FDF are the "same" documents, they are...  however the problem is even if they were entirely different forms, my issue is once the submit form button is clicked, Outlook fails to initialize and attach the   .FDF file .
    I mentioned how I tried to recreate the "error" by building a new form from scratch in order to eliminate all the possible variables of having a bug in the form that had been updated so many times before without incident.   Even with the new form having just one text field and one submit form button,  it worked as needed when I used the .PDF file locally right from my PC by  filling out the field and submitting the form's  .FDF data to myself.      It opened the Outlookprogram, created the mail and attached the .FDF file.     I clicked "send" and away it goes  from "me" to "me" and I was able to open the email, click the .FDF then browse to the .PDF source form so the files could extract into the   .PDF.    All normal and all Okay ,  like 100 times before using the WEB, but not now... .
    Today,  even that simple form with one field and one submit button encounters the same  "An error has occurred while sending mail"  message upon clicking on the web based submit button.     The option comes up to let me select the email server and when I click  "OK" , the error notice comes up...    grrrrrrrrrrrrr
    In short, when the form is used in a website environment, it doesn't want to create the outgoing email with the .FDF file attachment.      Normally, it worked like a peach.
    ?? I dunno
    BP

  • An error occurred while sending mail. The mail server responded: 5.7.1 [P4] Message blocked due to spam content in message

    I have been using Thunderbird for a couple of years. On Friday 10 Apr my home email account stopped sending either new messages or replying to incoming emails. In addition I have Thunderbird get my work email and I can send and receive email just fine. I can also send email from my android phone and via the web.
    The message that has started coming up is the following:
    An error occurred while sending mail. The mail server responded: 5.7.1 [P4] Message blocked due to spam content in the message.. Please check the message and try again.
    I have tried reinstalling Thunderbird but nothing changed, I tried changing the port from 25 to 587 to 465 but nothing changed. I do not understand what is going on as on Wednesday Apr 8 everything was working just fine.

    I have just tried ringing RCN and they tell me that because I am not using an RCN email as such they can not help but he suggested that it was a filter in Thunderbird but I have not set any filters and can not see if there are any or how to change them. The only way sending my website url right now is to make it not look like a url. Where do I need to look to solve this as I first wrote last week everything was fine.

Maybe you are looking for