PHPMailer_v2.0.0
所属分类:WEB开发
开发工具:PHP
文件大小:109KB
下载次数:22
上传日期:2008-04-02 19:57:09
上 传 者:
管理员
说明: PHPMailer 是一个专门用于 PHP 语言的邮件发送类,功能十分地强大,丰富了 PHP 本身单一的 mail() 函数。支持 SMTP 等甚至于附件。
PHPMailer 遵守 LGPL 授权,可以免费下载,当前版本是PHPMailer v2.0.0 rc2 更新于2007 年11月16日。
(PHPMailer is a PHP language devoted to e-mail category, functional and very powerful, enriching the PHP itself a single mail () function. Support for SMTP, etc. even annex. PHPMailer comply with LGPL authorization, can be downloaded for free, the current version of PHPMailer v2.0.0 rc2 update in November 16, 2007.)
文件列表:
PHPMailer_v2.0.0 (0, 2007-12-01)
PHPMailer_v2.0.0\ChangeLog.txt (9989, 2007-12-02)
PHPMailer_v2.0.0\class.phpmailer.php (51510, 2007-12-01)
PHPMailer_v2.0.0\class.pop3.php (10034, 2007-11-08)
PHPMailer_v2.0.0\class.smtp.php (32438, 2007-11-09)
PHPMailer_v2.0.0\codeworxtech.html (8133, 2007-11-16)
PHPMailer_v2.0.0\docs (0, 2007-12-01)
PHPMailer_v2.0.0\docs\extending.html (3928, 2004-02-18)
PHPMailer_v2.0.0\docs\faq.html (2649, 2002-08-26)
PHPMailer_v2.0.0\docs\pop3_article.txt (4344, 2007-11-12)
PHPMailer_v2.0.0\docs\use_gmail.txt (1350, 2007-11-09)
PHPMailer_v2.0.0\examples (0, 2007-12-01)
PHPMailer_v2.0.0\examples\contents.html (555, 2007-11-07)
PHPMailer_v2.0.0\examples\images (0, 2007-12-01)
PHPMailer_v2.0.0\examples\images\bkgrnd.gif (49, 2007-11-07)
PHPMailer_v2.0.0\examples\images\phpmailer.gif (4756, 2007-11-07)
PHPMailer_v2.0.0\examples\images\phpmailer.png (3506, 2007-11-07)
PHPMailer_v2.0.0\examples\images\phpmailer_mini.gif (1042, 2007-11-08)
PHPMailer_v2.0.0\examples\index.html (3052, 2007-11-07)
PHPMailer_v2.0.0\examples\pop3_before_smtp_test.php (707, 2007-11-08)
PHPMailer_v2.0.0\examples\test1.php (598, 2007-12-01)
PHPMailer_v2.0.0\language (0, 2007-12-01)
PHPMailer_v2.0.0\language\phpmailer.lang-br.php (1150, 2003-06-14)
PHPMailer_v2.0.0\language\phpmailer.lang-ca.php (1090, 2004-10-16)
PHPMailer_v2.0.0\language\phpmailer.lang-cz.php (1117, 2004-05-25)
PHPMailer_v2.0.0\language\phpmailer.lang-de.php (1246, 2004-06-11)
PHPMailer_v2.0.0\language\phpmailer.lang-dk.php (1117, 2005-04-26)
PHPMailer_v2.0.0\language\phpmailer.lang-en.php (1062, 2003-06-21)
PHPMailer_v2.0.0\language\phpmailer.lang-es.php (1141, 2003-10-05)
PHPMailer_v2.0.0\language\phpmailer.lang-et.php (1149, 2007-11-07)
PHPMailer_v2.0.0\language\phpmailer.lang-fi.php (1197, 2004-10-16)
PHPMailer_v2.0.0\language\phpmailer.lang-fo.php (1238, 2004-06-11)
PHPMailer_v2.0.0\language\phpmailer.lang-fr.php (1162, 2003-10-02)
PHPMailer_v2.0.0\language\phpmailer.lang-hu.php (1106, 2005-04-27)
PHPMailer_v2.0.0\language\phpmailer.lang-it.php (1352, 2003-07-28)
PHPMailer_v2.0.0\language\phpmailer.lang-ja.php (1177, 2004-09-25)
PHPMailer_v2.0.0\language\phpmailer.lang-nl.php (1116, 2003-12-14)
PHPMailer_v2.0.0\language\phpmailer.lang-no.php (1042, 2004-05-25)
PHPMailer_v2.0.0\language\phpmailer.lang-pl.php (1199, 2005-04-27)
PHPMailer_v2.0.0\language\phpmailer.lang-ro.php (1120, 2004-05-25)
... ...
PHPMailer
Full Featured Email Transfer Class for PHP
==========================================
** NOTE:
As of November 2007, PHPMailer has a new project team headed by industry
veteran Andy Prevost (codeworxtech). The first release in more than two
years will focus on fixes, adding ease-of-use enhancements, provide
basic compatibility with PHP4 and PHP5 using PHP5 backwards compatibility
features. A new release is planned before year-end 2007 that will provide
full compatiblity with PHP4 and PHP5, as well as more bug fixes.
We are looking for project developers to assist in restoring PHPMailer to
its leadership position. Our goals are to simplify use of PHPMailer, provide
good documentation and examples, and retain backward compatibility to level
1.7.3 standards.
If you are interested in helping out, visit http://sourceforge.net/phpmailer
and indicate your interest.
**
http://phpmailer.sourceforge.net/
This software is licenced under the LGPL. Please read LICENSE for information on the
software availability and distribution.
Class Features:
- Send emails with multiple TOs, CCs, BCCs and REPLY-TOs
- Redundant SMTP servers
- Multipart/alternative emails for mail clients that do not read HTML email
- Support for 8bit, base***, binary, and quoted-printable encoding
- Uses the same methods as the very popular AspEmail active server (COM) component
- SMTP authentication
- Native language support
- Word wrap, and more!
Why you might need it:
Many PHP developers utilize email in their code. The only PHP function
that supports this is the mail() function. However, it does not expose
any of the popular features that many email clients use nowadays like
HTML-based emails and attachments. There are two proprietary
development tools out there that have all the functionality built into
easy to use classes: AspEmail(tm) and AspMail. Both of these
programs are COM components only available on Windows. They are also a
little pricey for smaller projects.
Since I do Linux development I’ve missed these tools for my PHP coding.
So I built a version myself that implements the same methods (object
calls) that the Windows-based components do. It is open source and the
LGPL license allows you to place the class in your proprietary PHP
projects.
Installation:
Copy class.phpmailer.php into your php.ini include_path. If you are
using the SMTP mailer then place class.smtp.php in your path as well.
In the language directory you will find several files like
phpmailer.lang-en.php. If you look right before the .php extension
that there are two letters. These represent the language type of the
translation file. For instance "en" is the English file and "br" is
the Portuguese file. Chose the file that best fits with your language
and place it in the PHP include path. If your language is English
then you have nothing more to do. If it is a different language then
you must point PHPMailer to the correct translation. To do this, call
the PHPMailer SetLanguage method like so:
// To load the Portuguese version
$mail->SetLanguage("br", "/optional/path/to/language/directory/");
That's it. You should now be ready to use PHPMailer!
A Simple Example:
IsSMTP(); // set mailer to use SMTP
$mail->Host = "smtp1.example.com;smtp2.example.com"; // specify main and backup server
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "jswan"; // SMTP username
$mail->Password = "secret"; // SMTP password
$mail->From = "from@example.com";
$mail->FromName = "Mailer";
$mail->AddAddress("josh@example.net", "Josh Adams");
$mail->AddAddress("ellen@example.com"); // name is optional
$mail->AddReplyTo("info@example.com", "Information");
$mail->WordWrap = 50; // set word wrap to 50 characters
$mail->AddAttachment("/var/tmp/file.tar.gz"); // add attachments
$mail->AddAttachment("/tmp/image.jpg", "new.jpg"); // optional name
$mail->IsHTML(true); // set email format to HTML
$mail->Subject = "Here is the subject";
$mail->Body = "This is the HTML message body
in bold!";
$mail->AltBody = "This is the body in plain text for non-HTML mail clients";
if(!$mail->Send())
{
echo "Message could not be sent.
";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo "Message has been sent";
?>
CHANGELOG
See ChangeLog.txt
Download: http://sourceforge.net/project/showfiles.php?group_id=26031
Andy Prevost
近期下载者:
相关文件:
收藏者: