Retrieve multiple e-mail address and send mail to multiple recipients

Hello,
I wonder if somebody could help me...at least with the clue to do the following.
I have a form, with a textarea , where the people should put the e-mail addreses of all the people that later will receive all the form data via e-mail..
I do not know how to retrieve all this e-mail addresses from the textarea (format?) and then how to send the e-mail to multiple recipients .
It works for one...but I do not know how to do this for several recipients...
could you please help?

There is a setReceiptants method on the Message object.
http://java.sun.com/products/javamail/javadocs/javax/mail/Message.html#setRecipients(javax.mail.Message.RecipientType,%20javax.mail.Address[])
You will need to create an array of Addresses to feed it (just make space, commas, and semi-colons be tokens in your string and iterate it to create the address array)
travis (at) overwrittenstack.com

Similar Messages

  • Adding e-mail address to "Send mail as"

    In Gmail I was able to add an e-mail address to "Send mail as".  I am able to pick this new address when I am on a computer but not on my iPad.  How do I add a "Send mail as" address to the mail program on my iPad?  The email address I am trying to add is not an account but is a group name created with the gmail address as a member.

    try to go to https://m.google.com/sync/settings and enable option "send mail as" for you device

  • Ban Outgoing e-mail addresses and delay mail send

    1. We want to limit users ability to send outgoing e-mails to particular e-mail addresses.
    (Either by use of blacklist (by domain or specific e-mail address) or if necessary by limiting it to addressbook addresses. We would prefer use of blacklist.
    2. We also want to automatically hold all e-mails until either
    a) manually released or
    b) if not manually released, e-mail held for 1 hour (- allows mail to be retrieved if "accidentally pressed send" events occur ).
    Any ideas for add-ons or other suggestions please
    (Mac Mail and Entourage in use, but could standardise to only one)

    It may be a transaction message. If so when you check tomorrow, check on this chart. See if you see your error listed. http://www.blackberry.com/btsc/KB02960
    Message Edited by jmrmb80 on 09-17-2008 11:07 PM
    If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
    Remember to resolve your thread by clicking Accepted Solution.

  • Does "Adobe Send" memorize the e-mail addresses I send to repeatedly, as "Send Now" did?

    In Adobe "Send Now", it was much easier to send a personalized link to multiple e-mail addresses.  Plus, once I used and e-mail address, it memorized it.  I am a university professor at a school where we use the Exchange type of account.  How can I associate my Adobe Send e-mail field with my Outlook Exchange account?  Then, once I type in one personalized address, neither the return key or the space bar, start a new address field in the way which Adobe Send Now did.  Adobe Send Now did everything above except associate with my Outlook Exchange account o the University.

    Hi saxoteacher,
    Yes in Adobe Send you can send a personalized link to multiple e-mail addresses.The e-mail addresses will not be memorized but will be saved in sent items.
    Our engineering team is working on integrating Adobe Send plug-in with outlook exchange.To distinguish between the email addresses you need to type the semicolon.
    Regards
    Florence

  • My husband and I share the same e-mail address, and computer. We both have iPhones now and want to have our own individual Apple ids, but have one iTunes account is it possible?

    My husband and I share a computer, have the same e-mail address, and have one iTunes account. Can we have different Apple ids on our individual iPhones or do we have to use the same one?

    For purchasing from the iTunes and App stores, you will probably want to share the same Apple ID.  But for other services such as iMessage, FaceTime and iCloud, you should use separate IDs.  For example, if you use the same ID for iMessage you'll start getting each other's text messages.  If you use the same ID for FaceTime you may get each other's FaceTime calls.  If you set up the same iCloud account with the same ID, and data you sync with the account will be merged and the merged data will appear on all devices (i.e., you'll end up with each other's contacts and calendar events).  You would also be sharing the same 5GB of free iCloud storage rather than each having your own 5GB of space.
    This article may be of interest in this regard: http://gigaom.com/apple/itunes-101-multiple-devices-one-itunes-account/.  Also, see this video:http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l.

  • I changed my e-mail address, but everytime I try to do an update on my imac it shows my OLD e-mail address and not the one that I am logged in with, I have tried to rectify this and cant.

    can you please help me to sort this, I changed my e-mail address from [email protected], I have delleted this e-mail now. My new one, [email protected] is now my registered one but everytime I try to do an update in itunes it shows my old e-mail address and it wont use my new one, I own an imac, ipad and iphone, my iphone and ipad are perfectly fine working with [email protected] but not my imac, can you please help me to sort this out. x

    Hi Florafromco,
    You can view your iTunes Store account and request assistance by following the instructions below:
    iTunes Store & Mac App Store: Seeing your purchase history and order numbers
    http://support.apple.com/kb/ht2727
    I hope this information helps ....
    The following article will provide a little more information regarding using multiple Apple ID's:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    I hope this information helps ....
    Have a great day!
    Have a great day!
    - Judy

  • Convertion of Smart form to pdf and sending mail to vendor for PO

    Hello all,
    I have modified a standard PO Smartform and running it through ME23N.
    In this i have to convert it to a pdf file and then send it through mail to the vendor.
    I have found out FMs'CONVERT_OTF'and
    'SO_NEW_DOCUMENT_ATT_SEND_API1'
    to convert it and send mail. But can u tell me how to go about using it.
    As i am using a standard program do i have to copy this prog to zprog and then call the fm out there. I am not sure.
    Thanks
    Salil

    Hi,
    Here is the sample code.If you find this as useful,kindly reward points by clicking the star on the left of reply.
    Internal Table declarations
    DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
          i_tline TYPE TABLE OF tline WITH HEADER LINE,
          i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,
          i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    Objects to send mail.
          i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
          i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
    Work Area declarations
          w_objhead TYPE soli_tab,
          w_ctrlop TYPE ssfctrlop,
          w_compop TYPE ssfcompop,
          w_return TYPE ssfcrescl,
          w_doc_chng typE sodocchgi1,
          w_data TYPE sodocchgi1,
          w_buffer TYPE string,"To convert from 132 to 255
    Variables declarations
          v_form_name TYPE rs38l_fnam,
          v_len_in LIKE sood-objlen,
          v_len_out LIKE sood-objlen,
          v_len_outn TYPE i,
          v_lines_txt TYPE i,
          v_lines_bin TYPE i.
    call function 'SSF_FUNCTION_MODULE_NAME'
         exporting
              formname           = 'ZZZ_TEST2'
         importing
              fm_name            = v_form_name
         exceptions
              no_form            = 1
              no_function_module = 2
              others             = 3.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    w_ctrlop-getotf = 'X'.
    w_ctrlop-no_dialog = 'X'.
    w_compop-tdnoprev = 'X'.
    CALL FUNCTION v_form_name
         EXPORTING
              control_parameters = w_ctrlop
              output_options     = w_compop
              user_settings      = 'X'
         IMPORTING
              job_output_info    = w_return
         EXCEPTIONS
              formatting_error   = 1
              internal_error     = 2
              send_error         = 3
              user_canceled      = 4
              OTHERS             = 5.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    i_otf[] = w_return-otfdata[].
    CALL FUNCTION 'CONVERT_OTF'
         EXPORTING
              format                = 'PDF'
              max_linewidth         = 132
         IMPORTING
              bin_filesize          = v_len_in
         TABLES
              otf                   = i_otf
              lines                 = i_tline
         EXCEPTIONS
              err_max_linewidth     = 1
              err_format            = 2
              err_conv_not_possible = 3
              OTHERS                = 4.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Convert PDF from 132 to 255.
    LOOP AT i_tline.
    Replacing space by ~
      TRANSLATE i_tline USING ' ~'.
      CONCATENATE w_buffer i_tline INTO w_buffer.
    ENDLOOP.
    Replacing ~ by space
    TRANSLATE w_buffer USING '~ '.
    DO.
      i_record = w_buffer.
    Appending 255 characters as a record
      APPEND i_record.
      SHIFT w_buffer LEFT BY 255 PLACES.
      IF w_buffer IS INITIAL.
        EXIT.
      ENDIF.
    ENDDO.
    Refresh: i_reclist,
             i_objtxt,
             i_objbin,
             i_objpack.
    clear    w_objhead.
    Object with PDF.
    i_objbin[] = i_record[].
    DESCRIBE TABLE i_objbin LINES v_lines_bin.
    Object with main text of the mail.
    i_objtxt = 'Find attached the output of the smart form.'.
    APPEND i_objtxt.
    i_objtxt = 'Regards,'.
    APPEND i_objtxt.
    i_objtxt = 'J.Jayanthi'.
    APPEND i_objtxt.
    DESCRIBE TABLE i_objtxt LINES v_lines_txt.
    Document information.
    w_doc_chng-obj_name = 'Smartform'.
    w_doc_chng-expiry_dat = sy-datum + 10.
    w_doc_chng-obj_descr = 'Smart form output'.
    w_doc_chng-sensitivty = 'F'. "Functional object
    w_doc_chng-doc_size = v_lines_txt * 255.
    Pack to main body as RAW.
    Obj. to be transported not in binary form
    CLEAR i_objpack-transf_bin.
    Start line of object header in transport packet
    i_objpack-head_start = 1.
    Number of lines of an object header in object packet
    i_objpack-head_num = 0.
    Start line of object contents in an object packet
    i_objpack-body_start = 1.
    Number of lines of the object contents in an object packet
    i_objpack-body_num = v_lines_txt.
    Code for document class
    i_objpack-doc_type = 'RAW'.
    APPEND i_objpack.
    Packing as PDF.
    i_objpack-transf_bin = 'X'.
    i_objpack-head_start = 1.
    i_objpack-head_num = 1.
    i_objpack-body_start = 1.
    i_objpack-body_num = v_lines_bin.
    i_objpack-doc_type = 'PDF'.
    i_objpack-obj_name = 'Smartform'.
    CONCATENATE 'Smartform_output' '.pdf'
    INTO i_objpack-obj_descr.
    i_objpack-doc_size = v_lines_bin * 255.
    APPEND i_objpack.
    Document information.
    CLEAR i_reclist.
    e-mail receivers.
    i_reclist-receiver = '[email protected]'.
    i_reclist-express = 'X'.
    i_reclist-rec_type = 'U'. "Internet address
    APPEND i_reclist.
    Sending mail.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
         EXPORTING
              document_data              = w_doc_chng
              put_in_outbox              = 'X'
         TABLES
              packing_list               = i_objpack
              object_header              = w_objhead
              contents_hex               = i_objbin
              contents_txt               = i_objtxt
              receivers                  = i_reclist
         EXCEPTIONS
              too_many_receivers         = 1
              document_not_sent          = 2
              document_type_not_exist    = 3
              operation_no_authorization = 4
              parameter_error            = 5
              x_error                    = 6
              enqueue_error              = 7
              OTHERS                     = 8.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • In Safari 5.0.6 how do I turn off the auto save to contact list of addresses I send mail to?t

    How do I turn off the auto saving to my contact list of every e-mail address I send a note to?

    It might help knowing that Apple uses the term "Versions" instead of AutoSave. I have not yet found how to turn it off, but in the meantime, here's how to delete "Previous Versions":
    Do one of the following:
    If you have unsaved changes in a document, choose File > Revert To, and then click Previous Save.
    Hold the pointer to the right of the document title, click the downward-facing arrow, and then choose Browse All Versions from the pop-up menu.
    Click a gray tick mark along the timeline on the right to display various versions of your document.
    Do one of the following:
    To restore your document to the state of a particular version, display that version, and then click Restore.
    To delete the displayed older version, hold the pointer to the right of its title, click the downward-facing arrow, and then choose Delete This Version. To delete all older versions, press the Option key while holding the pointer to the right of the older version’s title, click the arrow, and then choose Delete Old Versions.
    To create a new untitled document that duplicates a particular version, display the version, press the Option key, and then click “Restore a Copy.”
    To leave your document in its current state, click Done.

  • E mail address and contact list has been hacked

    Someone gained access to my e-mail address and contact list and sent out an e-mail to all of my contacts. Is there a way to repair this so they don't do it again?

    Go to Settings>iTunes and App Stores and sign out and sign back
    Same for:
    - Settings>iCloud
    - Settings>Game Center
    - SettingsFaceTime
    - Settings>Messages>Send and Receive

  • Why does my e-mail address and not my name/number appear on recipients phones when I text them?

    When I send text messages recipients are seeing my e-mail address and not my name/number.  Is there something I need to change in "Settings" to identify my number as me (by name) and not to see me as my e-mail address?  Heeeeeeeeelllllllppppppppp.............

    settings->messages and turn off iMessages
    though every time it use the email it's because it's not sendt as a sms but over the internet
    so you saving money

  • I am sending a mass e-mail out to my mailing list and the mail program gets locked up and stops responding before sending the e-mail?

    I am sending a mass e-mail out to my mailing list and the mail program gets locked up and stops responding before sending the e-mail.  How can I fix this issue?  I have done it in the past successfully.

    Holly, how many are you sending to?
    Are you using the To; or BCC: field?
    Individual names or Groups?
    I suspect one malformed address at the moment without much else to go on.

  • I need to verify my Apple ID. i know my e-mail address and the password, but what websit do I go to to check for the e-mail. I have a older laptop and my iTunes is 9.1.1 or something and Apple 10.4.11 so how do I do this. Thanks.

    i know my e-mail address and the password, but what website do I go to to check for the e-mail. I have a older laptop and my iTunes is 9.1.1 or something and Apple 10.4.11 so how do I do this. Thanks.

    i know my e-mail address and the password, but what website do I go to to check for the e-mail. I have a older laptop and my iTunes is 9.1.1 or something and Apple 10.4.11 so how do I do this. Thanks.

  • I setup my iCloud account on my iPhone 5 with the wrong e mail address, and I don't remmber the password, I reset my tel and erase all the information on my iPhone in order to try to set up a new iCloud account but when I restart I have a problem aga

    I setup my iCloud account on my iPhone 5 with the wrong e mail address, and I don't remmber the password, I reset my tel and erase all the information on my iPhone in order to try to set up a new iCloud account but when I restart I have a problem agaIn , they ask me to put again the old iCloud user account and password, what I can do in order to start the phone when I don't have the correct e mail and I don't remmber the passcode.?

    I have the same problem as the emails go to my iCloud account that I cannot access!!! I cannot answer the security questions as someone else must have set up my iCloud account. Nothing seems to work. It would be great if someone has some ideas as what can be done to recover the situation?

  • I have three different e-mail addresses, and need to receive the incoming e-mails from the three sources.  How do I enable my iPhone to do it? Tks in advance.

    I have three different e-mail addresses, and need to receive the incoming e-mails from the three sources into my iPhone (it's presently receiving msgs from only one of them).  How do I enable my iPhone to do it? Tks in advance.

    Many thanks for your help!

  • HT204053 how can i delete icloud e-mail address and create another one?

    i made a mistake when created the icloud e-mail address and want to replace that with some other icloud e-mail (not existing yet). how can i do that?

    You can't, without setting up a whole new iCloud account attached to another AppleID.
    You can setup an email alias instead: http://help.apple.com/icloud/#mm6b1a490a

Maybe you are looking for