Me pasaron un codigo en CF para que vea porque no esta llegando los mails que se envian, encima estos no los hice yo y en CF estoy cero...no entiendo nada...programo en php....pero bue...
Alguien sabe si esta bien este form?
Código PHP:
<form action="<cfoutput>#cgi.SCRIPT_NAME#</cfoutput>" method="post" name="formulario" id="formulario" onSubmit="return beforeSubmit()">
<br>
<table width="100%" border="0" cellpadding="0" cellspacing="3" class="tx">
<tr class="TextoBase">
<td width="32%" height="20"><div align="right">First Name *</div></td>
<td width="68%" height="20"><input name="firstname" type="text" class="TextoBase" id="firstname" size="30" value="<cfoutput>#firstname#</cfoutput>"></td>
</tr>
<tr class="TextoBase">
<td height="20"><div align="right">Last Name *</div></td>
<td height="20"><input name="lastname" type="text" class="TextoBase" id="lastname" size="30" value="<cfoutput>#lastname#</cfoutput>"></td>
</tr><tr class="TextoBase">
<td height="20"><div align="right">Address *</div></td>
<td height="20">
<input name="address1" type="text" class="TextoBase" id="address1" size="30" value="<cfoutput>#address1#</cfoutput>"></td>
</tr>
<tr class="TextoBase">
<td height="20"><div align="right">Address *</div></td>
<td height="20"><input name="address2" type="text" class="TextoBase" id="address2" size="30" value="<cfoutput>#address2#</cfoutput>"></td>
</tr>
<tr class="TextoBase">
<td height="20"><div align="right">City *</div></td>
<td height="20"><input name="city" type="text" class="TextoBase" id="city" size="30" value="<cfoutput>#city#</cfoutput>"></td>
</tr>
<tr class="TextoBase">
<td height="20"><div align="right">States *</div></td>
<td height="20"><select name="states" class="TextoBase" id="states" tabindex="9">
<option value="0" selected>Select One</option>
<cfoutput query="states_">
<option value="#sta_id#" <cfif #states# EQ #sta_id#>selected</cfif>>#sta_desc#(#sta_symbol#)</option>
</cfoutput>
</select></td>
</tr>
<tr class="TextoBase">
<td height="20"><div align="right">Zip Code *</div></td>
<td height="20"><input name="zip" type="text" class="TextoBase" id="zip" size="30" value="<cfoutput>#zip#</cfoutput>"></td>
</tr>
<tr class="TextoBase">
<td height="20"><div align="right">Country</div></td>
<td height="20"><input name="country" type="text" class="TextoBase" id="country" size="30" value="<cfoutput>#country#</cfoutput>"></td>
</tr>
<tr class="TextoBase">
<td height="20"><div align="right">Phone *</div></td>
<td height="20"><input name="phone" type="text" class="TextoBase" id="phone" size="30" value="<cfoutput>#phone#</cfoutput>">
</td>
</tr>
<tr class="TextoBase">
<td height="20"><div align="right">Fax</div></td>
<td height="20"><input name="fax" type="text" class="TextoBase" id="fax" size="30" value="<cfoutput>#fax#</cfoutput>"></td>
</tr>
<tr class="TextoBase">
<td height="20"><div align="right"></div></td>
<td height="20">
<input name="verificador" type="hidden" id="verificador" value="false">
</td>
</tr>
<tr class="TextoBase">
<td height="20"><div align="right">E-mail *</div></td>
<td height="20"><input name="email" type="text" class="TextoBase" id="email" size="30" value="<cfoutput>#email#</cfoutput>"></td>
</tr>
<tr class="TextoBase">
<td height="20"><div align="right">Confirm E-mail * </div></td>
<td height="20"><input name="emailConfirm" type="text" class="TextoBase" id="emailConfirm" size="30" value="<cfoutput>#emailconfirm#</cfoutput>"></td>
</tr>
<tr class="TextoBase">
<td height="20"><div align="right">Comments</div></td>
<td height="20"><textarea name="comments" cols="30" class="TextoBase" id="comments"><cfoutput>#comments#</cfoutput></textarea></td>
</tr>
<!--<tr class="TextoBase">
<td height="33" valign="top"><div align="right">
<input name="newsletter" type="checkbox" class="TextoBase" id="newsletter" onClick="checkBoxes(document.formulario, this);" value=1>
</div></td>
<td height="33" valign="bottom"><strong>Newsletter</strong><br>
Get information on rate and guideline changes, as well as new and existing products and programs.</td>
</tr>-->
<tr class="TextoBase">
<td height="20" colspan="2"><div align="center">
<input name="Submit" type="submit" class="TextoBase" value="Submit">
</div></td>
</tr>
</table>
</form></td>
Código PHP:
<cfset application.mail.usernam ="[email protected]">
<cfset application.mail.password ="elpass">
<cfset application.mail.server ="scriptmail.mail.net">
<cfset application.mail.sender ="Server <[email protected]>">
<!--- mail@mail.com --->
<cfset application.mail.qa ="[email protected]">
<cfset application.mail.webmaster ="Webmaster <[email protected]>">
<cfset application.contact.webmaster ="[email protected]">