欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

网上找到的两个PHP发送邮件的例子,很不错,贴出来给初学者参考吧不知道是否有兄弟曾贴过,呵呵2_PHP教程

程序员文章站 2022-05-05 11:16:27
...
Advanced Example Here we will show the full capabilities of the PHP mail function. PHP Code: "; $recipient = "Kris Arndt ,npl@nucleus.com"; $subject = "Testing the mail function"; $message = "Hello! This is the body of the message. "; $extra = "From: kris@phpworld.com Reply-To: karn@nucleus.com "; mail ($recipient, $subject, $message, $extra); echo "Sending mail..."; echo "