Forums

Email is blank

smdstudios 23 Jul, 2013
When submitting a form I am getting a blank email.

I've created the email template and reviewed as much of the forum as possible with no luck before posting this. Please help!

below is the debug info....

Empty message body
Data Array: 
Array
(
    [chronoform] => Order-Form
    [event] => submit
    [Itemid] => 147
    [option] => com_chronoforms
    [view] => form
    [input_text_1] => Neil
    [input_text_2] => Belliveau
    [input_text_4] => 
    [input_text_8] => PO Box 982
    [input_text_10] => 
    [input_text_11] => ZEPHYR COVE
    [state] => NV
    [country] => US
    [input_text_14] => 89448
    [input_text_15] => 
    [input_text_16] => neil@tahoecreativesolutions.com
    [input_text_17] => 4076374852
    [input_radio_18] => Contract Lab
    [input_text_19] => 
    [input_radio_20] => Blood
    [input_text_21] => 
    [input_radio_22] => DNA
    [input_text_23] => 
    [input_radio_24] => G1 / MP Sample Two Pack
    [input_submit_25] => Submit
    [879a4659f1b009d50f9006ae76e4b0ee] => 1
)
Validation Errors: 
Array
(
)
Thank you
Debug Data
email
10
Result
An email has been SENT successfully from (Admin)info@sierramolecular.com to smdstudios@gmail.com
Body
Attachments
array ( )
GreyHead 26 Jul, 2013
Hi smdstudios,

I don't see any sing of an Email template here ;-( What do you have in the template?

Bob
smdstudios 26 Jul, 2013

Hi smdstudios,

I don't see any sing of an Email template here ;-( What do you have in the template?

Bob




I used the auto-generate template in the template wizzard
GreyHead 27 Jul, 2013
Hi smdstudios,

Is there any HTML in the Email Template box?

Bob
smdstudios 29 Jul, 2013

Hi smdstudios,

Is there any HTML in the Email Template box?

Bob



Yes this is in the template under the email action.

<table cellpadding="5" cellspacing="5" border="0">
	<tr>
		<td>
			<strong>First Name</strong>
		</td>
		<td>
			{input_text_1}
		</td>
	</tr>
	<tr>
		<td>
			<strong>Last Name</strong>
		</td>
		<td>
			{input_text_2}
		</td>
	</tr>
	<tr>
		<td>
			<strong>Institution</strong>
		</td>
		<td>
			{input_text_4}
		</td>
	</tr>
	<tr>
		<td>
			<strong>address 1: Street</strong>
		</td>
		<td>
			{input_text_8}
		</td>
	</tr>
	<tr>
		<td>
			<strong>Address 2</strong>
		</td>
		<td>
			{input_text_10}
		</td>
	</tr>
	<tr>
		<td>
			<strong>City</strong>
		</td>
		<td>
			{input_text_11}
		</td>
	</tr>
	<tr>
		<td colspan='2'>
			<?php
if ( !$mainframe->isSite() ) { return; }
$USStateArray = Array(
'AK' => 'Alaska',
'AL' => 'Alabama',
'AR' => 'Arkansas',
'AZ' => 'Arizona',
'CA' => 'California',
'CO' => 'Colorado',
'CT' => 'Connecticut',
'DC' => 'District of Columbia',
'DE' => 'Delaware',
'FL' => 'Florida',
'GA' => 'Georgia',
'HI' => 'Hawaii',
'IA' => 'Iowa',
'ID' => 'Idaho',
'IL' => 'Illinois',
'IN' => 'Indiana',
'KS' => 'Kansas',
'KY' => 'Kentucky',
'LA' => 'Louisiana',
'MA' => 'Massachusetts',
'MD' => 'Maryland',
'ME' => 'Maine',
'MI' => 'Michigan',
'MN' => 'Minnesota',
'MO' => 'Missouri',
'MS' => 'Mississippi',
'MT' => 'Montana',
'NC' => 'North Carolina',
'MD' => 'North Dakota',
'ME' => 'Nebraska',
'NH' => 'New Hampshire',
'NJ' => 'New Jersey',
'NM' => 'New Mexico',
'NV' => 'Nevada',
'NY' => 'New York',
'OH' => 'Ohio',
'OK' => 'Oklahoma',
'OR' => 'Oregon',
'PA' => 'Pennsylvania',
'PR' => 'Puerto Rico',
'RI' => 'Rhode Island',
'SC' => 'South Carolina',
'SD' => 'South Dakota',
'TN' => 'Tennessee',
'TX' => 'Texas',
'UT' => 'Utah',
'VA' => 'Virginia',
'VT' => 'Vermont',
'WA' => 'Washington',
'WI' => 'Wisconsin',
'WV' => 'West Virginia',
'WY' => 'Wyoming' );
$state = JRequest::getString('state', '', 'post');
$options = array();
foreach ( $USStateArray as $abb => $name ) {
  $options. = JHTML::_('select.option', $abb, $name);
}
$select_state = JHTML::_('select.genericlist', $options, 'state.', 'size="1"', 'value', 'text', $state);
?>
<div class="form_item">
  <div class="form_element cf_dropdown">
    <?php echo $select_state; ?>
  </div>
  <div class="cfclear"> </div>
</div>
		</td>
	</tr>
	<tr>
		<td colspan='2'>
			<?php
if ( !$mainframe->isSite() ) { return; }
$CountryArray = Array(
'AD' => 'Andorra',
	'AE' => 'United Arab Emirates',
	'AF' => 'Afghanistan',
	'AG' => 'Antigua & Barbuda',
	'AI' => 'Anguilla',
	'AL' => 'Albania',
	'AM' => 'Armenia',
	'AN' => 'Netherlands Antilles',
	'AO' => 'Angola',
	'AQ' => 'Antarctica',
	'AR' => 'Argentina',
	'AS' => 'American Samoa',
	'AT' => 'Austria',
	'AU' => 'Australia',
	'AW' => 'Aruba',
	'AZ' => 'Azerbaijan',
	'BA' => 'Bosnia and Herzegovina',
	'BB' => 'Barbados',
	'BD' => 'Bangladesh',
	'BE' => 'Belgium',
	'BF' => 'Burkina Faso',
	'BG' => 'Bulgaria',
	'BH' => 'Bahrain',
	'BI' => 'Burundi',
	'BJ' => 'Benin',
	'BM' => 'Bermuda',
	'BN' => 'Brunei Darussalam',
	'BO' => 'Bolivia',
	'BR' => 'Brazil',
	'BS' => 'Bahama',
	'BT' => 'Bhutan',
	'BU' => 'Burma (no longer exists)',
	'BV' => 'Bouvet Island',
	'BW' => 'Botswana',
	'BY' => 'Belarus',
	'BZ' => 'Belize',
	'CA' => 'Canada',
	'CC' => 'Cocos (Keeling) Islands',
	'CF' => 'Central African Republic',
	'CG' => 'Congo',
	'CH' => 'Switzerland',
	'CI' => 'Côte D\'ivoire (Ivory Coast)',
	'CK' => 'Cook Iislands',
	'CL' => 'Chile',
	'CM' => 'Cameroon',
	'CN' => 'China',
	'CO' => 'Colombia',
	'CR' => 'Costa Rica',
	'CS' => 'Czechoslovakia (no longer exists)',
	'CU' => 'Cuba',
	'CV' => 'Cape Verde',
	'CX' => 'Christmas Island',
	'CY' => 'Cyprus',
	'CZ' => 'Czech Republic',
	'DD' => 'German Democratic Republic (no longer exists)',
	'DE' => 'Germany',
	'DJ' => 'Djibouti',
	'DK' => 'Denmark',
	'DM' => 'Dominica',
	'DO' => 'Dominican Republic',
	'DZ' => 'Algeria',
	'EC' => 'Ecuador',
	'EE' => 'Estonia',
	'EG' => 'Egypt',
	'EH' => 'Western Sahara',
	'ER' => 'Eritrea',
	'ES' => 'Spain',
	'ET' => 'Ethiopia',
	'FI' => 'Finland',
	'FJ' => 'Fiji',
	'FK' => 'Falkland Islands (Malvinas)',
	'FM' => 'Micronesia',
	'FO' => 'Faroe Islands',
	'FR' => 'France',
	'FX' => 'France, Metropolitan',
	'GA' => 'Gabon',
	'GB' => 'United Kingdom (Great Britain)',
	'GD' => 'Grenada',
	'GE' => 'Georgia',
	'GF' => 'French Guiana',
	'GH' => 'Ghana',
	'GI' => 'Gibraltar',
	'GL' => 'Greenland',
	'GM' => 'Gambia',
	'GN' => 'Guinea',
	'GP' => 'Guadeloupe',
	'GQ' => 'Equatorial Guinea',
	'GR' => 'Greece',
	'GS' => 'South Georgia and the South Sandwich Islands',
	'GT' => 'Guatemala',
	'GU' => 'Guam',
	'GW' => 'Guinea-Bissau',
	'GY' => 'Guyana',
	'HK' => 'Hong Kong',
	'HM' => 'Heard & McDonald Islands',
	'HN' => 'Honduras',
	'HR' => 'Croatia',
	'HT' => 'Haiti',
	'HU' => 'Hungary',
	'ID' => 'Indonesia',
	'IE' => 'Ireland',
	'IL' => 'Israel',
	'IN' => 'India',
	'IO' => 'British Indian Ocean Territory',
	'IQ' => 'Iraq',
	'IR' => 'Islamic Republic of Iran',
	'IS' => 'Iceland',
	'IT' => 'Italy',
	'JM' => 'Jamaica',
	'JO' => 'Jordan',
	'JP' => 'Japan',
	'KE' => 'Kenya',
	'KG' => 'Kyrgyzstan',
	'KH' => 'Cambodia',
	'KI' => 'Kiribati',
	'KM' => 'Comoros',
	'KN' => 'St. Kitts and Nevis',
	'KP' => 'Korea, Democratic People\'s Republic of',
	'KR' => 'Korea, Republic of',
	'KW' => 'Kuwait',
	'KY' => 'Cayman Islands',
	'KZ' => 'Kazakhstan',
	'LA' => 'Lao People\'s Democratic Republic',
	'LB' => 'Lebanon',
	'LC' => 'Saint Lucia',
	'LI' => 'Liechtenstein',
	'LK' => 'Sri Lanka',
	'LR' => 'Liberia',
	'LS' => 'Lesotho',
	'LT' => 'Lithuania',
	'LU' => 'Luxembourg',
	'LV' => 'Latvia',
	'LY' => 'Libyan Arab Jamahiriya',
	'MA' => 'Morocco',
	'MC' => 'Monaco',
	'MD' => 'Moldova, Republic of',
	'MG' => 'Madagascar',
	'MH' => 'Marshall Islands',
	'ML' => 'Mali',
	'MN' => 'Mongolia',
	'MM' => 'Myanmar',
	'MO' => 'Macau',
	'MP' => 'Northern Mariana Islands',
	'MQ' => 'Martinique',
	'MR' => 'Mauritania',
	'MS' => 'Monserrat',
	'MT' => 'Malta',
	'MU' => 'Mauritius',
	'MV' => 'Maldives',
	'MW' => 'Malawi',
	'MX' => 'Mexico',
	'MY' => 'Malaysia',
	'MZ' => 'Mozambique',
	'NA' => 'Namibia',
	'NC' => 'New Caledonia',
	'NE' => 'Niger',
	'NF' => 'Norfolk Island',
	'NG' => 'Nigeria',
	'NI' => 'Nicaragua',
	'NL' => 'Netherlands',
	'NO' => 'Norway',
	'NP' => 'Nepal',
	'NR' => 'Nauru',
	'NT' => 'Neutral Zone (no longer exists)',
	'NU' => 'Niue',
	'NZ' => 'New Zealand',
	'OM' => 'Oman',
	'PA' => 'Panama',
	'PE' => 'Peru',
	'PF' => 'French Polynesia',
	'PG' => 'Papua New Guinea',
	'PH' => 'Philippines',
	'PK' => 'Pakistan',
	'PL' => 'Poland',
	'PM' => 'St. Pierre & Miquelon',
	'PN' => 'Pitcairn',
	'PR' => 'Puerto Rico',
	'PT' => 'Portugal',
	'PW' => 'Palau',
	'PY' => 'Paraguay',
	'QA' => 'Qatar',
	'RE' => 'Réunion',
	'RO' => 'Romania',
	'RU' => 'Russian Federation',
	'RW' => 'Rwanda',
	'SA' => 'Saudi Arabia',
	'SB' => 'Solomon Islands',
	'SC' => 'Seychelles',
	'SD' => 'Sudan',
	'SE' => 'Sweden',
	'SG' => 'Singapore',
	'SH' => 'St. Helena',
	'SI' => 'Slovenia',
	'SJ' => 'Svalbard & Jan Mayen Islands',
	'SK' => 'Slovakia',
	'SL' => 'Sierra Leone',
	'SM' => 'San Marino',
	'SN' => 'Senegal',
	'SO' => 'Somalia',
	'SR' => 'Suriname',
	'ST' => 'Sao Tome & Principe',
	'SU' => 'Union of Soviet Socialist Republics (no longer exists)',
	'SV' => 'El Salvador',
	'SY' => 'Syrian Arab Republic',
	'SZ' => 'Swaziland',
	'TC' => 'Turks & Caicos Islands',
	'TD' => 'Chad',
	'TF' => 'French Southern Territories',
	'TG' => 'Togo',
	'TH' => 'Thailand',
	'TJ' => 'Tajikistan',
	'TK' => 'Tokelau',
	'TM' => 'Turkmenistan',
	'TN' => 'Tunisia',
	'TO' => 'Tonga',
	'TP' => 'East Timor',
	'TR' => 'Turkey',
	'TT' => 'Trinidad & Tobago',
	'TV' => 'Tuvalu',
	'TW' => 'Taiwan, Province of China',
	'TZ' => 'Tanzania, United Republic of',
	'UA' => 'Ukraine',
	'UG' => 'Uganda',
	'UM' => 'United States Minor Outlying Islands',
	'US' => 'United States of America',
	'UY' => 'Uruguay',
	'UZ' => 'Uzbekistan',
	'VA' => 'Vatican City State (Holy See)',
	'VC' => 'St. Vincent & the Grenadines',
	'VE' => 'Venezuela',
	'VG' => 'British Virgin Islands',
	'VI' => 'United States Virgin Islands',
	'VN' => 'Viet Nam',
	'VU' => 'Vanuatu',
	'WF' => 'Wallis & Futuna Islands',
	'WS' => 'Samoa',
	'YD' => 'Democratic Yemen (no longer exists)',
	'YE' => 'Yemen',
	'YT' => 'Mayotte',
	'YU' => 'Yugoslavia',
	'ZA' => 'South Africa',
	'ZM' => 'Zambia',
	'ZR' => 'Zaire',
	'ZW' => 'Zimbabwe' );
$country = JRequest::getString('country', '', 'post');
$options = array();
foreach ( $CountryArray as $abb => $name ) {
  $options. = JHTML::_('select.option', $abb, $name);
}
$select_country = JHTML::_('select.genericlist', $options, 'country.', 'size="1"', 'value', 'text', $country);
?>
<div class="form_item">
  <div class="form_element cf_dropdown">
    <?php echo $select_country; ?>
  </div>
  <div class="cfclear"> </div>
</div>
		</td>
	</tr>
	<tr>
		<td>
			<strong>Zip / Postal Code</strong>
		</td>
		<td>
			{input_text_14}
		</td>
	</tr>
	<tr>
		<td>
			<strong>Province / Region</strong>
		</td>
		<td>
			{input_text_15}
		</td>
	</tr>
	<tr>
		<td>
			<strong>Email</strong>
		</td>
		<td>
			{input_text_16}
		</td>
	</tr>
	<tr>
		<td>
			<strong>Phone</strong>
		</td>
		<td>
			{input_text_17}
		</td>
	</tr>
	<tr>
		<td>
			<strong>What Industry Do You Work In?</strong>
		</td>
		<td>
			{input_radio_18}
		</td>
	</tr>
	<tr>
		<td>
			<strong>Other</strong>
		</td>
		<td>
			{input_text_19}
		</td>
	</tr>
	<tr>
		<td>
			<strong>Identify All Sample Matrices You Work With?</strong>
		</td>
		<td>
			{input_radio_20}
		</td>
	</tr>
	<tr>
		<td>
			<strong>Other</strong>
		</td>
		<td>
			{input_text_21}
		</td>
	</tr>
	<tr>
		<td>
			<strong>Identify All Targets You Work With?</strong>
		</td>
		<td>
			{input_radio_22}
		</td>
	</tr>
	<tr>
		<td>
			<strong>Other</strong>
		</td>
		<td>
			{input_text_23}
		</td>
	</tr>
	<tr>
		<td>
			<strong>Select Sample To Try</strong>
		</td>
		<td>
			{input_radio_24}
		</td>
	</tr>
</table>
GreyHead 13 Aug, 2013
Hi smdstudios,

Probably the PHP in the template isn't helping. I'd suggest that you strip that out and replace it with just the drop-down names like {state}.

Bob
This topic is locked and no more replies can be posted.