佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 701|回复: 2

PHP - Mail

[复制链接]
发表于 24-4-2006 03:50 PM | 显示全部楼层 |阅读模式

<?php
$to = "you@yahoo.com, me@msn.com, her@hotmail.com";
$subject = "Hi! We detected you";
$body = "Hi,\n\nWe detected you are using illegal copy of microsoft OS.\n We will be around soon.";
if (mail($to, $subject, $body)) {
  echo("<p>Message successfully sent!</p>" );
} else {
  echo("<p>Message delivery failed...</p>" );
}
?>

以上的是没问题 成功骗了 很多朋友。
但我要 From (sender) show in my inbox when i receive
我谁知道如何吗?
$from <<<< 有这个 code 吗?
回复

使用道具 举报


ADVERTISEMENT

发表于 24-4-2006 06:43 PM | 显示全部楼层
作弄人的东西好玩,我帮你:

<?php
$to      = 'you@yahoo.com, me@msn.com, her@hotmail.com';
$subject = 'Hi! We detected you';
$message = 'Hi,\n\nWe detected you are using illegal copy of microsoft OS.\n We will be around soon.';
$headers = 'From: billgate@microsoft.com' . "\r\n" .
   'Reply-To: billgate@microsoft.com' . "\r\n" .
   'X-Mailer: hotmail';

mail($to, $subject, $message, $headers);
?>
回复

使用道具 举报

 楼主| 发表于 25-4-2006 07:36 AM | 显示全部楼层
原帖由 exiang 于 24-4-2006 06:43 PM 发表
作弄人的东西好玩,我帮你:

<?php
$to      = 'you@yahoo.com, me@msn.com, her@hotmail.com';
$subject = 'Hi! We detected you';
$message = 'Hi,\n\nWe ...


谢谢前辈!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 9-3-2025 10:16 PM , Processed in 0.115269 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表