Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Bill #1
CFMail Urgg
Can one see what the heck is wrong with this. It runs through the process
and gives the Thank you message but doesn't send the email.
<cfparam name="cmd" default="none">
<link href="/assets/styles/global.css" rel="stylesheet" type="text/css">
<cfif #cmd# IS "none">
<script language="JavaScript" type="text/javascript">
function validateFields(form) {
if (form.name.value == "") {
alert('Please Enter Your Name');
form.name.focus();
return false;
}
if (form.email.value.indexOf('@') < 0) {
alert('Please Enter a Valid E-Mail Address');
form.email.focus();
return false;
}
if (form.subject.value == "") {
alert('Please Enter a Subject');
form.subject.focus();
return false;
}
if (form.message.value == "") {
alert('Please Enter Your Message');
form.message.focus();
return false;
}
return true;
}
</script>
<FIELDSET>
<legend>Contact Us</legend>
<blockquote>
<strong><p align="center"> <a
href="http://www.mysite.com">MySite.com</a> & Echo Web Technologies <br>
P.O. Box 41 Echo Bay Ontario,<br>
Canada. P0S-1C0<br>
Info <em>at</em> DataPacks <em>dot</em> Com
</p></strong>
</blockquote>
<form onsubmit="return validateFields(this);" method="post"
action="index.cfm?sector=po&page=contact&cmd=send" >
<table align="center" border="0" cellpadding="5" cellspacing="0"
class="tabularData">
<tr>
<td align="right"><p>Name:</p></td>
<td align="left"><input type="text" name="name" /> </td>
</tr>
<tr>
<td align="right"><p>E-mail:</p></td>
<td align="left"><input type="text" name="email" /> </td>
</tr>
<tr>
<td align="right"><p>Web site:</p></td>
<td align="left"><input type="text" name="web_site" /> </td>
</tr>
<tr>
<td align="right"><p>Subject:</p></td>
<td align="left"><input type="text" name="subject" /> </td>
</tr>
<tr>
<td align="right" valign="top"> <p>Message:</p></td>
<td align="left" valign="top"> <textarea name="message" cols="35"
rows="10"></textarea> </td>
</tr>
<tr>
<td></td>
<td align="right"> <div align="left">
<input type="submit" value="Send Message" />
</div></td>
</tr>
</table>
</form>
</FIELDSET>
<!--- #application.siteinfo.aemail# --->
<cfelseif #cmd# EQ "send">
<cfmail to="my@email.com"
replyto="#form.email#" from="#form.name#"
subject="#form.subject#"
type="html"
server="555.555.555.555">
<b>Name:</b> #form.name# <br />
<b>E-mail:</b> #form.email# <br />
<b>Web site:</b> #form.web_site# <br />
<b>Subject:</b> #form.subject# <br />
<b>Message:</b> #form.message#<br />
<br />
This e-mail was generated by AlgomaNow.com Feedback Form.
</cfmail>
<p><b>Thank-You.</b></p>
<p>Your e-mail has been sent to us and we will respond accordingly
shortly. Thank you.</p>
</cfif>
Bill Guest
-
Cfmail help
I am using one page to process 2 different forms. All of the form information is submitted correctly. The email that is generated however arrives... -
CFMAIL and SPF
Today's question revolves around "Sender Policy Framework, or SPF". All of our client email links on our site prompt our users to create and send... -
cfmail help me plz!!
Hello Friends, I am new to CF, and I am trying to use cfmail to send email. satuation in my case is I have IMail as mail server, CF5, and my page... -
<cfmail></cfmail> in a script
I am wondering if I can put <cfmail> tags and code within a javascript script. will the browser recognize it, and perform the instructions? ... -
cfmail - Attribute validation error for tag CFMAIL.
I'm getting the error ' Attribute validation error for tag CFMAIL.' on the code below. All its doing is outputting a text string to the TO: field. ... -
adonis1976 #2
Re: CFMail Urgg
i'm in a dev environment.. and i have to disable my antivirus for email to
work. if possible look at the mail log in your cf administrator. it will say,
connection refused or something like that.. let me know..
adonis1976 Guest
-
Bill #3
Re: CFMail Urgg
It's on the public server. Other mail forms work but for some reason this
one doesn't
Bill
"adonis1976" <webforumsuser@macromedia.com> wrote in message
news:d5b96n$kvc$1@forums.macromedia.com...> i'm in a dev environment.. and i have to disable my antivirus for email to
> work. if possible look at the mail log in your cf administrator. it will
> say,
> connection refused or something like that.. let me know..
>
Bill Guest
-
bforce #4
Re: CFMail Urgg
I've run into this if the "from" attribute was not a recognized e-mail
address even though documentation says that it can be any text string.
from="#form.name#"
Try
from="#form.email#"
"Bill @gmail.com>" <bill.betournay<SpamTrap> wrote in message
news:d5as9k$2c5$1@forums.macromedia.com...> Can one see what the heck is wrong with this. It runs through the process
> and gives the Thank you message but doesn't send the email.
>
> <cfparam name="cmd" default="none">
>
> <link href="/assets/styles/global.css" rel="stylesheet" type="text/css">
> <cfif #cmd# IS "none">
> <script language="JavaScript" type="text/javascript">
> function validateFields(form) {
> if (form.name.value == "") {
> alert('Please Enter Your Name');
> form.name.focus();
> return false;
> }
>
> if (form.email.value.indexOf('@') < 0) {
> alert('Please Enter a Valid E-Mail Address');
> form.email.focus();
> return false;
> }
>
> if (form.subject.value == "") {
> alert('Please Enter a Subject');
> form.subject.focus();
> return false;
> }
>
>
> if (form.message.value == "") {
> alert('Please Enter Your Message');
> form.message.focus();
> return false;
> }
>
> return true;
> }
> </script>
> <FIELDSET>
> <legend>Contact Us</legend>
> <blockquote>
> <strong><p align="center"> <a
> href="http://www.mysite.com">MySite.com</a> & Echo Web Technologies
> <br>
> P.O. Box 41 Echo Bay Ontario,<br>
> Canada. P0S-1C0<br>
> Info <em>at</em> DataPacks <em>dot</em> Com
> </p></strong>
> </blockquote>
> <form onsubmit="return validateFields(this);" method="post"
> action="index.cfm?sector=po&page=contact&cmd=send" >
> <table align="center" border="0" cellpadding="5" cellspacing="0"
> class="tabularData">
> <tr>
> <td align="right"><p>Name:</p></td>
> <td align="left"><input type="text" name="name" /> </td>
> </tr>
> <tr>
> <td align="right"><p>E-mail:</p></td>
> <td align="left"><input type="text" name="email" /> </td>
> </tr>
> <tr>
> <td align="right"><p>Web site:</p></td>
> <td align="left"><input type="text" name="web_site" /> </td>
> </tr>
> <tr>
> <td align="right"><p>Subject:</p></td>
> <td align="left"><input type="text" name="subject" /> </td>
> </tr>
> <tr>
> <td align="right" valign="top"> <p>Message:</p></td>
> <td align="left" valign="top"> <textarea name="message" cols="35"
> rows="10"></textarea> </td>
> </tr>
> <tr>
> <td></td>
> <td align="right"> <div align="left">
> <input type="submit" value="Send Message" />
> </div></td>
> </tr>
> </table>
> </form>
> </FIELDSET>
> <!--- #application.siteinfo.aemail# --->
> <cfelseif #cmd# EQ "send">
> <cfmail to="my@email.com"
> replyto="#form.email#" from="#form.name#"
> subject="#form.subject#"
> type="html"
> server="555.555.555.555">
>
> <b>Name:</b> #form.name# <br />
> <b>E-mail:</b> #form.email# <br />
> <b>Web site:</b> #form.web_site# <br />
> <b>Subject:</b> #form.subject# <br />
> <b>Message:</b> #form.message#<br />
> <br />
> This e-mail was generated by AlgomaNow.com Feedback Form.
> </cfmail>
> <p><b>Thank-You.</b></p>
> <p>Your e-mail has been sent to us and we will respond accordingly
> shortly. Thank you.</p>
> </cfif>
>
bforce Guest



Reply With Quote

