Sending a mail without spool in abap

hi all,
how to send a mail without going to spool request?
please tell me any function modules to get the functionality?
thanks in advance.

Please try out this code. Here we send the pdf that we have converted from smartform. If this is not your case please inform me. But the logic is permanent - simply pass the string which holds the pdf data.
*some data
*please check which You need there is some thing that is not *usefull
data lv_string type string.
data main_text      type bcsy_text.
data binary_content type solix_tab.
data size           type so_obj_len.
* event handler for data retrieval
data: l_devtype              type rspoptype,
      l_function_module_name type rs38l_fnam.
data: ls_output_options     type ssfcompop,
      ls_control_parameters type ssfctrlop.
data: ls_output_data type ssfcrescl.
* generated result: HTML with embedded CSS
data: ls_xmloutput type ssfxmlout,
      lt_html_raw  type tsfixml.
data: l_xstring    type xstring,    "needed for HTTP response
      l_xlength    type i,
      l_html_xstring   type xstring.
data: l_pdf_xstring  type xstring,
      lt_lines       type table of tline,
      ls_line        type tline,
      l_pdf_len      type i.
data:
      solix TYPE solix,
      soli type soli.
DATA  send_request       TYPE REF TO cl_bcs.
DATA  text               TYPE bcsy_text.
DATA  document           TYPE REF TO cl_document_bcs.
DATA  recipient          TYPE REF TO if_recipient_bcs.
DATA  sent_to_all        TYPE os_boolean.
DATA  pdf_content        TYPE solix_tab.
DATA  lp_pdf_size        TYPE so_obj_len.
*here we make the smartform and convert it to pdf
    ls_control_parameters-no_dialog = 'X'.
    ls_control_parameters-getotf    = 'X'.
    CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
      EXPORTING
        i_language                   = sy-langu
*       i_application                = 'SAPDEFAULT'
      IMPORTING
        e_devtype                    = l_devtype
      EXCEPTIONS
        no_language                  = 1
        language_not_installed       = 2
        no_devtype_found             = 3
        system_error                 = 4
        others                       = 5.
    IF sy-subrc NE 0.
      MESSAGE ID sy-msgid type sy-msgty number sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ls_output_options-tdprinter = l_devtype.
    CALL FUNCTION l_function_module_name
         EXPORTING
*                 archive_index        =
*                 archive_parameters   =
                  control_parameters   = ls_control_parameters
*                  mail_appl_obj        = APPL_OBJECT_ID
*                  mail_recipient       = RECIPIENT_ID
*                  mail_sender          = SENDER_ID
                  output_options       = ls_output_options
                  user_settings        = space
                  iv_werks              = i_werks
                  iv_datum              = i_date
         IMPORTING
*                 document_output_info =
                    job_output_info      = ls_output_data
*                 job_output_options   =
         TABLES
                    im_matnr          = application->IT_MATERIAL
         EXCEPTIONS
                    formatting_error     = 1
                    internal_error       = 2
                    send_error           = 3
                    user_canceled        = 4
                    others               = 5.
    IF sy-subrc NE 0.
      MESSAGE ID sy-msgid type sy-msgty number sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    CALL FUNCTION 'CONVERT_OTF'
         EXPORTING
           format                      = 'PDF'
*            MAX_LINEWIDTH               = 132
*            ARCHIVE_INDEX               = ' '
*            COPYNUMBER                  = 0
         IMPORTING
           bin_filesize                = l_pdf_len
           bin_file                    = l_pdf_xstring       " binary file
         TABLES
           otf                         = ls_output_data-otfdata
           lines                       = lt_lines
         EXCEPTIONS
           err_max_linewidth           = 1
           err_format                  = 2
           err_conv_not_possible       = 3
           err_bad_otf                 = 4
           others                      = 5.
    IF sy-subrc NE 0.
      MESSAGE ID sy-msgid type sy-msgty number sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
*and here we mail it
      send_request = cl_bcs=>create_persistent( ).
      lp_pdf_size = XSTRLEN( l_pdf_xstring ).
      pdf_content = cl_document_bcs=>xstring_to_solix( ip_xstring = l_pdf_xstring ).
      document = cl_document_bcs=>create_document( i_type    = 'PDF'
                                                   i_hex     = pdf_content
                                                   i_length  = lp_pdf_size
                                                   i_subject = 'Test Message' ).
      send_request->set_document( document ).
      recipient = cl_cam_address_bcs=>create_internet_address(
              i_address_string = 'YOUR-EMAIL-HERE' ).
      send_request->add_recipient( i_recipient = recipient ).
      sent_to_all = send_request->send( i_with_error_screen = 'X' ).
      COMMIT WORK.

Similar Messages

  • E-mailing Job Spool via ABAP - extra confirm message???

    Hello,
    I have coded ABAP program that creates background job with spool recipients. The spool is than sent over internet to specified address. What I also get another confirmation e-mail that the spool to sent, and I am not sure how to get rid of it. 
    Would anybody know how to do it?
    Thanks,
    Alex
    Below is my code:
    data: JOB_NAME         LIKE TBTCO-JOBNAME,
            JOB_NR           LIKE TBTCO-JOBCOUNT,
            PARAMS           LIKE PRI_PARAMS,
            VALID            TYPE C,
            JOB_RELEASED     TYPE C,
            u_email          like adr6-smtp_addr.
      DATA RECIPIENT TYPE SWC_OBJECT.
      DATA RECIPIENT_OBJ LIKE SWOTOBJID.
      SWC_CONTAINER CONTAINER.
      clear u_email.
      SELECT SINGLE adr6~smtp_addr INTO u_email FROM adr6
          INNER JOIN usr21
          ON usr21persnumber = adr6persnumber
          AND usr21addrnumber = adr6addrnumber
          WHERE usr21~bname = sy-uname.
    Generate an object reference to a recipient object
      SWC_CREATE_OBJECT RECIPIENT 'RECIPIENT' SPACE.
    Write the import parameters for method
    recipient.createaddress into the container
    and empty the container
      SWC_CLEAR_CONTAINER CONTAINER.
    Set address element (internal user 'JSMITH')
      SWC_SET_ELEMENT CONTAINER 'AddressString' u_email.
    Set address type (external address)
      SWC_SET_ELEMENT CONTAINER 'TypeId' 'U'.
    Call the method recipient.createaddress
      SWC_CALL_METHOD RECIPIENT 'CreateAddress' CONTAINER.
    Issue any error message generated by a method exception
      IF SY-SUBRC NE 0.
        WRITE:/ 'ERROR: Address can not be created'.
        EXIT.
      ENDIF.
      SWC_CALL_METHOD RECIPIENT 'Save' CONTAINER.
      SWC_OBJECT_TO_PERSISTENT RECIPIENT RECIPIENT_OBJ.
    Recipient has been generated and is ready for use in a
    background job
      JOB_NAME  = 'Z10_TEST123'.
    *open the background job and get a job number
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          JOBNAME          = JOB_NAME
        IMPORTING
          JOBCOUNT         = JOB_NR
        EXCEPTIONS
          CANT_CREATE_JOB  = 1
          INVALID_JOB_DATA = 2
          JOBNAME_MISSING  = 3
          OTHERS           = 4.
      IF SY-SUBRC NE 0.
        WRITE:/ 'ERROR: Background job can not be created'.
        EXIT.
      ELSE.
    *submit job with all the selection screen params...
        SUBMIT Z_TEST_SPOOL
              WITH SALENUM = SALENUM
              WITH sp_eml  = ' '
              USER SY-UNAME
              VIA JOB JOB_NAME NUMBER JOB_NR
              TO SAP-SPOOL
              WITHOUT SPOOL DYNPRO
              AND RETURN.
        IF SY-SUBRC NE 0.
          WRITE:/ 'ERROR: Background job can not be submited'.
          exit.
        ENDIF.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            JOBCOUNT             = JOB_NR
            JOBNAME              = JOB_NAME
            STRTIMMED            = 'X'    " start immediatly
            RECIPIENT_OBJ        = RECIPIENT_OBJ
          IMPORTING
            JOB_WAS_RELEASED     = JOB_RELEASED
          EXCEPTIONS
            CANT_START_IMMEDIATE = 1
            INVALID_STARTDATE    = 2
            JOBNAME_MISSING      = 3
            JOB_CLOSE_FAILED     = 4
            JOB_NOSTEPS          = 5
            JOB_NOTEX            = 6
            LOCK_FAILED          = 7
            OTHERS               = 8.
        IF SYST-SUBRC <> 0.
          WRITE:/ 'ERROR: Background job can not be closed'.
          exit.
        ENDIF.
      ENDIF.

    Try adding
      swc_clear_container container.     
      swc_set_element container
                      'Deliver'
                      space.
      swc_call_method recipient  
                      'SetDeliver'
                      container.
    above SWC_CALL_METHOD RECIPIENT 'Save' CONTAINER in ur code.
    <b>Correction:</b> Mentioned wrong method in the above code, Please change 'Deliver' and 'SetDeliver' with 'StatusInfoByMail' and 'SetStatusInfoByMail' respectively.
    Regards
    Sridhar
    Message was edited by: Sridhar K

  • How to send a mail in webdynpro for abap

    Hi experts,
    Am working on webdynpro for abap. My requirement is to send a mail to end-user, he 'l fill that form and send it to me back. once I received that mail I 've to convert that pdf into xml and 've to parse that xml file and pass those values to bapi (everything in webdynpro). how can i proceed, its urgent to me. I dont want exact answer jst some inputs to proceed will help to me thank you.

    I think it's easier to accomplish with workflow.
    You can send workitems and receive them. Search sap help for functionality on offline approval, you can use a lot of the functionality of that one.
    Regard, Rob Dielemans

  • How to automatically send the mail without popping for send

    Hi,
    I am providing proper values in system parameters of report6. viz.
    Desformat=pdf
    Destype=mail
    mode=bitmap
    desname=Valid email id
    I am using MS MAPI (Microsoft Outlook)
    When I run the report, I get the composed mail with the pdf attachment. When I press the SEND button of the composed mail, I shall be able to send the mail.
    Is there a way to SEND the mail automatically through reports?
    Regds
    Prakash H L

    hi ,
    Try running your report in batch mode, provide batch=yes on the command line for your report. This will suppress any user interaction and will mail the report without the need for the user to click on the send button of the mail composer.
    Regards
    Oracle Reports Team.

  • Send the mail without opening mail form

    Hello,
    I want to send the report output thro' mail without opening the mail form. This is needed as the report need to be scheduled to execute at particular time. The mailid will be got from the DB.
    I noticed that the mailid needs to be available in the mailer's addressbook. Thenonly report can send the mail.
    Does it mean, all the mailid's available in the DB needs to be part of addressbook? I need help on this.
    thanks in advance,
    Regards,
    Vani.

    Hi,
    It is not necessary to have all the mailid's available in the DB needs to be part of addressbook. If you set desname to mailTo address, that mailid is "TO" address of your mail output.
    Thanks,
    Puvan.

  • PHP Form Sending E-mail without inputs in Safari

    Hi everyone. I'm having a problem and can't seem to find what the problem is. My form works fine in chrome and firefox but not safari. Below is my code. Please let me know if you can help.
    HTML Code
    <form id="form_280313" class="appnitro" method="post" action="email.php" enctype="text/html">
    <!--<div class="form_description">
    <h2>Untitled Form</h2>
    <p>This is your form description. Click here to edit.</p>
    </div>      -->
    <ul >
    <li id="li_1" >
    <label class="description" for="booked_by">Booked By: </label>
    <div>
    <input id="booked_by" name="booked_by" class="element text medium" type="text" maxlength="255" value=""/>
    </div>
    </li>      <li id="li_16" >
    <label class="description" for="element_16_1">Proposed Rental Date </label>
    <span>
    <input id="element_16_1" name="element_16_1" class="element text" size="2" maxlength="2" value="Month" type="text"> /
    <label for="element_16_1">MM</label>
    </span>
    <span>
    <input id="element_16_2" name="element_16_2" class="element text" size="2" maxlength="2" value="Day" type="text"> /
    <label for="element_16_2">DD</label>
    </span>
    <span>
    <input id="element_16_3" name="element_16_3" class="element text" size="4" maxlength="4" value="Year" type="text">
    <label for="element_16_3">YYYY</label>
    </span>
    <span id="calendar_16">
    <img id="cal_img_16" class="datepicker" src="form/calendar.gif" alt="Pick a date.">
    </span>
    <script type="text/javascript">
    Calendar.setup({
    inputField      : "element_16_3",
    baseField : "element_16",
    displayArea : "calendar_16",
    button      : "cal_img_16",
    ifFormat      : "%B %e, %Y",
    onSelect      : selectDate
    </script>
    </li>      <li id="li_22" >
    <label class="description" for="hours">Rental Hours </label>
    <span>
    <input id="element_22_1" name="hours" class="element checkbox" type="checkbox" value="Half Day - 8am - 12pm" />
    <label class="choice" for="element_22_1">Half Day - 8am - 12pm</label>
    <input id="element_22_2" name="hours" class="element checkbox" type="checkbox" value="Half Day - 1pm - 4pm" />
    <label class="choice" for="element_22_2">Half Day - 1pm - 4pm</label>
    <input id="element_22_3" name="hours" class="element checkbox" type="checkbox" value="Full Day - 8am - 4pm" />
    <label class="choice" for="element_22_3">Full Day - 8am - 4pm</label>
    <input id="element_22_4" name="hours" class="element checkbox" type="checkbox" value="Evening after 4pm" />
    <label class="choice" for="element_22_4">Evening after 4pm</label>
    <input id="element_22_5" name="hours" class="element checkbox" type="checkbox" value="Weekend" />
    <label class="choice" for="element_22_5">Weekend</label>
    </span>
    </li>      <li id="li_2" >
    <label class="description" for="attendees">Number of Attendees </label>
    <div>
    <input id="element_2" name="attendees" class="element text medium" type="text" maxlength="255" value=""/>
    </div>
    </li>      <li id="li_17" >
    <label class="description" for="theme">Theme of workshop </label>
    <div>
    <select class="element select medium" id="element_17" name="theme">
    <option value=""></option>
    <option value="1" selected="selected" >(Select one)</option>
    <option value="Lecture" >Lecture</option>
    <option value="Lab" >Lab</option>
    <option value="Both" >Both</option>
    </select>
    </div>
    </li>      <li id="li_3" >
    <label class="description" for="surgeon">Contact Name </label>
    <div>
    <input id="element_3" name="surgeon" class="element text medium" type="text" maxlength="255" value=""/>
    </div>
    </li>      <li id="li_4" >
    <label class="description" for="surgeon_contact">Contact Info </label>
    <div>
    <input id="element_4" name="surgeon_contact" class="element text medium" type="text" maxlength="255" value=""/>
    </div>
    </li>      <li id="li_5" >
    <label class="description" for="lab_procedures">Please list proposed lab procedures </label>
    <div>
    <textarea id="element_5" name="lab_procedures" class="element textarea medium"></textarea>
    </div>
    </li>      <li id="li_6" >
    <label class="description" for="specimens">Specimens (Please list if needed) </label>
    <div>
    <textarea id="element_6" name="specimens" class="element textarea medium"></textarea>
    </div>
    </li>      <li id="li_7" >
    <label class="description" for="instruments">Instrumentation </label>
    <div>
    <textarea id="element_7" name="instruments" class="element textarea medium"></textarea>
    </div>
    </li>      <li id="li_18" >
    <label class="description" for="carm">C-Arm </label>
    <div>
    <select class="element select medium" id="element_18" name="carm">
    <option value=""></option>
    <option value="1" selected="selected" >(Select one)</option>
    <option value="Yes" >Yes</option>
    <option value="No" >No</option>
    </select>
    </div>
    </li>      <li id="li_19" >
    <label class="description" for="conference_room">Conference Room </label>
    <div>
    <select class="element select medium" id="element_19" name="conference_room">
    <option value=""></option>
    <option value="1" selected="selected" >(Select one)</option>
    <option value="Yes" >Yes</option>
    <option value="No" >No</option>
    </select>
    </div>
    </li>      <li class="section_break">
    <label class="description" for="conference_room">A/V Needs </label>
    </li>      <div>
    <textarea name="avneeds" id="avneeds" cols="45" rows="5"></textarea>
    </div>
    </div>
    </li>      <li id="li_9" >
    <label class="description" for="food">Food & Beverage (if applicable) </label>
    <div>
    <textarea id="element_9" name="food" class="element textarea medium"></textarea>
    </div>
    </li>      <li id="li_14" >
    <label class="description" for="billing">Billing Address </label>
    <div>
    <input id="element_14_1" name="billing" class="element text large" value="" type="text">
    <label for="element_14_1">Street Address</label>
    </div>
    <div>
    <input id="element_14_2" name="billing1" class="element text large" value="" type="text">
    <label for="element_14_2">Address Line 2</label>
    </div>
    <div class="left">
    <input id="element_14_3" name="billing2" class="element text medium" value="" type="text">
    <label for="element_14_3">City</label>
    </div>
    <div class="right">
    <input id="element_14_4" name="billing3" class="element text medium" value="" type="text">
    <label for="element_14_4">State / Province / Region</label>
    </div>
    <div class="left">
    <input id="element_14_5" name="billing4" class="element text medium" maxlength="15" value="" type="text">
    <label for="element_14_5">Postal / Zip Code</label>
    </div>
    <div class="right">
    <select class="element select medium" id="element_14_6" name="billing5">
    <option value="" selected="selected"></option>
    <option value="Afghanistan" >Afghanistan</option>
    <option value="Albania" >Albania</option>
    <option value="Algeria" >Algeria</option>
    <option value="Andorra" >Andorra</option>
    <option value="Antigua and Barbuda" >Antigua and Barbuda</option>
    <option value="Argentina" >Argentina</option>
    <option value="Armenia" >Armenia</option>
    <option value="Australia" >Australia</option>
    <option value="Austria" >Austria</option>
    <option value="Azerbaijan" >Azerbaijan</option>
    <option value="Bahamas" >Bahamas</option>
    <option value="Bahrain" >Bahrain</option>
    <option value="Bangladesh" >Bangladesh</option>
    <option value="Barbados" >Barbados</option>
    <option value="Belarus" >Belarus</option>
    <option value="Belgium" >Belgium</option>
    <option value="Belize" >Belize</option>
    <option value="Benin" >Benin</option>
    <option value="Bhutan" >Bhutan</option>
    <option value="Bolivia" >Bolivia</option>
    <option value="Bosnia and Herzegovina" >Bosnia and Herzegovina</option>
    <option value="Botswana" >Botswana</option>
    <option value="Brazil" >Brazil</option>
    <option value="Brunei" >Brunei</option>
    <option value="Bulgaria" >Bulgaria</option>
    <option value="Burkina Faso" >Burkina Faso</option>
    <option value="Burundi" >Burundi</option>
    <option value="Cambodia" >Cambodia</option>
    <option value="Cameroon" >Cameroon</option>
    <option value="Canada" >Canada</option>
    <option value="Cape Verde" >Cape Verde</option>
    <option value="Central African Republic" >Central African Republic</option>
    <option value="Chad" >Chad</option>
    <option value="Chile" >Chile</option>
    <option value="China" >China</option>
    <option value="Colombia" >Colombia</option>
    <option value="Comoros" >Comoros</option>
    <option value="Congo" >Congo</option>
    <option value="Costa Rica" >Costa Rica</option>
    <option value="Côte d'Ivoire" >Côte d'Ivoire</option>
    <option value="Croatia" >Croatia</option>
    <option value="Cuba" >Cuba</option>
    <option value="Cyprus" >Cyprus</option>
    <option value="Czech Republic" >Czech Republic</option>
    <option value="Denmark" >Denmark</option>
    <option value="Djibouti" >Djibouti</option>
    <option value="Dominica" >Dominica</option>
    <option value="Dominican Republic" >Dominican Republic</option>
    <option value="East Timor" >East Timor</option>
    <option value="Ecuador" >Ecuador</option>
    <option value="Egypt" >Egypt</option>
    <option value="El Salvador" >El Salvador</option>
    <option value="Equatorial Guinea" >Equatorial Guinea</option>
    <option value="Eritrea" >Eritrea</option>
    <option value="Estonia" >Estonia</option>
    <option value="Ethiopia" >Ethiopia</option>
    <option value="Fiji" >Fiji</option>
    <option value="Finland" >Finland</option>
    <option value="France" >France</option>
    <option value="Gabon" >Gabon</option>
    <option value="Gambia" >Gambia</option>
    <option value="Georgia" >Georgia</option>
    <option value="Germany" >Germany</option>
    <option value="Ghana" >Ghana</option>
    <option value="Greece" >Greece</option>
    <option value="Grenada" >Grenada</option>
    <option value="Guatemala" >Guatemala</option>
    <option value="Guinea" >Guinea</option>
    <option value="Guinea-Bissau" >Guinea-Bissau</option>
    <option value="Guyana" >Guyana</option>
    <option value="Haiti" >Haiti</option>
    <option value="Honduras" >Honduras</option>
    <option value="Hong Kong" >Hong Kong</option>
    <option value="Hungary" >Hungary</option>
    <option value="Iceland" >Iceland</option>
    <option value="India" >India</option>
    <option value="Indonesia" >Indonesia</option>
    <option value="Iran" >Iran</option>
    <option value="Iraq" >Iraq</option>
    <option value="Ireland" >Ireland</option>
    <option value="Israel" >Israel</option>
    <option value="Italy" >Italy</option>
    <option value="Jamaica" >Jamaica</option>
    <option value="Japan" >Japan</option>
    <option value="Jordan" >Jordan</option>
    <option value="Kazakhstan" >Kazakhstan</option>
    <option value="Kenya" >Kenya</option>
    <option value="Kiribati" >Kiribati</option>
    <option value="North Korea" >North Korea</option>
    <option value="South Korea" >South Korea</option>
    <option value="Kuwait" >Kuwait</option>
    <option value="Kyrgyzstan" >Kyrgyzstan</option>
    <option value="Laos" >Laos</option>
    <option value="Latvia" >Latvia</option>
    <option value="Lebanon" >Lebanon</option>
    <option value="Lesotho" >Lesotho</option>
    <option value="Liberia" >Liberia</option>
    <option value="Libya" >Libya</option>
    <option value="Liechtenstein" >Liechtenstein</option>
    <option value="Lithuania" >Lithuania</option>
    <option value="Luxembourg" >Luxembourg</option>
    <option value="Macedonia" >Macedonia</option>
    <option value="Madagascar" >Madagascar</option>
    <option value="Malawi" >Malawi</option>
    <option value="Malaysia" >Malaysia</option>
    <option value="Maldives" >Maldives</option>
    <option value="Mali" >Mali</option>
    <option value="Malta" >Malta</option>
    <option value="Marshall Islands" >Marshall Islands</option>
    <option value="Mauritania" >Mauritania</option>
    <option value="Mauritius" >Mauritius</option>
    <option value="Mexico" >Mexico</option>
    <option value="Micronesia" >Micronesia</option>
    <option value="Moldova" >Moldova</option>
    <option value="Monaco" >Monaco</option>
    <option value="Mongolia" >Mongolia</option>
    <option value="Montenegro" >Montenegro</option>
    <option value="Morocco" >Morocco</option>
    <option value="Mozambique" >Mozambique</option>
    <option value="Myanmar" >Myanmar</option>
    <option value="Namibia" >Namibia</option>
    <option value="Nauru" >Nauru</option>
    <option value="Nepal" >Nepal</option>
    <option value="Netherlands" >Netherlands</option>
    <option value="New Zealand" >New Zealand</option>
    <option value="Nicaragua" >Nicaragua</option>
    <option value="Niger" >Niger</option>
    <option value="Nigeria" >Nigeria</option>
    <option value="Norway" >Norway</option>
    <option value="Oman" >Oman</option>
    <option value="Pakistan" >Pakistan</option>
    <option value="Palau" >Palau</option>
    <option value="Panama" >Panama</option>
    <option value="Papua New Guinea" >Papua New Guinea</option>
    <option value="Paraguay" >Paraguay</option>
    <option value="Peru" >Peru</option>
    <option value="Philippines" >Philippines</option>
    <option value="Poland" >Poland</option>
    <option value="Portugal" >Portugal</option>
    <option value="Puerto Rico" >Puerto Rico</option>
    <option value="Qatar" >Qatar</option>
    <option value="Romania" >Romania</option>
    <option value="Russia" >Russia</option>
    <option value="Rwanda" >Rwanda</option>
    <option value="Saint Kitts and Nevis" >Saint Kitts and Nevis</option>
    <option value="Saint Lucia" >Saint Lucia</option>
    <option value="Saint Vincent and the Grenadines" >Saint Vincent and the Grenadines</option>
    <option value="Samoa" >Samoa</option>
    <option value="San Marino" >San Marino</option>
    <option value="Sao Tome and Principe" >Sao Tome and Principe</option>
    <option value="Saudi Arabia" >Saudi Arabia</option>
    <option value="Senegal" >Senegal</option>
    <option value="Serbia and Montenegro" >Serbia and Montenegro</option>
    <option value="Seychelles" >Seychelles</option>
    <option value="Sierra Leone" >Sierra Leone</option>
    <option value="Singapore" >Singapore</option>
    <option value="Slovakia" >Slovakia</option>
    <option value="Slovenia" >Slovenia</option>
    <option value="Solomon Islands" >Solomon Islands</option>
    <option value="Somalia" >Somalia</option>
    <option value="South Africa" >South Africa</option>
    <option value="Spain" >Spain</option>
    <option value="Sri Lanka" >Sri Lanka</option>
    <option value="Sudan" >Sudan</option>
    <option value="Suriname" >Suriname</option>
    <option value="Swaziland" >Swaziland</option>
    <option value="Sweden" >Sweden</option>
    <option value="Switzerland" >Switzerland</option>
    <option value="Syria" >Syria</option>
    <option value="Taiwan" >Taiwan</option>
    <option value="Tajikistan" >Tajikistan</option>
    <option value="Tanzania" >Tanzania</option>
    <option value="Thailand" >Thailand</option>
    <option value="Togo" >Togo</option>
    <option value="Tonga" >Tonga</option>
    <option value="Trinidad and Tobago" >Trinidad and Tobago</option>
    <option value="Tunisia" >Tunisia</option>
    <option value="Turkey" >Turkey</option>
    <option value="Turkmenistan" >Turkmenistan</option>
    <option value="Tuvalu" >Tuvalu</option>
    <option value="Uganda" >Uganda</option>
    <option value="Ukraine" >Ukraine</option>
    <option value="United Arab Emirates" >United Arab Emirates</option>
    <option value="United Kingdom" >United Kingdom</option>
    <option value="United States" >United States</option>
    <option value="Uruguay" >Uruguay</option>
    <option value="Uzbekistan" >Uzbekistan</option>
    <option value="Vanuatu" >Vanuatu</option>
    <option value="Vatican City" >Vatican City</option>
    <option value="Venezuela" >Venezuela</option>
    <option value="Vietnam" >Vietnam</option>
    <option value="Yemen" >Yemen</option>
    <option value="Zambia" >Zambia</option>
    <option value="Zimbabwe" >Zimbabwe</option>
    </select>
    <label for="billing5">Country</label>
    </div>
    </li>      <li id="li_11" >
    <label class="description" for="email">Email Address </label>
    <div>
    <input id="element_11" name="email" class="element text medium" type="text" maxlength="255" value=""/>
    </div>
    </li>      <li id="li_12" >
    <label class="description" for="phone">Phone Number </label>
    <span>
    <input id="element_12_1" name="phone" class="element text" size="3" maxlength="3" value="" type="text"> -
    <label for="element_12_1">(###)</label>
    </span>
    <span>
    <input id="element_12_2" name="phone1" class="element text" size="3" maxlength="3" value="" type="text"> -
    <label for="element_12_2">###</label>
    </span>
    <span>
    <input id="element_12_3" name="phone2" class="element text" size="4" maxlength="4" value="" type="text">
    <label for="element_12_3">####</label>
    </span>
    </li>      <li id="li_13" >
    <label class="description" for="fax">Fax Number </label>
    <span>
    <input id="element_13_1" name="fax" class="element text" size="3" maxlength="3" value="" type="text"> -
    <label for="element_13_1">(###)</label>
    </span>
    <span>
    <input id="element_13_2" name="fax1" class="element text" size="3" maxlength="3" value="" type="text"> -
    <label for="element_13_2">###</label>
    </span>
    <span>
    <input id="element_13_3" name="fax2" class="element text" size="4" maxlength="4" value="" type="text">
    <label for="element_13_3">####</label>
    </span>
    </li>      <li id="li_10" >
    <label class="description" for="confirm">Best way to confirm bookings </label>
    <div>
    <input id="element_10" name="confirm" class="element text medium" type="text" maxlength="255" value=""/>
    </div>
    </li>
    <li class="buttons">
    <input type="hidden" name="form_id" value="280313" />
    <input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" />
    </li>
    </ul>
    </form>
    PHP CODE
    <?
    $sendTo = "[email protected]";
    $subject = "We would like to book an event at Fusion Solutions";
    $thankyou = "thanks.html";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $message = "Booked By: " .$_POST["booked_by"] . "\r\n";
    $message .= "Month: " .$_POST["element_16_1"] . "\r\n";
    $message .= "Day: " .$_POST["element_16_2"] . "\r\n";
    $message .= "Year: " .$_POST["element_16_3"] . "\r\n";
    $message .= "Rental Hours: " .$_POST["hours"] . "\r\n";
    $message .= "Number of Attendees: " .$_POST["attendees"] . "\r\n";
    $message .= "Theme of workshop: " .$_POST["theme"] . "\r\n";
    $message .= "Contact name: " .$_POST["surgeon"] . "\r\n";
    $message .= "Contact Info: " .$_POST["surgeon_contact"] . "\r\n";
    $message .= "Lab Procedures: " .$_POST["lab_procedures"] . "\r\n";
    $message .= "Specimens: " .$_POST["specimens"] . "\r\n";
    $message .= "Instrumentation: " .$_POST["instruments"] . "\r\n";
    $message .= "C-Arm: " .$_POST["carm"] . "\r\n";
    $message .= "Conference room: " .$_POST["conference_room"] . "\r\n";
    $message .= "A/V Needs: " .$_POST["avneeds"] . "\r\n";
    $message .= "Food & Beverage: " .$_POST["food"] . "\r\n";
    $message .= "Address: " .$_POST["billing"] . "\r\n";
    $message .= "Address2: " .$_POST["billing1"] . "\r\n";
    $message .= "City: " .$_POST["billing2"] . "\r\n";
    $message .= "State: " .$_POST["billing3"] . "\r\n";
    $message .= "Zip: " .$_POST["billing4"] . "\r\n";
    $message .= "Country: " .$_POST["billing5"] . "\r\n";
    $message .= "Email: " .$_POST["email"] . "\r\n";
    $message .= "Phone: " .$_POST["phone"] . "\r\n";
    $message .= "Phone: " .$_POST["phone1"] . "\r\n";
    $message .= "Phone: " .$_POST["phone2"] . "\r\n";
    $message .= "Fax: " .$_POST["fax"] . "\r\n";
    $message .= "Fax: " .$_POST["fax1"] . "\r\n";
    $message .= "Fax: " .$_POST["fax2"] . "\r\n";
    $message .= "Best way to confirm: " .$_POST["confirm"];
    mail($sendTo, $subject, $message, $headers) or die ("Failure");
    header("Location: $thankyou");
    ?>

    You could send it from the database (depending on what version you are running against), check out the UTL_SMTP package. Or look for some package written on top of it since it's no joy to use if you aren't familiar with the low level stuff. Not sure if it handles attachments, something written against the JavaMail API is probably more flexible for that

  • How to send a mail without exposing my address?

    Hi. Can I hide my email address? Thanks : )

    I can only think of one reason to do that. Sending spam, or other things that I personally wouldn't want to do. I don't think I wish to help you in this respect.

  • Send SAP-Mail by external app with SAP Mail-Interface

    Hi!
    I need to send a SAP Mail from a third party application. I found a way to send a mail without interface using functions like "so_new_document_att_send_api1" or "so_object_send". But what I need is a function which shows a SAPGui with an interface like in SO01 where the user can change the subject or the message and of course I need to initialize some fields like subject and I need to add an attachment (SAP BO -> a document).
    Thanks for any answer,
    Konrad

    Hi!
    I need to send a SAP Mail from a third party application. I found a way to send a mail without interface using functions like "so_new_document_att_send_api1" or "so_object_send". But what I need is a function which shows a SAPGui with an interface like in SO01 where the user can change the subject or the message and of course I need to initialize some fields like subject and I need to add an attachment (SAP BO -> a document).
    Thanks for any answer,
    Konrad

  • Problem sending a mail to many adresses with attachments (Javamail, JSP)

    Hi,
    i got a problem with JavaMail trying to send a mail to different email-adresses in a JSP. The mail should be send to about 27 adresses, which works fine whenever i send it without any attachments. As soon as i attach a file, the mail still gets send without an error, but only to about 12 adresses instead of the intended 27. I get the adresses out of a database and in either case, there ist the correct amount of adresses. The Mailserver doesnt report anything - it sends the mails without any problem at the 12 adresses.
    Here is the part of the code, thats sending:
    Properties props = new Properties();
    props.put("mail.smtp.host", "192.168.1.1 ");
    Session s;
    MimeMessage message;
    InternetAddress from = new InternetAddress("[email protected]");
    InternetAddress to;
    s = Session.getInstance(props,null);
    Transport trans=s.getTransport("smtp");
    //get adresses from db
    while (rspartner.next())
         to = new InternetAddress(rspartner.getString("postfach"));
         message.addRecipient(Message.RecipientType.TO, to);
         empfaengerzeile=rspartner.getRow();
         //out.println(empfaengerzeile+" --- "+rspartner.getString("postfach")+"<br>");
         BodyPart messageBodyPart=new MimeBodyPart();
         messageBodyPart.setText(nachricht);
         Multipart multipart=new MimeMultipart();
         multipart.addBodyPart(messageBodyPart);
         //Dateinamen und Speicherort des Plan ermitteln
         queryAnhang=dbCon.prepareStatement("select pfad from m_baukoord_kommentar where baukoord_id=? and titel='Entwurfsplan'");
         queryAnhang.setString(1,request.getParameter("projektid"));
         rsanhang=queryAnhang.executeQuery();
         rsanhang.next();
         datei=rsanhang.getString("pfad");
         //Datei zippen
         quellpfad+= ebaukonr.trim() + "/" + datei;
         if(datei.contains("."))
              zipfilename=datei.substring(0,datei.lastIndexOf('.'))+".zip";
         else
              zipfilename=datei+".zip";
         zielpfad=config.getServletContext().getRealPath("")+"/strasse/UserDownloads/" + zipfilename;
         ZipOutputStream zipout = new ZipOutputStream(new FileOutputStream(zielpfad));
         zipout.setLevel(9);
         zipout.setMethod(ZipOutputStream.DEFLATED);
         FileInputStream in = new FileInputStream(quellpfad);
         zipout.putNextEntry(new ZipEntry(datei));
         int len;
         while ((len = in.read(buf)) > 0) {
             zipout.write(buf, 0, len);
         zipout.closeEntry();
         in.close();     
         zipout.close();
         //Datei anhaengen
         messageBodyPart = new MimeBodyPart();
         FileDataSource source = new FileDataSource(zielpfad);
         messageBodyPart.setDataHandler(new DataHandler(source));
         messageBodyPart.setFileName("Entwurfsplan.zip");
         multipart.addBodyPart(messageBodyPart);
         message.setSubject("Neues Projekt " + titel + " verfügbar");
         message.setContent(multipart);
         trans.send(message);

    With active debug i got following information:
    The first mail in the debug-log is with the source code as quoted in my first post, the second mail is when i cut out the part which generates and adds the attachement. I had to make the adresses anonymous, but the second mail contains a lot more adresses then the first, although they both use the same query with same parameters, etc.
    Have i done something wrong with the attachements? Overwriting headers, syntax errors, anything? I'm out of ideas...
    edit: Had to cut out the debug-log because it is too big. It just said that everything was working ok, but the first mail contains too few adresses and the second (without attachement) the correct number of adresses. I can mail the log, if you like.

  • How to Block send e-mail by telnet using Exchange 2010

    Hi
    I have Exchange 2010 SP3 server (Edge and Database servers).
    When i logon to exchange server: telnet mail.domain.com 25using commands:
    mail from:[email protected]
    rcpt to:[email protected]
    I can send e-mails without password.
    How to block it? What is wrong with this server settings?
    Kind Regards Tomasz

    you can change the receive connector that is listening on port 25 to require authentication removing the anonymous the problem will be every server that sends you email will need to have a password on your server so  you will not receive email
    form anyone unless they have the password configured if you only want to receive email on this server from another trusted server than this is how you do it, otherwise you need to leave anonymous access enabled. Spam appliances sometimes will be the only server
    allowed to send to your exchange server, but the spam appliance will have anonymous access allowed on port 25 so it can get the email. Typically the distribution of port 25 traffic is handled at the firewall and it's either sending port 25 traffic to
    your email server or a spam appliance.

  • Sending Purchase Order in mail without the spool generation

    Dear All,
    When i create a Purchase Order using Tcode ME21N, the PO should go by mail to an external email id as a pdf attachment.
    A Z sapscript is used . The spool request is not generated.
    Could anyone please let me know the method/code to use the script data for creating Purchase Order and send it via email without spool generation.
    Waiting for solution.
    Thanks & Regards,
    Bhavika

    Hi,
    as i said:
    create an printer with devices type PDF1, set  host spool access method to M (E-Mail to Receiver/Owner).
    Use this printer as output-device.
    To create and use a printer with PDF1 try searching in SCN or use SAP OSS.
    Regards Dieter

  • Send mail without abap

    Hello, I want create a job that execute all days 1 of months. The job has to send a mail.
    The mail is always the same and to the same users.
    Can I have this without abap program?
    Can the job trigger the mail directly?
    Thanks.

    Hello Isabel...
    I guess this link could help you
    Note 455140 - Configuration of e-mail, fax, paging or SMS using SMTP
    https://service.sap.com/sap/support/notes/455140
    Regards

  • Send a mail via ABAP program

    Hello Experts,
    I want to send mail via ABAP program with the following requirements :
    1. Recipient is OUTLOOK email -id
    2. Sender address has to be an external email-id
    3. Send mail as CC and BCC also to other email-id.
    Is there any function module which can satisfy all the above requirements.
    Regards,
    Mansi.

    hi,
    this code will definately help you just go through it:
    firstly  exported the data to memory using the FM LIST_FROM_MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = t_listobject
    EXCEPTIONS
    not_found = 1
    OTHERS = 2.
    IF sy-subrc 0.
    MESSAGE e000(su) WITH text-001.
    ENDIF.
    then i converted it into ASCII using LIST_TO_ASCI,
    CALL FUNCTION 'LIST_TO_ASCI'
    TABLES
    listasci = t_xlstab
    listobject = t_listobject
    EXCEPTIONS
    empty_list = 1
    list_index_invalid = 2
    OTHERS = 3.
    IF sy-subrc NE 0.
    MESSAGE e003(yuksdbfzs).
    ENDIF.
    This gives the data in ASCII format separated by '|' and the header has '-', dashes. If you use this internal table directly without any proccesing in SO_NEW_DOCUMENT_ATT_SEND_API1, then you will not get a good excel sheet attachment. To overcome this limitation, i used cl_abap_char_utilities=>newline and cl_abap_char_utilities=>horizontal_tab to add horizontal and vertical tabs to the internal table, replacing all occurences of '|' with
    cl_abap_char_utilities=>horizontal_tab.
    Set the doc_type as 'XLS', create the body and header using the packing_list and pass the data to be downloaded to SO_NEW_DOCUMENT_ATT_SEND_API1 as contents_bin.
    This will create an excel attachment.
    Sample code for formatting the data for the attachment in excel format.
    u2022     Format the data for excel file download
    LOOP AT t_xlstab INTO wa_xlstab .
    DESCRIBE TABLE t_xlstab LINES lw_cnt.
    CLEAR lw_sytabix.
    lw_sytabix = sy-tabix.
    u2022     If not new line then replace '|' by tabs
    IF NOT wa_xlstab EQ cl_abap_char_utilities=>newline.
    REPLACE ALL OCCURRENCES OF '|' IN wa_xlstab
    WITH cl_abap_char_utilities=>horizontal_tab.
    MODIFY t_xlstab FROM wa_xlstab .
    CLEAR wa_xlstab.
    wa_xlstab = cl_abap_char_utilities=>newline.
    IF lw_cnt NE 0 .
    lw_sytabix = lw_sytabix + 1.
    u2022     Insert new line for the excel data
    INSERT wa_xlstab INTO t_xlstab INDEX lw_sytabix.
    lw_cnt = lw_cnt - 1.
    ENDIF.
    CLEAR wa_xlstab.
    ENDIF.
    ENDLOOP.
    Sample code for creating attachment and sending mail:
    FORM send_mail .
    u2022     Define the attachment format
    lw_doc_type = 'XLS'.
    u2022     Create the document which is to be sent
    lwa_doc_chng-obj_name = 'List'.
    lwa_doc_chng-obj_descr = w_subject. "Subject
    lwa_doc_chng-obj_langu = sy-langu.
    u2022     Fill the document data and get size of message
    LOOP AT t_message.
    lt_objtxt = t_message-line.
    APPEND lt_objtxt.
    ENDLOOP.
    DESCRIBE TABLE lt_objtxt LINES lw_tab_lines.
    IF lw_tab_lines GT 0.
    READ TABLE lt_objtxt INDEX lw_tab_lines.
    lwa_doc_chng-doc_size = ( lw_tab_lines - 1 ) * 255 + STRLEN( lt_objtxt ).
    lwa_doc_chng-obj_langu = sy-langu.
    lwa_doc_chng-sensitivty = 'F'.
    ELSE.
    lwa_doc_chng-doc_size = 0.
    ENDIF.
    u2022     Fill Packing List For the body of e-mail
    lt_packing_list-head_start = 1.
    lt_packing_list-head_num = 0.
    lt_packing_list-body_start = 1.
    lt_packing_list-body_num = lw_tab_lines.
    lt_packing_list-doc_type = 'RAW'.
    APPEND lt_packing_list.
    u2022     Create the attachment (the list itself)
    DESCRIBE TABLE t_xlstab LINES lw_tab_lines.
    u2022     Fill the fields of the packing_list for creating the attachment:
    lt_packing_list-transf_bin = 'X'.
    lt_packing_list-head_start = 1.
    lt_packing_list-head_num = 0.
    lt_packing_list-body_start = 1.
    lt_packing_list-body_num = lw_tab_lines.
    lt_packing_list-doc_type = lw_doc_type.
    lt_packing_list-obj_name = 'Attach'.
    lt_packing_list-obj_descr = w_docdesc.
    lt_packing_list-doc_size = lw_tab_lines * 255.
    APPEND lt_packing_list.
    u2022     Fill the mail recipient list
    lt_reclist-rec_type = 'U'.
    LOOP AT t_recipient_list.
    lt_reclist-receiver = t_recipient_list-address.
    APPEND lt_reclist.
    ENDLOOP.
    u2022     Finally send E-Mail
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = lwa_doc_chng
    put_in_outbox = 'X'
    commit_work = 'X'
    IMPORTING
    sent_to_all = lw_sent_to_all
    TABLES
    packing_list = lt_packing_list
    object_header = lt_objhead
    contents_bin = t_xlstab
    contents_txt = lt_objtxt
    receivers = lt_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.
    Hope it will help you
    regards
    Rahul sharma

  • Viewing Sender's Address Without Opening E-Mail

    I am trying to find a way of viewing a sender's e-mail address without opening the e-mail, just in case it is unwanted spam. Anyone know how? When I was in the windows world, I used View Source in Thunderbird, but I am not able to find a comparable option in the OSX Mail application.
    Thanks!

    Hello Pankaj,
    it should be a valid E-Mail Address because you should be able to handle the bounces. And please have also a look at <a href="/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface">Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface</a> if your Mail system is configured correctly. You should be able to send out SMTP Mails via SAP Business Workplace.
    Regards
    Gregor

  • The Java plugin has created a time unfriendly issue with my e-mail account, I can not open or send any e-mail without using this plugin, how can I eliminate this problem without dropping m. firefox?

    A few days ago I tried to e-mail a friend, when I started A box came up and it required me to add a plugin..Java. I contacted my e-mail courier and microsoft, they told me that is was a plugin from Mozilla Firefox. Since then I must go through Java to send or open an e-mail... this is NOT to my satisfaction, it takes too long for all of this to open and if it is not cleared , I am dropping Mozilla and going elsewhere. Why has this occurred? Is this a result of the last update? If so can I delete the last update and continue on the other version?
    == This happened ==
    Every time Firefox opened
    == last week

    Sorry, I have no idea what you mean by '''"The Java plugin has created a time unfriendly issue with my e-mail account, I can not open or send any e-mail without using this plugin,"'''.
    If you think your problem is caused by the Java plugin, you should visit the Java support forum for assistance.
    http://forum.java.sun.com/index.jspa
    If you could explain what you mean by '''"time unfriendly''' issue with my e-mail account", maybe we'll be able to help you solve that issue.
    It might be helpful for us if we knew exactly which web-mail provider you are using. It seems strange to me that viewing or sending web-mail would actually "need" Java for operation, its more likely that some other item on the web page needs Java to run some advertising or other garbage that isn't a necessary part of the web-mail functionality you want to use.

Maybe you are looking for