Plugin Directory

Changeset 361926


Ignore:
Timestamp:
03/19/2011 01:12:00 AM (15 years ago)
Author:
stesvis
Message:

1.6: plain text emails

Location:
easy-contact-form-lite/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • easy-contact-form-lite/trunk/define.php

    r361327 r361926  
    88define('EASYFORM_PLUGIN_NAME','Easy Contact Form Lite');
    99
    10 $merlic_easyform_version = '1.0.5';
     10$merlic_easyform_version = '1.0.6';
    1111$table_name = $wpdb->prefix."easyform";
    1212$settings_table_name = $wpdb->prefix."easyform_settings";
  • easy-contact-form-lite/trunk/easy-contact-form-lite.php

    r361327 r361926  
    44 Plugin URI: http://wordpress.phpanswer.com/wpplugins/easy-contact-form/
    55 Description: This plugin allows you to add custom contact forms to your site. Choose which fields you want, which ones are required and if you want a recaptcha validation.<br />Automatic form validation is provided. Just add the shortcode to the page or post where you want to display the form.<br />In the backend you can add/edit/delete forms. For each form that you create you decide who will receive the email.
    6  Version: 1.0.5
     6 Version: 1.0.6
    77 Author: Cristian Merli
    88 Author URI: http://wordpress.phpanswer.com
  • easy-contact-form-lite/trunk/easy-form.class.php

    r361327 r361926  
    7474                ");
    7575               
    76                 $message = '
    77                     <style type="text/css">
    78                         #message { border: none; }
    79                         #message th { border: none; padding: 5px 10px 5px 0; text-align: right; vertical-align: top;}
    80                         #message td { border: none; padding: 5px 10px 5px 0; vertical-align: top; }
    81                     </style>
    82                 ';
    83                 $message .= '<table id="message">';
    84                 $message .= '<tr><th>IP Address:</th><td>'.self::get_real_ip_address().'</td></tr>';
     76                $message .= '<p>--- IP Address ---<br />'.self::get_real_ip_address().'</p><br />';
    8577               
    8678                foreach ($form_fields as $field) {
    8779                    if ($field->type != 'submit') {
    8880                        if ( empty($field->label))
    89                             $message .= '<tr><th>'.ucfirst($field->name).':</th><td>'.$_POST['merlic_easyform_'.$field->name].'</td></tr>';
     81                            $message .= '<p>--- '.ucfirst($field->name).' ---<br />'.$value.'</p><br />';
    9082                        else
    91                             $message .= '<tr><th>'.ucfirst($field->label).':</th><td>'.$_POST['merlic_easyform_'.$field->name].'</td></tr>';
     83                            $message .= '<p>--- '.ucfirst($field->label).' ---<br />'.$value.'</p><br />';
    9284                    }
    9385                }
    94                 $message .= '</table>';
    9586               
    9687                $sent = self::send_email(array(get_bloginfo('admin_email')=>get_bloginfo('name')), $form[0]->destinatary, '['.get_bloginfo('name').'] Submitted Form: '.$form[0]->name, $message);
  • easy-contact-form-lite/trunk/readme.txt

    r361327 r361926  
    55Requires at least: 3.1
    66Tested up to: 3.1
    7 Stable tag: 1.0.5
     7Stable tag: 1.0.6
    88
    99Add a contact form on any page. Customizable and with validation.
     
    4444== Changelog ==
    4545
     46= 1.0.6 =
     47- Email using plain text to avoid any issues
     48
    4649= 1.0.5 =
    4750- Bug fix
Note: See TracChangeset for help on using the changeset viewer.