用 php 创建一个 html mailto [英] creating a html mailto with php

查看:32
本文介绍了用 php 创建一个 html mailto的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法在php中使用mail功能,将在html中创建一个mailto链接.(你点击的那种,它会弹出一个窗口)

cannot use the mail function in php, will be creating a mailto link in html instead. (the kind you click on and it pops up a window)

我将邮件正文保存在变量 $body 下,电子邮件地址保存在 $email 下

I have the body of the message saved under a variable $body and the email address saved under $email

<?php

echo"
<a href="mailto: $to  ?body= $body ">
";

?>

我知道代码不起作用,我如何将电子邮件地址和正文变量放入其中?谢谢

I know that code would not work, how do I put the email address and the body variables in there? thanks

推荐答案

echo "";

这篇关于用 php 创建一个 html mailto的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆