Cant send mail from method

Hi All
I have a class that I developed, one of my methods should send mail.
I tried using the function : SO_NEW_DOCUMENT_SEND_API1 in order to do so.
I also tried using the class : cl_bcs .
In both methods I have written commit work after activating the function/method.
The mail did get into my private outbox, but it did not reach SCOT ( transaction ).
I tried writing the same code as I wrote in the method inside a program and it worked fine ( including the SCOT part).
Do any of u have any idea why would the same code work in a regular program and not in a method?????
Thanks
Nitsan

Hi Nitsan,
Please check the code below. It will surely work.
DATA:
     it_text TYPE STANDARD TABLE OF solisti1
              WITH NON-UNIQUE DEFAULT KEY,
     it_cont TYPE STANDARD TABLE OF solisti1
              WITH NON-UNIQUE DEFAULT KEY.
  DATA: send_request       TYPE REF TO cl_bcs.
*  DATA: text               TYPE bcsy_text.
*  DATA: binary_content     TYPE solix_tab.
  DATA: document           TYPE REF TO cl_document_bcs.
  DATA: sender             TYPE REF TO if_sender_bcs. "cl_sapuser_bcs.
  DATA: recipient          TYPE REF TO if_recipient_bcs.
  DATA: bcs_exception      TYPE REF TO cx_bcs.              "#EC *
  DATA: sent_to_all        TYPE os_boolean.
  DATA: wa_subject(50) TYPE c.
  IF admin_flag = 'X'.
    wa_subject = text-046.
  ELSE.
    wa_subject = text-047.
  ENDIF.
  CLEAR wa_err_flg.
  PERFORM create_style CHANGING it_text.     u201Csee below
  PERFORM create_message USING
    p_pernr wa_first_name wa_last_name wa_admin_name att_flag correction_flag reclass_flag miss_receipt_flag w_total_amt.    u201Csee below
  TRY.
*     -------- create persistent send request ------------------------
      send_request = cl_bcs=>create_persistent( ).
*     -------- create and set document with attachment ---------------
*     create document from internal table with text
      document = cl_document_bcs=>create_document(
                      i_type    = 'HTM'
                      i_text    = it_text
*                      i_length  = '12'
                      i_subject = wa_subject ).
*     add attachment to document
*     BCS expects document content here e.g. from document upload
*     binary_content = ...
      IF att_flag IS NOT INITIAL.
        CALL METHOD document->add_attachment
          EXPORTING
            i_attachment_type    = 'HTM'
            i_attachment_subject = wa_subject
            i_att_content_text   = it_cont.
      ENDIF.
*     add document to send request
      CALL METHOD send_request->set_document( document ).
*     --------- set sender -------------------------------------------
*     note: this is necessary only if you want to set the sender
*           different from actual user (SY-UNAME). Otherwise sender is
*           set automatically with actual user.
      sender ?= cl_cam_address_bcs=>create_internet_address(
                                        'ur email address' ).
*      sender = cl_sapuser_bcs=>create( sy-uname ).
      CALL METHOD send_request->set_sender
        EXPORTING
          i_sender = sender.
*     SENDER = 'ExpCompliance'.   "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
*     --------- add recipient (e-mail address) -----------------------
*     create recipient - please replace e-mail address !!!
      DATA: wa_addr TYPE ad_smtpadr.
      MOVE wa_email_addr TO wa_addr.
      recipient = cl_cam_address_bcs=>create_internet_address(
                                        wa_addr ).
*     add recipient with its respective attributes to send request
      CALL METHOD send_request->add_recipient
        EXPORTING
          i_recipient = recipient
          i_express   = 'X'.
*     ---------- send document ---------------------------------------
      CALL METHOD send_request->send(
        EXPORTING
          i_with_error_screen = 'X'
        RECEIVING
          result              = sent_to_all ).
  IF sent_to_all = 'X'.
        COMMIT WORK.
        LOOP AT i_person_data ASSIGNING <fs_person_data>.
          MOVE <fs_person_data> TO wa_error_data.
          CONCATENATE wa_error_data-comments text-020 INTO wa_error_data-comments SEPARATED BY space.
          APPEND wa_error_data TO i_success.
        ENDLOOP.
      ELSE.
        LOOP AT i_person_data ASSIGNING <fs_person_data>.
          MOVE <fs_person_data> TO wa_error_data.
          MOVE text-021 TO wa_error_data-comments.
          APPEND wa_error_data TO i_email_errors.
          MOVE 'X' TO wa_err_flg.
          MOVE 'X' TO <fs_person_data>-error_flag.
        ENDLOOP.
      ENDIF.
* *                     exception handling
* * replace this very rudimentary exception handling
* * with your own one !!!
    CATCH cx_bcs INTO bcs_exception.
*      WRITE: 'Fehler aufgetreten.'(001).
*      WRITE: 'Fehlertyp:'(002), bcs_exception->error_type.
*      EXIT.
*begin v02
      LOOP AT i_person_data ASSIGNING <fs_person_data>.
        MOVE <fs_person_data> TO wa_error_data.
        MOVE text-021 TO wa_error_data-comments.
        APPEND wa_error_data TO i_email_errors.
        MOVE 'X' TO wa_err_flg.
        MOVE 'X' TO <fs_person_data>-error_flag.
      ENDLOOP.
*end v02
  ENDTRY.
  COMMIT WORK.    <<<< important!!!! You must do this after each email sent
**********************************************************additional forms for style and message text********************************************
*&      Form  create_style
*       text
*      <--P_IT_TEXT  text
FORM create_style  CHANGING fpi_text TYPE it_text.
  DATA: w_line TYPE soli.
  CONCATENATE '<STYLE type = "text/css">'
    'A:link {COLOR: navy; TEXT-DECORATION: none}' INTO w_line.
  APPEND w_line TO fpi_text.
  CONCATENATE 'A:visited {COLOR: #3389a9;' 'TEXT-DECORATION: none}' INTO
  w_line.
  APPEND w_line TO fpi_text.
  w_line = 'A:hover {COLOR: #590000; TEXT-DECORATION: underline}'.
  APPEND w_line TO fpi_text.
  w_line = 'A:unknown {COLOR: white; TEXT-DECORATION: none}'.
  APPEND w_line TO fpi_text.
  w_line = 'B {      FONT-WEIGHT: bold}'.
  APPEND w_line TO fpi_text.
  CONCATENATE
'BODY {FONT-WEIGHT: normal; FONT-SIZE: 10pt; MARGIN: 0px; FONT-STYLE:'
'normal; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR:'
  'white}' INTO w_line.
  APPEND w_line TO fpi_text.
  CONCATENATE
  'H1 {FONT-WEIGHT: bold; FONT-SIZE: 20pt; COLOR: black; FONT-STYLE:'
  'normal; FONT-FAMILY: Arial, Helvetica, sans-serif}' INTO w_line.
  APPEND w_line TO fpi_text.
  CONCATENATE
  'H2 {FONT-WEIGHT: bold; FONT-SIZE: 16pt; COLOR: black; FONT-STYLE:'
  'normal; FONT-FAMILY: Arial, Helvetica, sans-serif}' INTO w_line.
  APPEND w_line TO fpi_text.
  CONCATENATE
  'H3 {FONT-WEIGHT: bold; FONT-SIZE: 14pt; COLOR: black; FONT-STYLE:'
  'normal; FONT-FAMILY: Arial, Helvetica, sans-serif}' INTO w_line.
  APPEND w_line TO fpi_text.
  CONCATENATE
  'H4 {FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: black; FONT-STYLE:'
  'normal; FONT-FAMILY: Arial, Helvetica, sans-serif}' INTO w_line.
  APPEND w_line TO fpi_text.
  CONCATENATE
  'H5 {FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: black; FONT-STYLE:'
  'normal; FONT-FAMILY: Arial, Helvetica, sans-serif}' INTO w_line.
  APPEND w_line TO fpi_text.
  w_line = 'I {      FONT-STYLE: italic }'.
  APPEND w_line TO fpi_text.
  CONCATENATE
  'P {FONT-WEIGHT: normal; FONT-SIZE: 10pt; COLOR: black; FONT-STYLE:'
  'normal; FONT-FAMILY: Arial, Helvetica, sans-serif}' INTO w_line.
  APPEND w_line TO fpi_text.
  CONCATENATE
  'TD {FONT-WEIGHT: normal; FONT-SIZE: 10pt; COLOR: black; FONT-STYLE'
  'normal; FONT-FAMILY: Arial, Helvetica, sans-serif}' INTO w_line.
  APPEND w_line TO fpi_text.
  CONCATENATE
  '.SectionBlockHeader {'
  'FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #000066; FONT-FAMILY:'
  'Verdana}' INTO w_line.
  APPEND w_line TO fpi_text.
  CONCATENATE
  '.channelcontent {'
  'FONT-SIZE: 11px; MARGIN-BOTTOM: 3px; COLOR: #000000; FONT-FAMILY:'
  'Verdana, sans-serif}' INTO w_line.
  APPEND w_line TO fpi_text.
  w_line = '</STYLE>'.
  APPEND w_line TO fpi_text.
ENDFORM.                    " create_style
*&      Form  create_message
*      Create message text
FORM create_message USING p_pernr TYPE persno
                          wa_first_name LIKE pa0002-vorna
                          wa_last_name LIKE pa0002-nachn
                          wa_admin_name LIKE pa0002-vorna
                          wa_att_flag TYPE c
                          wa_corr_flag TYPE c
                          wa_reclass_flag TYPE c
                          wa_miss_receipt_flag TYPE c
                          wa_total_amt TYPE wertv8.         "#EC NEEDED
  DATA: wa_amount_text LIKE wa_text_store.
  DATA: wa_ptr_dir(80)  TYPE c.
  DATA: char_total_amt(10) TYPE c.
  FIELD-SYMBOLS: <fs_more_text> LIKE wa_text_store.
*get auditors phone number
  READ TABLE i_person_data INDEX 1 INTO wa_person_data.
  CLEAR wa_phone-phone.
  READ TABLE i_auditor INTO wa_auditor WITH KEY usrid = wa_person_data-auditor.
  IF sy-subrc NE 0.
    MOVE text-033 TO wa_auditor-phone.
  ENDIF.
  CONCATENATE '(' wa_auditor-phone+0(3) ')' ' ' wa_auditor-phone+3(3) '-' wa_auditor-phone+6(4) INTO wa_auditor-phone.
  CONCATENATE wa_first_name wa_last_name INTO wa_ptr_dir SEPARATED BY space.
  WRITE wa_total_amt TO char_total_amt CURRENCY wa_person_data-loc_curr.
  PERFORM get_payroll_date USING p_pernr CHANGING w_date.
*line 1
  REPLACE '[NAME]' IN  <fs_text_store>-zline1 WITH wa_first_name.
  REPLACE '[ADMIN_NAME]' IN  <fs_text_store>-zline1 WITH wa_admin_name.
  APPEND <fs_text_store>-zline1 TO it_text.
*line 2
  CONCATENATE wa_first_name wa_last_name INTO wa_ptr_dir SEPARATED BY space.
  CONDENSE wa_ptr_dir.
  REPLACE '[PTR_DIR]' IN <fs_text_store>-zline2 WITH wa_ptr_dir.
  REPLACE '[INSERT TABLE]' IN  <fs_text_store>-zline2 WITH ' '.
  IF wa_admin_name IS NOT INITIAL.
    REPLACE 'Your' IN <fs_text_store>-zline2 WITH 'The'.
  ENDIF.
  IF sy-subrc = 0.
    APPEND <fs_text_store>-zline2 TO it_text.
    PERFORM insert_table USING wa_att_flag p_pernr.
  ELSE.
    APPEND <fs_text_store>-zline2 TO it_text.
  ENDIF.
*line3
  REPLACE '[INSERT TABLE]' IN  <fs_text_store>-zline3 WITH ''.
  IF sy-subrc = 0.
    APPEND <fs_text_store>-zline3 TO it_text.
    PERFORM insert_table USING wa_att_flag p_pernr.
  ELSE.
    APPEND <fs_text_store>-zline3 TO it_text.
  ENDIF.
*line4'
  IF <fs_text_store>-zline4 IS NOT INITIAL.
    REPLACE '[INSERT TABLE]' IN  <fs_text_store>-zline4 WITH ' '.
    IF sy-subrc = 0.
      APPEND <fs_text_store>-zline4 TO it_text.
      PERFORM insert_table USING wa_att_flag p_pernr.
    ELSE.
      APPEND <fs_text_store>-zline4 TO it_text.
    ENDIF.
  ENDIF.
  IF wa_total_amt IS NOT INITIAL.
    READ TABLE it_text_store INTO wa_amount_text WITH KEY zline10 = 'Amount Text' .
    IF sy-subrc NE 0.
      CLEAR wa_error_data.
      MOVE 'Amount Text is not on ZTE_TEXT_STORE table. ' TO wa_error_data-comments.
      APPEND wa_error_data TO i_spreadsheet_errors.
      RETURN.
    ELSE.
      REPLACE '[DATE]' IN  wa_amount_text-zline1 WITH w_date.
      REPLACE '[AMOUNT]' IN  wa_amount_text-zline1 WITH char_total_amt.
      IF wa_admin_name IS NOT INITIAL.
        REPLACE 'your' IN wa_amount_text-zline1 WITH 'the'.
      ENDIF.
      APPEND wa_amount_text-zline1 TO it_text.
    ENDIF.
  ENDIF.
  IF wa_reclass_flag = 'X'.
    READ TABLE it_text_store ASSIGNING <fs_more_text> WITH KEY zline10 = 'Re-Class of Expense' .
    IF sy-subrc NE 0.
      CLEAR wa_error_data.
      MOVE text-022 TO wa_error_data-comments.
      APPEND wa_error_data TO i_spreadsheet_errors.
      RETURN.
    ELSE.
      IF wa_admin_name IS NOT INITIAL.
        REPLACE 'your' IN <fs_more_text>-zline2 WITH 'the'.
      ENDIF.
      APPEND <fs_more_text>-zline2 TO it_text.
    ENDIF.
  ENDIF.
  IF wa_total_amt LT 0.
    APPEND wa_amount_text-zline2 TO it_text.
    APPEND wa_amount_text-zline3 TO it_text.
    APPEND wa_amount_text-zline4 TO it_text.
  ENDIF.
*line5
  IF <fs_text_store>-zline5 IS NOT INITIAL.
    REPLACE '[PHONE]' IN <fs_text_store>-zline5 WITH wa_auditor-phone.
    IF wa_auditor-name IS NOT INITIAL.
      REPLACE text-023 IN <fs_text_store>-zline5 WITH wa_auditor-name.  "the expense compliance help desk
    ENDIF.
    APPEND <fs_text_store>-zline5 TO it_text.
  ENDIF.
*line6
  IF <fs_text_store>-zline6 IS NOT INITIAL.
    APPEND <fs_text_store>-zline6 TO it_text.
  ENDIF.
*line7
  IF <fs_text_store>-zline7 IS NOT INITIAL.
    APPEND <fs_text_store>-zline7 TO it_text.
  ENDIF.
*line8
  IF <fs_text_store>-zline8 IS NOT INITIAL.
    APPEND <fs_text_store>-zline8 TO it_text.
  ENDIF.
*line9
  IF <fs_text_store>-zline9 IS NOT INITIAL.
    APPEND <fs_text_store>-zline9 TO it_text.
  ENDIF.
ENDFORM.                    " create_message
Regards,
Guru.
Edited by: Guru Gompa on Sep 17, 2009 12:38 PM

Similar Messages

  • Cant send mail from iPad and iphone

    Hello:
    I have the same configuration of email accounts in my macbookpro, ipad and iphone, but i cant send email from my ipad and iphone. The message appear in sent folder ( imap ) but the recipient never recive the mail.

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
     Cheers, Tom

  • Cant send mail from my phone

    I can't send mail from my iphonem I can receive it, however

    If you want help, you're going to need to provide a whole lot more information. What is the exact wording of the error messages you've received? Who is your email provider? Does the problem exist on WiF or cellular or both?  What troubleshooting steps have you already taken? Have you deleted the account and added it back? Have you reset your phone by pressing and holding the power and Home buttons until the silver apple appears?
    The more information you can provide, the more likely you are to get the help you need.
    Best of luck.

  • Cant send mail from i phone 3s, with a tiscali account

    I can no longer send mail from my tiscali mail account on my i phone 3s, or my ipad without going through web mail account. please can anyone advise

    Isn't mail.virgin.net the name of the Incoming Server -- the incoming server, which you say is working is set up at Mail Preferences/Accounts/Account Information as to name of the server, Username, and password, along with entries in Mail Preferences/Accounts/Advanced for Port select for the Incoming.
    However, if that is working for you, you must have it correct. For the Outgoing server, isn't the proper name for Virgin services smtp.virgin.net? In Mail Preferences/Accounts/Account Information, click on the arrows beside the name of the SMTP, and choose Edit Server List. Remove all, or all but one of any references to the smtp.virgin.net. Enter anew, or with the remaining server, click on the Advanced Tab there, and choose Use Custom Ports. Then enter the Custom Port to be Port 25, and set the Authentication to None, and have no entries in Username or Password. This is consistent with those specs I can online saying the SMTP does not require Authentication.
    Also click Use this server only. Now if the smtp.virgin.net server is online, it should work.
    Ernie

  • Cant send mail from 1 account

    I have 3 mail accounts on my powerbook, one is bellsouth. When I try to send mail from the bellsouth account, it tells me it can't use the selected server. Bellsouth won't let me use other servers ( including .mac accounts) so if I have to send mail when I'm connected via bellsouth I have to use that account. I'm able to send via bellsouth from my other notebok ( windows) so the problem has to be on the powerbook somewhere. I've deleted the account from mail, and re-added it a few times, all to no avail.
    any suggestsion would be greatly appreciated!
    I'm running the latest build of Tiger.

    changed the port to 25, everything working fine now.

  • TS3899 cant send mail from my i phone

    I can receive mail but can not send or forward mail from my i phone

    If you want help, you're going to need to provide a whole lot more information. What is the exact wording of the error messages you've received? Who is your email provider? Does the problem exist on WiF or cellular or both?  What troubleshooting steps have you already taken? Have you deleted the account and added it back? Have you reset your phone by pressing and holding the power and Home buttons until the silver apple appears?
    The more information you can provide, the more likely you are to get the help you need.
    Best of luck.

  • I cant send mail from my through mail

    I have an email account with virgin, brought it through and i recieve mail but i am not able to send mail, not sure why?

    Isn't mail.virgin.net the name of the Incoming Server -- the incoming server, which you say is working is set up at Mail Preferences/Accounts/Account Information as to name of the server, Username, and password, along with entries in Mail Preferences/Accounts/Advanced for Port select for the Incoming.
    However, if that is working for you, you must have it correct. For the Outgoing server, isn't the proper name for Virgin services smtp.virgin.net? In Mail Preferences/Accounts/Account Information, click on the arrows beside the name of the SMTP, and choose Edit Server List. Remove all, or all but one of any references to the smtp.virgin.net. Enter anew, or with the remaining server, click on the Advanced Tab there, and choose Use Custom Ports. Then enter the Custom Port to be Port 25, and set the Authentication to None, and have no entries in Username or Password. This is consistent with those specs I can online saying the SMTP does not require Authentication.
    Also click Use this server only. Now if the smtp.virgin.net server is online, it should work.
    Ernie

  • Cant send mail from nokia messaging email app

    Hi All,
    i  use the the nokia email messaging app on my Nokia N95 8gb, and when i send an email from my tiscalli  email address to another it do not get to the other email address, but if i send from my hotmail account it sends to the other email addresses ok, would any one know why this is , but if i use my built in email client to send email from my tiscali account it works fine from that one
    any help apprecitated
    I Love my N95 8gb

    See the other discussion:
    /t5/Messaging-Email-and-Browsing/Nokia-Messaging-SMTP-server-down-changed
    Same issue for 2+ weeks with no answer or recommendations from Nokia Tech. Support. I was looking for an upgrade to my N95 but with this frustration not in the issue but in the support, or lack of...Android here I come.

  • Sending mail from alias accounts Sweden. iPhone.???????

    Sending mail from alias accounts Sweden.
    STILL cant send mail from my iPhone via one of my e-mail alias accounts???
    sooo much time has gone by
    so many updates to iPhone and my operating system
    new iPhone on the way here and...
    still cant send mail from my iPhone
    yes i can set up another account through a third party
    NO i dont want this. i expect to be able to use the mac mail i already have...
    anyone know whats going on?
    Have i missed apples solution to this.
    anyone know how its done and...
    please dont say sign up with someone else or create an account with someone else
    For the record yes i can use my mail from my iPhone BUT BUT BUT it shows my ORIGINAL email account address BAD BAD BAD.
    answer anyone!!!

    I have to agree with you , I too was disappointed to see that with IOS 4 on my iphone I still cant send from an alias. This is a feature thats available with the .me web access so why not the iphone mail app? If they can't do it, then at least let me be able to use .me via safari on the iphone and ipad.
    Joe
    Message was edited by: Joe Tye

  • Cant send emails from Mac OS X (10.4.11) using Mail Version 2.1.3 (753.1)

    Cant send emails from Mac OS X (10.4.11) using Mail Version 2.1.3 (753.1)

    Thank you so much for replying!
    I am using site mail (Hostway)
    Mail Servers:
    Incoming (POP) Server:
    pop.synaxismeetings.com
    Outgoing (SMTP) Server:
    smtp.synaxismeetings.com
    Hope that was what you were asking me....pls help!

  • I have just updated lion osx and now i cant send emails from Mail...anyone having that problem?

    I have just updated my lion osx operating system but I now cant send emails from the Mail application...anyone else have this issue ?

    Please describe in detail what happened when you took all the applicable steps in the support article. That's the starting point for any further efforts to solve the problem.

  • Why cant I send mail from the mailapp on My ipad?

    I can't send maila from the mailapp on My ipad air. What can the problem be? Pelare help me :)

    The parameters for the outgoing email server are probably not set correctly in your Mail account in Settings > Mail, Contacts and Calendars.
    Check these carefully to make sure that User name, password, server name, port, and password are correct.
    If you need more help then who is your email provider?

  • Problem sending mail from iPhone

    Hello
    I have a problem sending mails from a Horde account in iPhone 5S. I guess the problem is about configuring the outgoing mail server, but I tried several things and nothing seams to work. The message I get is :
    "Can't send mail. No password provided for account x
    Please go to Mail account settings and enter a password"
    Here goes the detailed configuration of the SMTP:
    SMTP server: mail.account.pt
    User name and Password: xxxxxx
    SSL: OFF
    Authentication: Password
    Server port:587
    What am I doing wrong?
    Thank you for your help!
    Best regards,
    Pedro

    After talking with my e-mail service provider I understood some more configurations, which might help you to help me:
    SMTP Settings:
    Authentication method: encrypted password
    Connection Security: STARTTLS
    How can I copy these settings into my iPhone 5S? In Authetication there's only the following options:
    Password, MD5 challenge-response, HTTP MD5 Digest and NTLM...
    Thank you!
    Best regards,
    Pedro Santos

  • Sending Mail from workflow or updating container elements

    Dear friends,
    I'm new to work flow.
    My requirement: <b>send mail from workflow to a user after dead line is missed</b> I do not want to use messages in 'Latest end' tab. I want to send mail.
    The mail id of the user is determined in the previous step using a FM. How do I use this mail id to send the mail. I thought of using 'Rule' option in 'Send Mail' (and use same FM)but thats not possible. In that case how do I pass the mail id value to the WF container from the FM?
    I also tried this idea:
    created a task with BOR object SELFITEM, method 'SENDTASKDESCRIPTION' .
    *in an activity step used this task and filled the 'Rule' option in notification tab appropriately
    *in this case the WF goes into an error '.....error executing 'sendtaskdescription' .....'
    *i would prefer using the activity step because, the mail has to be sent after a delay
    Is there any other simple method to do this?
    My problem would be solved even if someone can show me how to transfer values from a FM into a WF container.
    Can someone please explain?

    Reposted under different thread

  • Upgraded to ios6 on ipad2 now I cant send messages from imessage.

    Upgraded to ios6 on ipad2 now I cant send messages from imessage. Any fix? I've rebooted/powered down and on again and in Settings turned messages off and on again. Still won't work...

    I did speak a bit too soon it seems - while I can now send messages again from my iPad 2, it still doesn't show me messages that were sent to me via my telephone number. Which is weird, because in the "You can be reached by iMessage at:" setting I do have my telephone number checked.
    At this moment I have set my iPad 2 and iPhone 4's "Start new conversations from:" setting to my Apple ID e-mail address. This way at least I can send messages *and* receive messages if people don't use my telephone number to send me messages...
    So yes, you should probably wait a while before restoring your iPad 2 - it doesn't fix things completely.

Maybe you are looking for