目前我正致力于使用ckEditor发送/编辑电子邮件
这是我网站的视图
我在想什么
有电子邮件表格 - >使用ckEditor编辑电子邮件表单 - >发送' ckEditor'编辑过的电子邮件
我已经看到其他人发送电子邮件,但我找不到人们使用' ckEditor'编辑电子邮件并同时发送。
主要问题是
(我目前正在使用$mailbody
列出带有html的电子邮件)
答案 0 :(得分:1)
给这个投掷:
<html>
<head>
<title>Comment Form from FCKeditor - Sample</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="noindex, nofollow" name="robots">
<link href="../sample.css" rel="stylesheet" type="text/css"><!--insert correct path to the file on your server-->
<script src="../../fckeditor.js" type="text/javascript"></script><!--insert correct path to the file on your server-->
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<form action="mailto:mail@mail.com?subject=New Comment" method="post" name="form1"><!--insert correct path to your email-->
<table border="0" cellpadding="4" cellspacing="2" width="90%">
<tr valign="top">
<td bgcolor="#CCCCCC">Title</td>
</tr>
<tr valign="top">
<td></td>
</tr>
<tr valign="top">
<td>
<p>Name:<br><input name="textfield1" size="50" type="text"> </p>
<p>Email:<br><input name="textfield2" size="50" type="text"> </p>
<p>Subject:<br><input name="textfield3" size="50" type="text"> </p>
<p>Question or Comment:<br>
<script type="text/javascript">
<!--
// Automatically calculates the editor base path based on the _samples directory.
// This is usefull only for these samples. A real application should use something like this:
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Height = 300 ;
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
oFCKeditor.Create() ;
//-->
</script>
<br></p>
</td>
</tr>
<tr valign="top">
<td><input name="Submit" type="submit" value="Submit"> </td>
</tr>
</table>
</form>
</body>
</html>
根据需要更新表单操作。 干杯