简体   繁体   English

如何正确使用imap_mail_compose

[英]How to properly use imap_mail_compose

i'm currently programming a webmail script and I don't know how to properly use the imap_mail_compose function. 我目前正在编程Webmail脚本,但我不知道如何正确使用imap_mail_compose函数。

The documentations and examples are not very explicit and there is no examples on google. 文档和示例不是很明确,并且google上没有示例。

My question is : how should i use properly this function with the data i obtain from my form (to,cc,bcc,subject,content,attachements) ? 我的问题是:我应该如何正确使用此函数以及从表单中获取的数据(to,cc,bcc,主题,内容,附件)? Then how to send this message : imap_mail or mail ? 然后如何发送此消息:imap_mail还是mail?

Thanks for your time. 谢谢你的时间。

Consider looking at the likes of PHPMailer by Worx Tech. 考虑看看Worx Tech的PHPMailer之类的东西。 Used it a few times and it's proven very useful in the past proving easy to use and stable. 它使用了几次,并且在过去被证明非常有用,并且易于使用且稳定。

Project site (sourceforge) (PHP 5.xx): http://sourceforge.net/projects/phpmailer/ and project site google code: http://code.google.com/a/apache-extras.org/p/phpmailer/ 项目站点(sourceforge)(PHP 5.xx): http : //sourceforge.net/projects/phpmailer/和项目站点google代码: http : //code.google.com/a/apache-extras.org/p/ phpmailer /

The basic tutorial can be found by visiting the PHPMailer page searching 'PHPMailer' in Google and goto Products > PHPMailer > Support - Tutorial. 可以通过访问PHPMailer页面(在Google中搜索“ PHPMailer”)并转到“产品”>“ PHPMailer”>“支持-教程”来找到基本教程。 Don't let the site put you off, the classes themselves are excellent. 不要让网站让您失望,课程本身很棒。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM