Menu

Change font on email response?

Help
neonlady
2005-12-23
2013-06-03
  • neonlady

    neonlady - 2005-12-23

    Is it possible to change the response email form so that the values that are entered look different than the field names? So far I see them bothe set up as Verdana, so whe we recieve the emailed form, both the imput and filed names look alike, and run together. Is there a way to control the visual look and have the emailed (processed) form imputs changed?

     
    • TNTEverett

      TNTEverett - 2005-12-23

      Yes this can be done.  You would need to change the message format to HTML.  By default it is sent as text (easiest format for the message function). 

       
      • neonlady

        neonlady - 2005-12-23

        I am currently using PhpFormGeerator. Is this do-able with that? Any more specific instructions?

         
    • neonlady

      neonlady - 2005-12-23

      Sorry, I guess it'd be obvious that I was using this program. Woul dthat change need to happen in the process file?

       
      • TNTEverett

        TNTEverett - 2005-12-24

        If all you want to do is make the email message more descriptive just change the text before the variable name that is entered into the message. 
        Send me your process.php file and I will show you how it is done.

         
        • neonlady

          neonlady - 2005-12-27

          <?php
          include("global.inc.php");
          $errors=0;
          $error="The following errors occured while processing your form input.<ul>";
          pt_register('POST','SubjectBrokerOrderForm');
          pt_register('POST','Broker');
          pt_register('POST','ContactPhone');
          pt_register('POST','Email');
          pt_register('POST','OfficeLocation');
          pt_register('POST','PropertyOwnerName');
          pt_register('POST','PropertyAddressCity');
          $PropertyAddressCity=preg_replace("/(\015\012)|(\015)|(\012)/","&nbsp;<br />", $PropertyAddressCity);
          pt_register('POST','PropertyType');
          pt_register('POST','ThomasGuide');
          $ThomasGuide=preg_replace("/(\015\012)|(\015)|(\012)/","&nbsp;<br />", $ThomasGuide);
          pt_register('POST','ActionRequested');
          pt_register('POST','ServiceProductRequest');
          pt_register('POST','AdditionalDirectionals');
          pt_register('POST','RequestedDirectionalLocations');
          $RequestedDirectionalLocations=preg_replace("/(\015\012)|(\015)|(\012)/","&nbsp;<br />", $RequestedDirectionalLocations);
          pt_register('POST','IdentifyingPropertyFeatures');
          $IdentifyingPropertyFeatures=preg_replace("/(\015\012)|(\015)|(\012)/","&nbsp;<br />", $IdentifyingPropertyFeatures);
          pt_register('POST','SpecialInstructions');
          $SpecialInstructions=preg_replace("/(\015\012)|(\015)|(\012)/","&nbsp;<br />", $SpecialInstructions);
          $Uploadfileattachment=$HTTP_POST_FILES['Uploadfileattachment'];
          pt_register('POST','DateServiceRequested');
          pt_register('POST','DatePaymentMethod');
          if($Broker == "" ||
             $ContactPhone == "" ||
             $Email == "" ||
             $OfficeLocation == "" ||
             $PropertyOwnerName == "" ||
             $PropertyAddressCity=="" ||
             $PropertyType=="" ||
             $ThomasGuide=="" ||
             $ActionRequested=="" ||
             $ServiceProductRequest=="" ||
             $DateServiceRequested=="") {
            $errors=1;
            $error.="<li>You did not enter one or more of the required fields. Please go back and try again.";
          }

          if (!empty($_FILES['Uploadfileattachment']['tmp_name'])) {
            if(!is_uploaded_file($HTTP_POST_FILES['Uploadfileattachment']['tmp_name'])) {
              $error.="<li>The file, ".$HTTP_POST_FILES['Uploadfileattachment']['name'].", was not uploaded!";
              $errors=1;
            }
          }

          if ($errors==1) {
            echo $error;
          } else {
            $image_part = date("h_i_s")."_".$_FILES['Uploadfileattachment']['name'];
            $image_list[14] = $image_part;
            copy($_FILES['Uploadfileattachment']['tmp_name'], "files/".$image_part);
            $where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
            $message="Subject Broker Order Form: ".$SubjectBrokerOrderForm."
          Broker: ".$Broker."
          Contact Phone: ".$ContactPhone."
          Email: ".$Email."
          Office Location: ".$OfficeLocation."
          Property Owner Name: ".$PropertyOwnerName."
          Property Address City: ".$PropertyAddressCity."
          Property Type: ".$PropertyType."
          Thomas Guide: ".$ThomasGuide."
          Action Requested: ".$ActionRequested."
          Service Product Request: ".$ServiceProductRequest."
          Additional Directionals: ".$AdditionalDirectionals."
          Requested Directional Locations: ".$RequestedDirectionalLocations."
          Identifying Property Features: ".$IdentifyingPropertyFeatures."
          Special Instructions: ".$SpecialInstructions."
          Date Service Requested: ".$DateServiceRequested."
          DatePayment Method: ".$DatePaymentMethod."
          ";
           
            if (!empty($_FILES['Uploadfileattachment']['tmp_name'])) {
              $message .= "Upload file attachment: ".$where_form_is."files/".$image_list[14];
            }
           
           
            $message = stripslashes($message);
            mail("sales@imagesettersllc.com, doug@meyernw.com", "Broker Order Form Submitted at your website",$message,"From: phpFormGenerator");
            mail($Email, "Your broker order form", $message, "From: sales@imagesettersllc.com");
            $link = mysql_connect("localhost","meyernwc_test","test");
            mysql_select_db("meyernwc_emailcsv",$link);
            $query="insert into test (Subject_Broker_Order_Form,Broker,Contact_Phone,Email,Office_Location,Property_Owner_Name,Property_Address_City,Property_Type,Thomas_Guide,Action_Requested,Service_Product_Request,Requested_Directional_Locations,Identifying_Property_Features,Special_Instructions,Upload_file_attachment,Date_Service_Requested,DatePayment_Method) values ('".$SubjectBrokerOrderForm."','".$Broker."','".$ContactPhone."','".$Email."','".$OfficeLocation."','".$PropertyOwnerName."','".$PropertyAddressCity."','".$PropertyType."','".$ThomasGuide."','".$ActionRequested."','".$ServiceProductRequest."','".$RequestedDirectionalLocations."','".$IdentifyingPropertyFeatures."','".$SpecialInstructions."','".$where_form_is."files/".$image_list[14]."','".$DateServiceRequested."','".$DatePaymentMethod."')";
            mysql_query($query);
            $make=fopen("admin/data.dat","a");
            $to_put="";
            $to_put .= $SubjectBrokerOrderForm."|".$Broker."|".$ContactPhone."|".$Email."|".$OfficeLocation."|".$PropertyOwnerName."|".$PropertyAddressCity."|".$PropertyType."|".$ThomasGuide."|".$ActionRequested."|".$ServiceProductRequest."|".$RequestedDirectionalLocations."|".$IdentifyingPropertyFeatures."|".$SpecialInstructions."|".$where_form_is."files/".$image_list[14]."|".$DateServiceRequested."|".$DatePaymentMethod;
            fwrite($make,$to_put);

            header("Refresh: 0;url=http://www.imagesettersllc.com/thanks.htm");
          }

          ?>

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.