English 中文(简体)
页: 1
原标题:regarding cfmail

I m使用共同点,I m对它来说是新的。 我已写了一份法典,用电子邮件把一页交给朋友。 但是,这并不奏效,请告诉我,我我,我必须做些什么?

页: 1

<title>E-Mail this page to your friend</title>

<cfoutput>

<cfform method="post" name="Emailform" action="sendmail.cfm"> 
<table border="0" cellspacing="0" cellpadding="4" width="90%" id="ContactMe">
<tr> 
<td width="30%"><div align="right">Your Name:</div></td> 
<td width="70%"><input type="text" name="name" size="30" /></td> 

<tr> 
<td><div align="right">Friend Email:</div></td> 
<td><input type="text" name="email" size="30" /></td> 

 <tr> 
<td>&nbsp;</td> 
<td> 
<input type="submit" id="submit" name="submit" value="Submit" /> 
<input type="reset" name="reset" value="Reset" /> 
</td>
</table></cfform></cfoutput>

我寄来的电子邮箱:cfm

<cfoutput>
<cfmail to="#email#"
from="do-not-reply@balah balah.com"
subject="#form.name# has referred you a page"
type="html">
Dear #form.name#
blah blah
</cfmail>
<p>Your E-Mail has been sent.</p>
</cfoutput>

我有什么错误? 或者说什么错了?

感谢

最佳回答

If the cfmail call actually has a from address of "do-not-reply@balah balah.com" then it will error due to the space in the email address. If not then you will need to figure out what error is occurring. Wrap your code with the following:

<cftry>
<!--- cfmail code here --->
<cfcatch><cfdump var="#cfcatch#" /><cfabort /></cfcatch>
</cftry>

我不从你的问答和评论中确定,浏览器是否产生“黑白”错误,或者如果你有习惯错误的信息,那么这一尝试/捕获物要么取而代之。

问题回答

暂无回答




相关问题
Angle brackets in php

I want to store angle brackets in a string in PHP because i want to eventually use mail() to send an HTML email out. The following is the code that doesn t seem to work. while(...) { $msg .= "<...

authlogic auto_register feature using my options

I have auto registration working with authlogic using gaizka s version of authlogic_openid which I found on Github since pelle s original addition of the feature seemed to cause issues. http://...

Zend 邮件问题,涉及外国char子+ com子

泽斯德邮局在名称被定为具有外国性质(如“保”)和 com(”)的物品时,就放弃了一种例外(因为邮局(邮局)退回假)。 重新提出以下守则。

How to track an email in Java?

How I can track an email? I m using java on the server side for sending emails. I want to track whether it is delivered , opened, etc... How I can do that ?

Web Link in a mail is not rendering as link in yahoo

string from = "abc@gmail.com"; string to = "xyz@gmail.com,xyz@yahoo.co.in"; string password="abcxyz"; MailMessage mail = new System.Net.Mail.MailMessage(); mail.To.Add(to); mail.From = new ...

SharePoint - Approaching Website Storage Limit Email

How can i go about changing the distribution list as well as the email text for the email that goes out to site collection admin when a site collection approaches it s size limit? Thanks for your ...

How to create an email mailing list

Im creating a coming soon page for a website im developing, and im adding an option for the user to enter their email address so we can email them when the site is up. How do I do this?

CCNet email does not include MSBuild results

We re using CCNet 1.4.4.83 but when an MSBuild task fails, we don t get the MSBuild results (i.e. missing file or whatever reason the compile failed) in the email notification. I do see the build ...

热门标签