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

Similar Messages

  • 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.

  • Airport extreme will only get or send e-mail messages, or allow Safari to function for about 5 minutes.  After that it doesn't respond even though the green light is on and diagnostics says there is nothing wrong. Have to unplug again to get a response.

    For the past 2 days Airport Extreme works for about 5 minutes and then will not receive or send e-mail messages, or let Safari work.  The only way I can send or receive is to unplug Airport Extreme for a few seconds, reconnect and then work frantically for 5 minutes before it does the same thing.  The green light stays on and the diagnostics tells me nothing is wrong even though no mail is moving.
    Any ideas?
    Thanks,
    Greg
    (I plugged my laptop directly into the modem in order to send this message.)

    For the past 2 days Airport Extreme works for about 5 minutes and then will not receive or send e-mail messages, or let Safari work.  The only way I can send or receive is to unplug Airport Extreme for a few seconds, reconnect and then work frantically for 5 minutes before it does the same thing.  The green light stays on and the diagnostics tells me nothing is wrong even though no mail is moving.
    Any ideas?
    Thanks,
    Greg
    (I plugged my laptop directly into the modem in order to send this message.)

  • 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.

  • How can scripts and  smart forms send to mail and pdf?

    HI i want to know how script and smartforms will send to mail and pdf formates>?

    Dear Anees ,
                       Pleas pass on the parameter in itcpo - (getotf  ) structure while calling OPEN_FORM as 'X' .
    I have answered it in detail in your earlier post .
    also giving below sample program for sending SAPSCRIPT as PDFattachment in email  :
    REPORT zsapscript_pdf_via_mail MESSAGE-ID zvele LINE-SIZE 68
    NO STANDARD PAGE HEADING.
    TABLES: itcpo.
    Open your usual sapscript specifying that the output will be OTF
    itcpo-tdgetotf = 'X'.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    device = 'PRINTER'
    dialog = ''
    form = '............'
    language = sy-langu
    options = itcpo
    EXCEPTIONS
    canceled = 1
    device = 2
    form = 3
    options = 4
    unclosed = 5
    OTHERS = 6.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    window = '............'
    element = '............'
    EXCEPTIONS
    window = 1
    element = 2.
    DATA: BEGIN OF t_otfdata OCCURS 0.
    INCLUDE STRUCTURE itcoo.
    DATA: END OF t_otfdata.
    Closing the Sapscript, we save data (OTF) in a table
    CALL FUNCTION 'CLOSE_FORM'
    TABLES
    otfdata = t_otfdata
    EXCEPTIONS
    unopened = 1
    bad_pageformat_for_print = 2
    send_error = 3
    spool_error = 4
    OTHERS = 5.
    DATA: len_in LIKE sood-objlen,
    len_out LIKE sood-objlen.
    DATA: BEGIN OF t_pdfdata OCCURS 0.
    INCLUDE STRUCTURE solisti1.
    DATA: END OF t_pdfdata.
    DATA: BEGIN OF t_otfdata2 OCCURS 0.
    INCLUDE STRUCTURE solisti1.
    DATA: END OF t_otfdata2.
    Move OTF data to another table with lenght 255
    LOOP AT t_otfdata.
    CONCATENATE t_otfdata-tdprintcom t_otfdata-tdprintpar INTO t_otfdata2.
    APPEND t_otfdata2.
    ENDLOOP.
    Convert OTF format to PDF
    CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
    EXPORTING
    format_src = 'OTF'
    format_dst = 'PDF'
    devtype = 'PRINTER'
    FUNCPARA =
    len_in = len_in
    IMPORTING
    len_out = len_out
    TABLES
    content_in = t_otfdata2
    content_out = t_pdfdata
    EXCEPTIONS
    err_conv_failed = 1
    OTHERS = 2.
    Download on local directory
    *CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE = len_out
    FILENAME = 'c:\test.pdf'
    FILETYPE = 'BIN'
    TABLES
    data_tab = t_pdfdata.
    Mail settings
    DATA: objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
    DATA: objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
    DATA: objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
    DATA: objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
    DATA: reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINe.
    DATA: doc_chng LIKE sodocchgi1.
    DATA righe_attachment TYPE i.
    DATA righe_testo TYPE i.
    DATA z_email(80) TYPE c.
    Receivers parameters
    SELECT-OPTIONS: s_email FOR z_email LOWER CASE NO INTERVALS.
    PARAMETERS rec_type LIKE reclist-rec_type
    DEFAULT 'U'. " type of sending address
    CLEAR: reclist, reclist[],
    objhead, objhead[],
    objtxt, objtxt[],
    objbin, objbin[],
    objpack, objpack[].
    Attachment filling
    LOOP AT t_pdfdata.
    objbin-line = t_pdfdata.
    APPEND objbin.
    ENDLOOP.
    DESCRIBE TABLE objbin LINES righe_attachment.
    Text filling
    objtxt = 'Testo della Mail - Riga 1'.APPEND objtxt.
    objtxt = 'Testo della Mail - Riga 2'.APPEND objtxt.
    objtxt = 'Testo della Mail - Riga n'.APPEND objtxt.
    DESCRIBE TABLE objtxt LINES righe_testo.
    Other filling
    doc_chng-obj_name = 'URGENT'.
    doc_chng-expiry_dat = sy-datum + 10.
    doc_chng-obj_descr = 'Prova invio Mail con PDF'.
    doc_chng-sensitivty = 'O'.
    doc_chng-doc_size = righe_testo * 255.
    CLEAR objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = righe_testo.
    objpack-doc_type = 'RAW'.
    APPEND objpack.
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num = 1.
    objpack-body_start = 1.
    objpack-body_num = righe_attachment.
    objpack-doc_type = 'PDF'.
    objpack-obj_name = 'TEST'.
    objpack-obj_descr = 'File.pdf'.
    objpack-doc_size = righe_attachment * 255.
    APPEND objpack.
    Receivers filling
    LOOP AT s_email WHERE sign = 'I'
    AND option = 'EQ'
    AND NOT ( low IS initial ).
    CLEAR reclist.
    IF sy-tabix > 1.
    reclist-copy = 'X'.
    ENDIF.
    reclist-receiver = s_email-low.
    IF rec_type IS INITIAL.
    reclist-rec_type = 'U'. " Internet e-mail
    ELSE.
    reclist-rec_type = rec_type.
    ENDIF.
    reclist-notif_del = 'X'. " request delivery notification
    reclist-notif_ndel = 'X'. " request not delivered notification
    APPEND reclist.
    ENDLOOP.
    Mail Send
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = doc_chng
    put_in_outbox = 'X'
    IMPORTING
    SENT_TO_ALL =
    NEW_OBJECT_ID =
    TABLES
    packing_list = objpack
    object_header = objhead
    contents_bin = objbin
    contents_txt = objtxt
    OBJECT_PARA =
    OBJECT_PARB =
    receivers = reclist
    CONTENTS_HEX =
    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

  • 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.

  • [php+mysql] send e-mail with custom content

    Hi all
    <br />I'm trying to send an e-mail with custom content.
    <br />I've set the MX send e-mail server behaviour so that it sends an html
    <br />template.
    <br />
    <br />no problem here.
    <br />
    <br />The problem arises when I try to put some variables in the template file.
    <br />Transaction variables work as expected and they will be sent by email.
    <br />But I cannot figure out how to include other standard variable.
    <br />I use variables to translate the page on the fly.
    <br />I have an external file containing all translations and I include it on my
    <br />translated page.
    <br />Then I output the translation using the echo command:
    <br />example:
    <br />Here is the content of the include:
    <br /><?<br /?>
    $menu["AZIENDA"]="COMPANY";
    <br />?&gt;
    <br />
    <br />In the translated page I put the related variable in the body:
    <br /><?php echo $menu["AZIENDA"] ?>
    <br />
    <br />But when I put <?php echo $menu["AZIENDA"] ?> in the template file, nothing
    <br />will be output.
    <br />
    <br />What is the right way to do this?
    <br />
    <br />TIA
    <br />
    <br />tony

    Hi,
    look here:
    Re: How to email an attachment with more than 255 characters?
    Andreas

  • Adobe Interactive Form send by mail?

    Hello all,
    did anyone try to use Adobe Interactive Form in following scenario:
    - form is automatically filled from the context, without any user interaction
    - user can preview document
    - user send document via e-mail, not using mail button in pdf viewer, but programatically in webdynpro app.
    Tnx for the comments!
    BR, Ivan

    Did you use this script in your button?
    mailto:? Subject =
    This has always worked for me.

  • Interactive Forms, send e-mail and attach the PDF document

    Hi all, 
    I've the form and I don't know if I can send an email, trough a button (Jscript or Formcalc), with in attachment my filled form in PDF format (further the XML Data)?   
    I don't now also if with Jscript, i can invoke the print and set automatically the print device that I want use to print.
    Thanks in advance,
    Antonello Didonna

    Hi Michal,
    Ok for the email...
    now I'm looking for something to attach a file at the mail.
    For printing, I've found this older code to set the printer:
    var pp = this.getPrintParams();
    pp.interactive = pp.constants.interactionLevel.automatic;
    pp.printerName = "hp officejet d series";
    this.print(pp);
    This code seems that is supported on Abode 6 or later.
    You know another method to set the printer?
    The target is print the PDF at file.
    I've seen also that there's also this method but I don't understand how I can use it!
    FilePrintSilent
    Prints all pages in a document, without displaying a print dialog box to the user. For PostScript printing, only Level 1 operators are used, only ASCII data is generated, and the documentu2019s pages are not shrunk to fit into the imageable area of the printed page.
    FilePrintSilent is also supported in Adobe Reader.
    Syntax
    [FilePrintSilent(char* fullPath)]
    Parameters
    fullPath
    The full path of the file to be printed.
    FilePrintSilent [here|http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?&accessible=true].
    Thanks so much,
    Antonello Didonna

  • Using php to send contact mail; no mail sent redirect works

    I am reteaching myself Dreamweaver after 13 years off.  I do not have any php scripting experience.  I found a tutorial on line and built a php script based on that.  http://www.everlastingsurfacesinc.com/contact.html the script is attahced to the contact.html page I can tell the html page is processing the php because I land on my thank you page but the email never gets sent.  I dont know where my error is.  If there is an easier way I am interested.  I would like to learn how to write this so I can duplicate results again on another site.
    <?php
    /*subject and email variables */
    $emailSubject = 'Interest in Service from Website Contact';
    $webMaster = '[email protected]';
    /* Gathering Data Variables */
    $nameField = $_POST['name'];
    $emailField = $_POST['email'];
    $projectField = $_POST['project'];
    $timeframeField = $_POST['timeframe'];
    $howdidyouhearField = $_POST['howdidyouhear'];
    $commentsField = $_POST['comments'];
    $body = <<<EOD
    <br><hr><br>
    Email: $email <br>
    Name: $name <br>
    Project: $project <br>
    Time Frame: $timeframe <br>
    How did you hear about us: $howdidyouhear <br>
    Comments: $comments <br>
    EOD;
    $headers = "From: $email\r\n";
    $headers .= "Content-type: text/html\r\n";
    $success = mail ($webMaster,$emailSubject,$body,$headers);
    /* Results rendered as HTML */
    $theResults = <<<EOD
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/index.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Everlasting Surfaces</title>
    <style type="text/css">
    body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    background-color: #8cb5ba;
    background-repeat: repeat-x;
    background-image: url(bg_background_LT.jpg);
    </style>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    a:link {
    color: #FFFFFF;
    text-decoration: none;
    a:visited {
    text-decoration: none;
    color: #FFFFFF;
    a:hover {
    text-decoration: none;
    color: #000000;
    a:active {
    text-decoration: none;
    </style>
    </head>
    <body>
    <div id="container">
      <div id="header">
      <div id="headerphone">925-960-9778</div>
      </div>
      <div id="navbar">
        <div id='cssmenu'>
          <ul>
            <li class='active'><a href='index.html'><span>Home</span></a></li>
            <li><a href='service.html'><span>Service</span></a></li>
            <li class='has-sub'><a href='gallery.html'><span>Gallery</span></a>
              <ul>
                <li><a href='bathrooms.html'><span>Bathroom</span></a></li>
                <li><a href='kitchens.html'><span>Kitchens</span></a></li>
                <li><a href='backsplashes.html'><span>Backsplashes</span></a></li>
                <li><a href='edges.html'><span>Edges</span></a></li>
                <li class='last'><a href='otherareas.html'><span>Other Areas</span></a></li>
              </ul>
            </li>
            <li><a href='contractterms.html'><span>Contract Terms</span></a></li>
            <li><a href='testimonials.html'><span>Testimonials</span></a></li>
            <li class='has-sub'><a href='suppliers.html'><span>Suppliers</span></a>
              <ul>
                <li><a href='hanstone.html'><span>Hanstone Countertops</span></a></li>
                <li><a href='silestone.html'><span>Silestone Countertops</span></a></li>
                <li><a href='caesarstone.html'><span>CeasarStone Countertops</span></a></li>
                <li><a href='icestone.html'><span>IceStone Countertops</span></a></li>
                <li class='last'><a href='vetrazzo.html'><span>Vetrazzo Countertops</span></a></li>
              </ul>
            </li>
            <li class='last'><a href='Contactformsubmit.php'><span>Contact</span></a></li>
          </ul>
        </div>
      </div>
      <!-- InstanceBeginEditable name="maincontent" -->
    <div class="container" id="thankyoupage">
      <div id="pageinfo">
        <table width="100%" border="0">
          <tr>
            <th scope="row"><img src="Photos/Kitchens/14052be299f38bdbffff8124ffffd524.jpg" alt="Thank You Photo" name="thankyouimage" width="450" height="675" id="thankyouimage" /></th>
            <td><span class="thankyoutext">Thank you so much for reaching out. <br />
              <br/>
              <span class="thankyoutextbody">Your email contact is now in our email inbox. One of our staff memebers will be in contact with you to discuss your project.</span></span></td>
            </tr>
        </table>
      </div>
    </div>
    <title>Everlasting Surfaces Inc</title>
    <!-- InstanceEndEditable -->
      <div id="footer">
        <div class="footercontactinfo" id="footerdiv1">2245 S. Vasco Road, Ste. A Livermore, CA 94550</div>
        <div class="footernav" id="footerdiv2"><div id='cssmenu'>
    <ul>
       <li class='active'><a href='index.html'><span>Home</span></a></li>
       <li><a href='service.html'><span>Service</span></a></li>
       <li><a href='contractterms.html'><span>Contract Terms</span></a></li>
       <li class='last'><a href='Contactformsubmit.php'><span>Contact</span></a></li>
    </ul>
    </div></div>
      </div>
    </div>
    </body>
    <!-- InstanceEnd --></html>
    EOD;
    echo "$theResults";
    ?>

    Your php variables do not match the output variables
    $nameField = $_POST['name'];
    So you need to add 'Field' to everyone of your output variable (marked in red):
    $body = <<<EOD
    <br><hr><br>
    Email: $emailField <br>
    Name: $nameField<br>
    Project: $projectField <br>
    Time Frame: $timeframeField <br>
    How did you hear about us: $howdidyouhearField <br>
    Comments: $commentsField <br>
    EOD;
    OR remove 'FIELD' from the initial set of php variables.

  • 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.

  • 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.

  • 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.

  • Why is my php form not sending to my e-mail?

    Here i have the code for my .php document and the code for my html. Why is the form not sending to my e-mail ([email protected])? At one point I had the form sending to my e-mail, but the information that was filled out was not appearing. Now no email is being sent at all. I tried a contact-us.php page with the php email code in the same document and now have the information in seperate documents, but I am getting the same results every which way. I need help I have been checking this over for hours and looking up solutions online but it all is very confusing. PLEASE HELP!
    send.php
    <?php
    if ($_POST['parse_var'] == "contactForm") {
              $emailTitle = 'Scheduele In Home Consultation or General Question';
              $yourEmail = '[email protected]';
              $firstName = $_POST['FirstName'];
              $lastName = $_POST['LastName'];
              $phoneNumber = $_POST['PhoneNumber'];
              $emailAddress = $_POST['EmailAddress'];
              $Message = $_POST['Message'];
              $body = <<<EOD
    <br><hr><br>
              First Name: $firstName <br />
              Last Name: $lastName <br />
              Phone Number: $phoneNumber <br />
              Email Address: $emailAddress <br />
              Message: $Message <br />
    EOD;
              $headers = "From: $emailAddress\r\n";
              $headers .= "Content-type: text/html\r\n";
              $success = mail("$yourEmail", "$emailTitle", "$body", "$headers");
              $sent = "Thank you! Your message has been sent.";
    ?>
    contact-us.html
          <form action="send.php" method="post" name="contactForm" id="contactForm">
            <table width="75%" align="left" cellpadding="5" id="contactustable">
              <tr>
                <td><label for="FirstName"></label>
                  <span id="sprytextfield1">
                  First Name<br>
                  <br>
                  <input type="text" name="FirstName" id="FirstName" value="<?php print "$firstName"; ?>">
                <span class="textfieldRequiredMsg">Please enter your first name.</span></span></td>
              </tr>
              <tr>
                <td> </td>
              </tr>
              <tr>
                <td><label for="LastName"></label>
                  <span id="sprytextfield2">
                  Last Name<br>
                  <br>
                  <input type="text" name="LastName" id="LastName" value="<?php print "$lastName"; ?>">
                <span class="textfieldRequiredMsg">Please enter your last name.</span></span></td>
              </tr>
              <tr>
                <td> </td>
              </tr>
              <tr>
                <td><label for="PhoneNumber"></label>
                  <span id="sprytextfield3">
                  Phone Number<br>
                  <br>
                  <input type="text" name="PhoneNumber" id="PhoneNumber" value="<?php print "$phoneNumber"; ?>">
    <span class="textfieldInvalidFormatMsg">Please enter your phone number.</span></span></td>
              </tr>
              <tr>
                <td> </td>
              </tr>
              <tr>
                <td><label for="EmailAddress"></label>
                  <span id="sprytextfield4">E-mail Address<br>
                  <br>
                  <input type="text" name="EmailAddress" id="EmailAddress" value="<?php print "$emailAddress"; ?>">
                <span class="textfieldRequiredMsg">Please enter your e-mail address.</span><span class="textfieldInvalidFormatMsg">Example: [email protected].</span></span></td>
              </tr>
              <tr>
                <td> </td>
              </tr>
              <tr>
                <td height="255"><label for="Message"></label>
                  <span id="sprytextarea1">
                  Message:<br>
                  <br>
                  <textarea name="Message" cols="85%" rows="12" id="Message"><?php print "$Message"; ?></textarea>
                <span class="textareaRequiredMsg">A value is required.</span></span></td>
              </tr>
              <tr>
                <td> </td>
              </tr>
              <tr>
                <td><input type="submit" name="Reset" id="Reset" value="Reset">
                  <input type="hidden" name="parse_var" id="parse_var">             
                <input type="submit" name="Submit" id="Submit" value="Send Message"></td>
              </tr>
              <tr>
                <td><?php print "$sent"; ?></td>
              </tr>
            </table>
          </form>

    tonyb1117 wrote:
    It works! Thank you very much for pointing that out "bregent" and "osgood_". I have one more small problem though, when signing out my contact form the phone number field does not accept any phone number?
                  <input type="text" name="PhoneNumber" id="PhoneNumber" value="<?php print "$phoneNumber"; ?>">
    <span class="textfieldInvalidFormatMsg">Please enter your phone number.</span></span></td>
    Any solutions?
    I don't know anything about Spry validation of form fields but I think it requires you to set the type of validation, i.e., text, email, number.
    Have you looked in that direction.
    I presume what youre saying is when you hit send you get a red message saying phone number is not valid or something along those lines?

Maybe you are looking for

  • Printed Documents crash in RH6

    In RH 6 - opened a Printed Documentation layout. Set the settings to generate a Word document, create one book, retain hyperlinks, and use conditional text exclusions. RH crashed while compiling at the updating stage with a message of "RoboHelp HTML

  • How can I transfer my iTunes account

    I'd like to transfer my entire Itunes account from my pc to my mac, including the hundreds of songs I got off my cds. Is this possible, and how? Thanks.

  • Registration swatch gone?

    All of the sudden the Registration swatch in my palette is gone and everything that was colored registration like register marks are now 100,100,100,100. I thought you couldn't remove the registration swatch!?

  • I have an optical sensor and two hall effect how can I data log?

    I have built a test rig which consists of a gyroscope.  The gyro is spun up by and electric motor. I need to measure the speed of rotation.  I'm using an optical sensor and two Hall Effect sensors.  I would like to record the output of these and I wo

  • HT1267 itunes is not downloading the whole song

    itunes is not downloading the whole song