需要用 php 运行下面的代码
sendmail -t >/dev/null 2>&1 <<EOF
to:[email protected]
from:[email protected]
subject:我是测试
我是测试
EOF
需要用 php 运行下面的代码
sendmail -t >/dev/null 2>&1 <<EOF
to:[email protected]
from:[email protected]
subject:我是测试
我是测试
EOF
|
RIcterJul 30, 2016
1
能
|
|
phperstarJul 30, 2016
2
弄个 sh 脚本吧,然后用 php exec 函数执行这个脚本吧
|
|
skydiverJul 30, 2016
4
|
|
phperstarJul 30, 2016
5
@c7898585 http://php.net/manual/zh/book.exec.php 放着这么好的手册不看,太浪费呀。。。
|
|
UnisandKJul 30, 2016
6
用 mailgun 多好
|
|
90safeJul 30, 2016
8
shell_exec("sendmail -t >/dev/null 2>&1 <<EOF")
exec("sendmail -t >/dev/null 2>&1 <<EOF") 一般网站禁用 exec 函数,推荐前者。 |
|
90safeJul 30, 2016
9
http://www.jb51.net/article/28241.htm
四个执行命令的函数,不谢 |
|
TinkJul 30, 2016
10
exec
|
|
sneezryJul 30, 2016
11
用 mailgun 吧,每月 10000 封免费,自己的 mail server 多数会进垃圾箱
|
|
KomeijiSatoriJul 31, 2016
13
system();
|