16c03-1.php
来自「介绍PHP5的给类型函数应用」· PHP 代码 · 共 19 行
PHP
19 行
<?php// Prepare by setting a timezone, mail() uses this.date_default_timezone_set('America/New_York');// Create an array of email addresses that we are going to send to every// time this script is called.$addresses = array('example@eliw.com', 'php@example.com', 'crossbow@example.com', 'eliwhite@example.com', 'SiegfriedFaust@example.com');// Now in preparation for sending, convert all of these into a BCC list:$list = implode(',', $addresses);// Send the email to the 'dummy' address:mail('mailing-list@example.com', 'Our next Newsletter Edition', " This is our next edition of our Newsletter. Well, I guessthat about sums it up. Not really much to say right now.", "From: mailing-list@example.com\r\nBcc: {$list}");?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?