Send CC emails not successful

Dear All,
I am using the javax.mail to send email my only problem is sending multiple CC copies. Below is a part of my codes. This line where I set the CC does not work emailMessage.setRecipients(Message.RecipientType.CC,InternetAddress.parse(eMArray[2]));. The TO and another CC always works fine no problem.
Message emailMessage = new MimeMessage(session);               
emailMessage.setFrom(new InternetAddress("senderEmail"));
emailMessage.setRecipients(Message.RecipientType.TO,InternetAddress.parse(eMArray[1]));
System.out.println("EArray Length is :"+eMArray.length+"  "+"Second Email :"+eMArray[2]);
if(eMArray.length==3)
emailMessage.setRecipients(Message.RecipientType.CC,InternetAddress.parse(eMArray[2]));
emailMessage.setRecipients(Message.RecipientType.CC,InternetAddress.parse("ccMain"));
emailMessage.setSubject("Message");
emailMessage.setText(eMArray[0]);
//eMailQueue.add(emailMessage); 
Transport.send(emailMessage);Edited by: 797268 on Oct 14, 2011 9:44 PM

Dear Dr Clap,
My problem is that I have checked at this line
if(eMArray.length==3)
emailMessage.setRecipients(Message.RecipientType.CC,InternetAddress.parse(eMArray[2])); and made sure eMArray[2] have a valid email but still it is not sending the email whereas this line emailMessage.setRecipients(Message.RecipientType.CC,InternetAddress.parse("ccMain")); it always sends perfectly? Could it be anything wrong settings for the CC?

Similar Messages

  • SO01 email not successfully sent out

    Dear all,
    I have 2 clients DEV111 & DEV222, both are configured with SMTP to allow sending out email.
    DEV111 - is configured to be able to send email only and it works.
    DEV222 - is configured to be able to send and receive email. Receiving email is working based on steps in notes 455140. But sending email does not work. The sending email configuration is same as in DEV111.
    To send email in DEV222
    1) SO01 --> New message
    2) Fill in title,the contents and the recipient address. The recipient type is "Internet address" and Express Mail is ticked.
    3) Click Send.
    4) SCOT --> Start send process, it says No messages sent.
    5) Then check in the outbox, SO01 --> Outbox --> Documents, the email is there, but the Send Date, Recipient and the Send Status are blank. The Send Time is 00:00:00
    6.) To check the send status in SOST also nothing.
    Action taken
    1) Check SMTP status in SMICM --> Goto --> Services. SMTP is active
    2) Double check configuration in SCOT.
           a) "Node in use" is ticked
           b) "Supported address types" for Internet is set to *
           c) Default Domain is configured. SCOT --> Settings --> Default Domain
    3) To perform test route. SCOT --> Utilities --> Routing Test
           a) Recipient Address type = INT
           b) No error found in the results.
    Please advise what could be the cause of the problem and what else I can check.
    Thanks.
    Regards,
    Kent

    Hi,
    1. As of Release 6. 20, you must activate the SMTP server after you create or change it (Service/Virt.Host --> Activate, or right-click).
    2. SAPconnect administration (transaction SCOT)
       You have to make the SAPconnect settings separately in each client from which e-mails are to be  
       sent or in which e-mails are to be received.
    a) Default domain
        The domain of this SAP system client is defined here, for example, crm-prod.company.com. It is
        used for the following purposes:
          *     The SMTP Plug-In logs on to the mail server with the domain as ID.
        The message ID of outgoing mails is created with this domain. If an SAP user who has not entered  
        an Internet mail address in their user master record sends an e-mail, a sender address is 
        enerated from the SAP user name and this domain.
    3. Check whether Background Job executed sucessfully or not.
    --Kishore

  • IMessage sending from email not phone number from my Mac?

    So I bought a macbook pro and i at the time had an iphone 4. When i started the messages app on the macbook, it prompted me to sign in and everything and then i could send imessages as if they were from my phone number. Then, i got an iphone 5 and all of a sudden the messages from the macbook were being sent from my email, not my phone number, and I have no idea how to get it back to sending from my phone number. HELP?!

    Associate your mobile number with your Apple ID, if you haven't already done so.
    From the Messages menu bar, select
    Messages ▹ Preferences ▹ Accounts
    and choose from the menu labeled
    Start new conversations from:

  • FEP 2010 - Email alerts not sended (Test-Emails are Successful)

    Hello,
    I got a FEP 2010 environment that is integrated with SCCM 2007.
    The "Test email alert" is sent successfull. But there is no email-alert sent when a FEP-client gets MallWare. (The MallWare is only removed and this is shown in the event viewer of the client
    & the reports on the FEP Server).
    Worth to meantion is that the Alerts stopped to work after a reinstall of IIS and Reporting Services.
    In the Event Viewer of the server running FEP, the "Forefront Endpoint Protection" log keep saying:
    Error, FepSrv, 3004
    Alerts manager failed
    Error recieved:
    MalwareDetectionAlertResultComputerName
    And one/two minutes later it says:
    Information, FepSrv, 3005
    Alerts manager succeeded after failure
    I have tried the "FEP Best Practices Analyzer (BPA)" and I got the result "0 items NonCompliant" and it showed that Alerts where configured correctly.
    I don't know what more to troubleshoot, do you have any ideas?
    Best Regards,
    Anders

    Hi Jörgen,
    Thank you for the answer, but the SQL Agent is up and running and there's no errors.. 
    The workflow seems to work properly, except the "FEPSrv" who can't find events that would trigger alerts.
    (If I run a report on the FEP-server, the report contain info about the clients who's been exposed to MalWare - And MalWare info)
    The "Update Rollup 1 for forefront endpoint protection 2010" ( http://www.microsoft.com/en-us/download/details.aspx?id=26583 )  has not been implemented, can this be
    a possible reason to why the alerts not function properly?
    Regards,
    Anders

  • IMessage on Mac sends as email not phone number

    Hey i just got a Macbook pro and i love the iMessage feature because i love the idea of using my computer to reply to text but i send a message to someone it sends as my email address not my phone. Is there a way to fix this. Thanks!

    http://support.apple.com/kb/HT3529
    are you running osX 10.8.2 or higher on your Mac as stated in the above link?

  • Imessage sending from email not phone number, why!?

    I use imessage from my macbook, ipad and iphone and have selected my phone number to start new messages, through this Check Settings > Messages > Send & Receive but still my messages send from my email.
    Any thoughts on what I can do?

    When I turn back on all devices, where it says "you can be reached by imessage at" both my phone number and apple id email are checked, but only phone number for "start conversations from"
    If I uncheck my email from  the "you can be reached by imessage" section it sends only from my phone number via iphone and ipad (yay!) but I can not log back in to my messaging on my computer now...
    Does my email need to be selected in order for me to do this?

  • Share send by email not working

    I have always liked the share > send by mail function.
    It has recently just stopped working. You select send by mail > pdf and nothing happens. No mail opens in Mail with the pdf as an attachment. Now I need to export a pdf and then make a mail and add as attachemnt. What a drag!
    Any ideas gratefully received.
    Best
    Tommy Banana

    Are you still on 10.6.8?
    You could read other threads about the issue. Some have had "illegal" characters in the document  names like / which stops Sharing.

  • Text send to email address not being delivered

    Can anyone tell me why texts sent from my iphone 4 to my home email address are not being delivered? I like to send reminders of things I need to do from my phone to my email address. Have always been able to do this from other phones I've had but not now with this iphone 4. It saying they were sent but they never show up in my inbox or any other box.

    longlostname wrote:
    If my reply is being sent as an SMS, what is to prevent the new message from being sent as an SMS? 
    What prevents the new message being sent as an SMS is that your actually sending an email -- not an SMS, when you initiate a [email protected], that is an email, not an SMS.
    longlostname wrote:
    And are you aware of a way to send messages of any type to an email address from this model phone without having to have a data plan
    Nope, you don't have the data plan. Sorta like refusing to install a trailer hitch on your truck, and then wondering why you can't pull a trailer behind.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I have an IPad 2,I have previously had no problem sending photos by email.But now for some reason photos I send are not successfully been sent. I'm not sure if I have changed a setting by mistake. Is there a particular Setting I should be concentrating on

    I would be very appreciative if anyone could give me some advice!I have an IPad 2,I have previosly had no problem sending photos by email.But now for some reason photos I send are not successfully been sent. I'm not sure if I have changed a setting by mistake. Is there a particular Setting I should be concentrating on to making it successfully work again?Cheers!I look forward to hearing back from you!Aussie Fella!

    is this how you send your photo?
                            Tap a photo, album, or event to select it.                    
                            Tap > Email.                                            
                            Confirm or change the photos you want to share by tapping an option.                       
                                  Select all the photos in an album or event: Tap All.                                                        
                                  Select a range of photos: Tap Choose, tap Range, tap the first and last photos in the range, and tap Next.                                                        
                            Type the address of the recipient, add a message, and tap Send.

  • BODS 3.1 :SMTP configuration to send email for success or failure of job

    Hi.
    This is further to this post : http://forums.sdn.sap.com/thread.jspa?threadID=1965129&tstart=0
    Thanks to all for the help.
    I did not find a complete set of information as things to do (for a person who is new to BODS).
    Hence sharing the workflow which works for me when tested on a simple workflow  :
    Pre-requisite : SMTP service to be made available on the BODS server and port 25 to be opened up.
    This is done by the IT dept of the company.
    When smtp service is activated and port 25 is opened up, telnet IP address 25 should say, service is available.
    Suggestion : create a email group like : bods at company.com which can be used to be used for the BODS JOBs. Which does not prompt for a password. This also is done by the IT dept of the company.
    1) On the BODS server :
    1) Click open Data Services Server Manager
    2) SMTP settings for smtp_to functions :
    Add the IP Address of the SMTP server
    Add the email address of the sender. Eg. bodsjobs at companyname,com
    3)Apply/Restart the server.
    2) Login to BODS Designer :
    Create a test job :
    TRY ==>DF===> Script for success ===> CATCH script for failure
    In the script for success : add the following :
    print (' IN TRY BLOCK Before email ' );
    smtp_to('bodsjobs at abc,com', ' SUCCESS OF JOB  :  '
    || job_name(),'Job completed successfully ', 0, 0);
    print('After Email ');
    In the script for Catch add the following :
    print (' IN CATCH BLOCK Before email ' );
    smtp_to('bodsjobs at abc,com', 'FAILURE OF JOB : '
    || job_name(),
    error_number( ) || 'Error message: ' || error_message( ) ||
    'check details', 50, 50);
    print('After Email ');
    Note : In the catch : select all exceptions on the check box.
    Save all.
    Click on the job and say execute.
    The job will run and if it is successful. You will receive the succes mail.
    If there is any error in the DF before the catch, you will receive a mail, which says failure.
    The above workflow, when tested atleast works for me.
    Hope this  helps.
    Regards
    indu

    Hi Arun.
    Am really not aware as to how to make things work from the console.
    I work on windows environment both at client and on the server.
    It looks like you got a bit confused on suggestion of a email group account.
    I never did anything on outlook configuration for activation of smtp for bods.
    I think you should not mess with outlook.
    I dont know from the client side how things work.
    But i have worked directly on the BODS server where the bods installation was done.
    It is relatively very simple to do and to test.
    But to even test why you get that error.
    All you need is just a email id. Which could be yours ???
    Put your email id as the source of email in that box in the job server.
    And put only your email id in smtp_to and test it.
    Run a test job. If it completes successfully. You will receive a mail.
    In the catch, if you have checked all the boxes for error capture,
    if the job fails, it would throw a dump of the errors in the email.
    Once everything works well and you receive emails for any jobs you are running.
    Then you could decide for the source of your email id and for the receipients of your emails of the jobs.
    You could put a group id of your team as source. And also in smtp_to script in case you want everyone to receive the alert that the job has been done or it has errors.
    Or include only those email ids in the smtp_to whom you feel, should receive the mail.
    Hope this idea helps.
    Please dont mess with outlook for any smtp activation for bods.
    It is not required if you are working on a windows environment.
    You just need a email id for testing.
    Outlook configuration does not come into picture at all.
    if there is any other unix environment involved. I have no idea.
    And i really do not know how things would be from a client side to configure.
    Server configurations i do from the server.
    I did all configurations on the main server machine. Not from the client.
    And I have only one job server so i did everything there.
    I did not do anything from management console.
    I use management console only for monitoring of jobs on a daily basis, the dashboard which gives you details of the data pulled, time taken etc etc.
    cheers
    indu.
    Edited by: Indumathy Narayanan on Oct 22, 2011 8:05 AM
    Edited by: Indumathy Narayanan on Oct 22, 2011 8:09 AM
    Edited by: Indumathy Narayanan on Oct 22, 2011 8:17 AM
    Edited by: Indumathy Narayanan on Oct 22, 2011 8:18 AM

  • Email Not Sending from App

    Hello,
    I am using Application Express 2.1.0.00.39 installed by Oracle 10g XE.
    I am unable to send email using the following code:
    Declare
    P7_STATUS Varchar2(8);
    Begin
    HTMLDB_MAIL.SEND(
    p_to => '[email protected]',
    p_cc => '',
    p_from => 'UHR Issue Request System',
    p_body => 'The assistance request: '||:P7_ISSUE_SUMMARY||', has been received and will be addressed shortly.',
    p_subj => 'IM&T Assistance Request');
    end;
    My email configuration is set to the proper smtp address and port address. I checked the mail queue and the email is still there. When I manually attempt to send the email, I receive a confirmation message 'Successfully sent mail.' but the email is still visible in the queue.
    I had someone check the email logs on the smtp server and they do not show any email being sent from my IP address.
    I've looked at all of the posts on the forum and tried them to no avail. Any help is appreciated.

    This is what I get from the sql command option:
    Pushing email 28246014874767726
    ORA-29277: invalid SMTP operation
    ORA-06512: at "FLOWS_020100.WWV_FLOW_MAIL", line 345
    ORA-29279: SMTP permanent error: 555 5.5.4 Unsupported option: Issue
    Pushing email 28259028324547729
    ORA-29277: invalid SMTP operation
    ORA-06512: at "FLOWS_020100.WWV_FLOW_MAIL", line 345
    ORA-29279: SMTP permanent error: 555 5.5.4 Unsupported option: Issue
    Pushing email 28262110756017570
    ORA-29277: invalid SMTP operation
    ORA-06512: at "FLOWS_020100.WWV_FLOW_MAIL", line 345
    ORA-29279: SMTP permanent error: 555 5.5.4 Unsupported option: Issue
    Pushing email 28265016699113957
    ORA-29277: invalid SMTP operation
    ORA-06512: at "FLOWS_020100.WWV_FLOW_MAIL", line 345
    ORA-29279: SMTP permanent error: 555 5.5.4 Unsupported option: Issue
    Pushing email 28267124345692737
    ORA-29277: invalid SMTP operation
    ORA-06512: at "FLOWS_020100.WWV_FLOW_MAIL", line 345
    ORA-29279: SMTP permanent error: 555 5.5.4 Unsupported option: Issue
    Pushing email 28269402669700750
    ORA-29277: invalid SMTP operation
    ORA-06512: at "FLOWS_020100.WWV_FLOW_MAIL", line 345
    ORA-29279: SMTP permanent error: 501 5.1.7 Bad sender address syntax
    Statement processed.
    0.15 secondsDBMS Output
    Does any of tha make sense to you?

  • I have problem sending a email ..spool not created using custom FM

    Hi experts,
    i have problem sending a email ..spool not created using custom FM...this the custom FM
    * Send email notification
          lv_subject = text-037.
          lv_attachment = text-038.
          CALL FUNCTION 'Z_SEND_EMAIL_FROM_SPOOL'
            EXPORTING
              email1            = lv_email1
              email2            = lv_email2
              email3            = lv_email3
              subject           = lv_subject
              attachment_name   = lv_attachment
            EXCEPTIONS
              spool_not_created = 1
              OTHERS            = 2.
    Source code
    this is the source code for this FM
    IF sy-batch EQ 'X'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
        PERFORM convert_spool_to_pdf.
        IF sy-subrc IS NOT INITIAL.
          MESSAGE e040(zhrcd) RAISING spool_not_created.
        ENDIF.
        PERFORM process_email USING email1
                                    email2
                                    email3
                                    subject
                                    attachment_name.
        WAIT UP TO 5 SECONDS.
        SUBMIT rsconn01 WITH mode   = 'INT'
                        WITH output = 'X'
                        AND RETURN.
      ENDIF.....
    Please let me know
    Edited by: Thomas Zloch on Nov 16, 2010 5:53 PM - please use code tags

    Hi srinivas ,
    Could you please Check
    FORM summary_report .
      DATA: lv_success TYPE i,
              lv_error TYPE i,
              lv_total TYPE i.
      DESCRIBE TABLE gt_data LINES lv_success.
    DESCRIBE TABLE gt_error LINES lv_error.
      DESCRIBE TABLE gt_message LINES lv_error.
    lv_total = lv_success + lv_error.
      lv_total = lv_success.
      gwa_summary-record = text-008."Number of Successful records.
      gwa_summary-number = lv_success.
      APPEND gwa_summary TO gt_summary.
      gwa_summary-record = text-009."Number of error records'.
      gwa_summary-number = lv_error.
      APPEND gwa_summary TO gt_summary.
      gwa_summary-record = text-010."Total number of records processed.
      gwa_summary-number =  lv_total.
      APPEND gwa_summary TO gt_summary.
    CLEAR gt_fieldcat.
      gwa_fieldcat_summ-col_pos = 1 .
      gwa_fieldcat_summ-fieldname  = 'RECORD'.
      gwa_fieldcat_summ-tabname = 'GT_SUMMARY'.
      gwa_fieldcat_summ-seltext_l  = text-011."Records
      gwa_fieldcat_summ-outputlen = '70'.
      APPEND gwa_fieldcat_summ TO gt_fieldcat_summ.
      gwa_fieldcat_summ-col_pos = 2 .
      gwa_fieldcat_summ-fieldname  = 'NUMBER'.
      gwa_fieldcat_summ-tabname = 'GT_SUMMARY'.
      gwa_fieldcat_summ-seltext_l  = text-012."Number
      gwa_fieldcat_summ-outputlen = '10'.
      APPEND gwa_fieldcat_summ TO gt_fieldcat_summ.
    ENDFORM.                    " SUMMARY_REPORT
    *&      Form  ERROR_REPORT
    FORM error_report .
    gt_fieldcat_err[] = gt_fieldcat[].
      gv_fieldcat_err-col_pos = 1.
      gv_fieldcat_err-fieldname  = 'PERNR'.
      gv_fieldcat_err-tabname = 'GT_MESSAGE'.
      gv_fieldcat_err-seltext_l  = text-070."Employee Number
      gv_fieldcat_err-outputlen = '20'.
      APPEND gv_fieldcat_err TO gt_fieldcat_err.
      gv_fieldcat_err-col_pos = 2.
      gv_fieldcat_err-fieldname  = 'MESSAGE'.
      gv_fieldcat_err-tabname = 'GT_MESSAGE'.
      gv_fieldcat_err-seltext_l  = text-071."Error Message
      gv_fieldcat_err-outputlen = '80'.
      APPEND gv_fieldcat_err TO gt_fieldcat_err.
    ENDFORM.                    " ERROR_REPORT
    *&      Form  FINAL_REPORT
    FORM final_report .
      DATA:lv_layout TYPE slis_layout_alv,
             lt_events_summ TYPE slis_t_event,
             lv_events_summ LIKE LINE OF lt_events_summ,
             lt_events_det TYPE slis_t_event,
             lv_events_det LIKE LINE OF lt_events_det,
             lt_events_err TYPE slis_t_event,
             lv_events_err LIKE LINE OF lt_events_det,
             lt_events_msg TYPE slis_t_event,
             lv_events_msg LIKE LINE OF lt_events_det.
      lv_events_summ-name = 'TOP_OF_PAGE'.
      lv_events_summ-form = 'TOP_OF_PAGE1'.
      APPEND lv_events_summ TO lt_events_summ.
      lv_events_det-name = 'TOP_OF_PAGE'.
      lv_events_det-form = 'TOP_OF_PAGE2'.
      APPEND lv_events_det TO lt_events_det.
      lv_events_err-name = 'TOP_OF_PAGE'.
      lv_events_err-form = 'TOP_OF_PAGE3'.
      APPEND lv_events_err TO lt_events_err.
      lv_events_msg-name = 'TOP_OF_PAGE'.
      lv_events_msg-form = 'TOP_OF_PAGE4'.
      APPEND lv_events_msg TO lt_events_msg.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
        EXPORTING
          i_callback_program = sy-repid.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout                        = lv_layout
          it_fieldcat                      = gt_fieldcat_summ
          i_tabname                        = 'IT_SUMMARY'
          it_events                        = lt_events_summ
      IT_SORT                          =
      I_TEXT                           = ' '
        TABLES
          t_outtab                         = gt_summary
    EXCEPTIONS
      PROGRAM_ERROR                    = 1
      MAXIMUM_OF_APPENDS_REACHED       = 2
      OTHERS                           = 3
    IF CHK_DTL IS NOT INITIAL.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout                        = lv_layout
          it_fieldcat                      = gt_fieldcat
          i_tabname                        = 'gt_data'
          it_events                        = lt_events_det
      IT_SORT                          =
      I_TEXT                           = ' '
        TABLES
          t_outtab                         = gt_data
    EXCEPTIONS
      PROGRAM_ERROR                    = 1
      MAXIMUM_OF_APPENDS_REACHED       = 2
      OTHERS                           = 3
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
       EXPORTING
         is_layout   = lv_layout
         it_fieldcat = gt_fieldcat_err
         i_tabname   = 'gt_error'
         it_events   = lt_events_err
       TABLES
         t_outtab    = gt_error.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
       EXPORTING
         is_layout   = lv_layout
         it_fieldcat = gt_fieldcat_msg
         i_tabname   = 'gt_message'
         it_events   = lt_events_msg
       TABLES
         t_outtab    = gt_error.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout   = lv_layout
          it_fieldcat = gt_fieldcat_err
          i_tabname   = 'gt_message'
          it_events   = lt_events_err
        TABLES
          t_outtab    = gt_message.
    IF GT_MESSAGE[] IS NOT INITIAL.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout   = lv_layout
          it_fieldcat = gt_fieldcat_msg
          i_tabname   = 'gt_message'
          it_events   = lt_events_msg
        TABLES
          t_outtab    = gt_message.
    ENDIF.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    EXPORTING
       i_interface_check             = ' '
      IS_PRINT                      =
       i_screen_start_column         = 0
       i_screen_start_line           = 0
       i_screen_end_column           = 0
       i_screen_end_line             = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER       =
      ES_EXIT_CAUSED_BY_USER        =
    EXCEPTIONS
      PROGRAM_ERROR                 = 1
      OTHERS                        = 2
    ENDFORM.                    " FINAL_REPORT
    *&      Form  top_of_page
          text
    FORM top_of_page1.                                          "#EC CALLED
      WRITE text-013."SUMMARY REPORT.
    ENDFORM.                    "top_of_page
    *&      Form  top_of_page2
          text
    FORM top_of_page2.                                          "#EC CALLED
      WRITE text-014."DETAIL REPORT.
    ENDFORM.                    "top_of_page
    *&      Form  top_of_page3
          text
    FORM top_of_page3.                                          "#EC CALLED
      WRITE text-015."ERROR REPORT
    ENDFORM.                    "top_of_page
    *&      Form  EMAIL_NOTIFICATION
    FORM email_notification .
      DATA: lv_email1  TYPE somlreci1-receiver,
           lv_email2  TYPE somlreci1-receiver,
           lv_email3  TYPE somlreci1-receiver,
           lv_subject TYPE char200,
           c_flag     TYPE c           VALUE 'X',
           lv_attachment TYPE char50.
      CLEAR: lv_email1,
             lv_email2,
             lv_email3,
             lv_subject,
             lv_attachment.
      SELECT SINGLE email1
                    email2
                    email3
        FROM zhr_interface_pr
        INTO (lv_email1,lv_email2,lv_email3)
        WHERE zinterfaceid EQ gc_objectid.
      IF sy-subrc EQ 0.
        IF sy-batch EQ 'X'.
    Send email notification
          lv_subject = text-037.
          lv_attachment = text-038.
          CALL FUNCTION 'Z_SEND_EMAIL_FROM_SPOOL'
            EXPORTING
              email1            = lv_email1
              email2            = lv_email2
              email3            = lv_email3
              subject           = lv_subject
              attachment_name   = lv_attachment
            EXCEPTIONS
              spool_not_created = 1
              OTHERS            = 2.
          IF sy-subrc <> 0.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.                    "
    Edited by: katewinslate@SAP on Nov 17, 2010 12:50 PM

  • New firefox sync does not send verification email. I'm locked out.

    Once I installed the FirefoxDeveloperEdition, I tried to sync my datas, but noticed it didn't work.
    I dug a little and found there is a brand new Firefox Sync (maybe trying an old Firefox Sync account could notify the user it cannot add any new device).
    So I followed the support article in order to migrate and disabled my old Firefox Sync first. Then I tried to register a new account, and I'm stuck at the email verification step. I click on the “send verification email” but I don't receive anything.
    Now I cannot sync anything for two days, and can't figure what's wrong. I use the same email as this “mozilla support account”. I forgot my password so I did request for a password modification and received the email. Everything seems to work so far. Except for Firefox Sync.
    Did I miss something ?

    Hi CoryMH and loranger,
    If I read that currently you have reset your password and have successfully reset the password of the old sync, however there is no evidence of the new account syncing in the FirefoxDeveloperEdition because the verification email is never sent.
    So I tested this with an account I know that already exists and it did not detect the account right away:
    I submitted the bug:
    https://bugzilla.mozilla.org/show_bug.cgi?id=1097781
    But please try to remove the account from the Developer's edition and add it one more time and go to about:accounts.
    Does it sync on the second try without the verification email?

  • SharePoint Foundation 2013 installed on Windows Server 2012 not sending out email notification

    I have a server where i installed SP Foundation 2013 on top of Windows Server 2012. I have configured the SMTP as well as the outgoing SMTP in Central Administration
    of SharePoint. When i create an alert on a document library, its did not sent any email notification on the changes made to the document in the document library. So, i created a workflow to send out email using SPD2013. The workflow run, but it cannot sent
    out email with error saying that outgoing email is not configured correctly. I have checked with another server which i installed SP foundation 2013 on top of Windows Server 2008 R2 - its sending out email just fine using same configuration and outgoing SMTP.
    I need help to resolve this issue or at least the cause of the problem.
    Any help is greatly appreciated.

         
    Try below:
    http://social.technet.microsoft.com/wiki/contents/articles/13771.troubleshooting-steps-for-sharepoint-alert-email-does-not-go-out.aspx
    Go to Central Admin ---->Operations----->outgoing email settings and verify that SMTP server is mentioned correctly 
    2) Test the connectivity with the SMTP server.
    In order to do that follow these steps:
      Open  cmd
      telnet <SMTP server name> 25 ( We connect smtp server to the port 25)  
                     you should see a response  like this 220 <servername> Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at date and time
                     Beware that different servers will come up with different settings but you will get something
                     If you dont get anything then there could be 2 possible reasons, either port 25 is blocked or 
                     the smtp server is not responding.
      For testing response from your server
                       For testing response say ehlo to it.
                            Type :
                                        ehlo <servername>
                            output:
                                        250 <servername> Hello [IP Address]
      Now a test mail can be sent from that SharePoint server. 
                          Now we need to enter the From address of the mail.
                          Type :
                           mail from: [email protected]
                           output:
                           250 2.1.0 [email protected]….Sender OK
     It's time to enter the recepient email address.
    Type : rcpt to: [email protected]
    output:
    250 2.1.5 [email protected]
     Now we are left with the data of the email. i.e. subject and body.
    Type : data
    output:
    354 Start mail input; end with <CRLF>.<CRLF>
    Type:
    subject: this is a test mail
    Hi
    This is test mail body
    I am testing SMTP server.
    Hit Enter, then . and then Enter.
    output:
    250 2.6.0 <<servername>C8wSA00000006@<servername>> Queued mail for delivery
    Type: quit
    output:
    221 2.0.0 <servername> Service closing transmission channe
    3)  Check alerts are enabled for your web application
          verify if the windows timer service is running or not.
          Run this stsadm command to check that
          Stsadm.exe -o getproperty -url http://SharePoint-web-App-URL -pn alerts-enabled
         This should return <Property Exist="Yes" Value="yes" />
         If you don’t get this, Enable alerts by:
         stsadm.exe -o setproperty -pn alerts-enabled -pv "true" -url http://SharePoint-web-App-URL
          If its already enabled, try turn off and turn on it back.
    4)  Check the Timer job and Properties
           Go to
           MOSS 2007:  Central Administration > Operations > Timer Job Definitions (under Global Configuration)
           In SharePoint 2010: Central Administration > Monitoring > Review Job Definitions 
           Check whether the "Immediate Alerts" job is enabled for your web application. check these properties:
                       job-immediate-alerts
                       job-daily-alerts 
                       job-weekly-alerts
           stsadm.exe -o getproperty -url "http://Your-SharePoint-web-App-URL" -pn job-immediate-alerts
           The expected output is:
           <Property Exist="Yes" Value="every 5 minutes between 0 and 59"/>.  
           If you don’t get this, run the following command to set its value.
           stsadm.exe -o setproperty -pn job-immediate-alerts -pv “every 5 minutes between 0 and 59" -url http://Your-SharePoint-web-App-URL
    5)  Check whether the account is subscribed for alerts and it has a valid email account. This should be the first thing to check if the problem persists for some users not for      all.
    6)  Then check if at all those users have at least read permission for the list. Because the first mail should go out for every user without security validation but the next ones       won't be delivered unless the user has at least read
    permission.
    7)  If it is happening for one user, can also try to delete and re add the user in the site.
    8)  Most importantly , you should try this one.
          Run this SQL query to the content db < Select * from Timerlock>
          This will give you the name of the server which is locking the content database and since when.
          In order to get rid of that lock 
          Go to that server which is locking the content db and then restart the windows timer service.
          within some time it should release the lock from content db, if not then at the most stop the timer job for some time
          Once the lock will be released then try to send some alerts
          You will surely get the email alert.
    I found this is the most probable reason for alert not working most of the time. We should start troubleshooting with above steps before coming to this step for any alert email issue but from step 1 to step 7 are best for new environments or new servers.
    If the issue is like this ,alert was working before and suddenly stopped working without any environmental change then above conditions in step 1-7 should be ideally fine.
    Even after this if it is not working, then you can try these few more steps too
    9)  Try re-registering the alert template:
    stsadm -o updatealerttemplates -url http://Your-SharePoint-Web-App-URL -f  "c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML\alerttemplates.xml" -LCID 1033
    10)  Try to clear the configuration cache
    If this helped you resolve your issue, please mark it Answered

  • TS3276 I can receive emails, but I cannot send emails. This just started happening. I have an iPhone and I can send emails from my phone fine. It's just not working on my Macbook. Every time I try to send an email it goes straight to my outbox. Can anyone

    I can receive emails, but I cannot send emails. This just started happening. I have an iPhone and I can send emails from my phone fine. It's just not working on my Macbook. Every time I try to send an email it goes straight to my outbox. Can anyone help?

    Thank you for heading me in the right direction.  I reset my Mail account for Outgoing Mail Server to outbound.att.net:(customer ID)@att.net (instead of smtp.att.yahoo.com, per Apple's online troubleshooting information).   I'm not sure what "(Offline)" means when it appears at the end of my Outgoing Mail Server (SMTP)??  In the Advanced box I clicked on "Use custom port:  465" and checked "Use Secure Sockets Layer."  Authentication:  Password; I have correct User Name and Password put in.  After doing all this, when I try to send emails again today, they go directly to the Outbox and sit there. 
    What's curious is that my first sent email this morning did go out using the Outgoing Mail Server, smtp.att.yahoo.com: (customer ID)@att.net(Offline) but subsequent emails I tried to send with this server were rejected with the message:  "Cannot send message using the server smtp.att.yahoo.com (etc.).  The SMTP server doesn't support TLS(SSL) on port 587.  Verify your account settings and try again."  That's when I tried resetting my Outgoing Mail Server to outbound.att.net (etc.), as mentioned above, and was unsuccessful in sending out any further emails.  I guess my next step is to contact my email service provider, AT&T, and see if they can help me.  Thanks, again, for taking the time to respond and for giving me your input!  Much appreciated!

Maybe you are looking for