16c01-1.php
来自「介绍PHP5的给类型函数应用」· PHP 代码 · 共 17 行
PHP
17 行
<?php// Prepare by setting a timezone, mail() uses this.date_default_timezone_set('America/New_York');// Save some values to send in email, these might have come from any source:$to = 'example@eliw.com';$subject = 'A sample email - Text Only';// Define the headers we want passed. Note that they are separated by \r\n$headers = "From: php@example.com\r\nX-Mailer: Custom PHP Script";// Now the body of the message:$body = "This is our sample email.\n\nHello World!\n\nThat's it for now.";// Finally, send the emailmail($to, $subject, $body, $headers);?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?