Работа с почтой. Ресурсы.
Казалось бы, что может быть проще работы с электронной почтой. Каждый день мы получаем и отправляем (не буду называть порядок, но очень много) электронных сообщений. Все действительно очень просто. Всего лишь до того момента, пока Вы сами не пишите программу для работы с почтой.
На этой странице Вы найдете ссылки на
Статьи на русском языке
- Отправка почты средствами PHP
http://www.phpclub.ru/detail/article/mail
Обзор способов отправки, отправка писем с вложениями и с картинками, альтернативные способы отправки писем. Настройка серверов. Как сделать веб-доступ к почте. MIME в разрезе. Примеры исходных кодов.
- Отправка писем через PHP
Разделы из документации по PHP
В документации есть много полезных комментариев пользователей и примеров скриптов для работы с почтой в PHP
- Mail Functions
- IMAP, POP3 and NNTP Functions
Стандарты. Основное. На английском языке.
- RFC 821 – Simple Mail Transfer Protocol
- RFC 2821 – Simple Mail Transfer Protocol
http://www.faqs.org/rfcs/rfc2821.html
Новая версия.
This document is a self-contained specification of the basic protocol for the Internet electronic mail transport. It consolidates, updates and clarifies, but doesn't add new or change existing functionality.
- RFC 822 – Standard for the format of ARPA Internet text messages
- RFC 2822 – Internet Message Format
http://www.faqs.org/rfcs/rfc2822.html
This standard specifies a syntax for text messages that are sent between computer users, within the framework of electronic mail messages. This standard supersedes the one specified in Request For Comments (RFC) 822, Standard for the Format of ARPA Internet Text Messages, updating it to reflect current practice and incorporating incremental changes that were specified in other RFCs.
- RFC 1939 – Post Office Protocol – Version 3
- RFC 2060 – Internet Message Access Protocol – Version 4rev1
- RFC 2076 – Common Internet Message Headers
http://www.faqs.org/rfcs/rfc2076.html
This memo contains a table of commonly occurring headers in headings of e-mail messages. The document compiles information from other RFCs such as RFC 822, RFC 1036, RFC 1123, RFC 1327, RFC 1496, RFC 1521, RFC 1766, RFC 1806, RFC 1864 and RFC 1911. A few commonly occurring headers which are not defined in RFCs are also included. For each header, the memo gives a short description and a reference to the RFC in which the header is defined.
Стандарты. Дополнительное. На английском языке.
- RFC 1521 – MIME (Multipurpose Internet Mail Extensions) Part One: Mechanisms for Specifying and Describing the Format of Internet Message Bodies
- RFC 2045 – Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies
http://www.faqs.org/rfcs/rfc2045.html
A MIME-Version header field.
A Content-Type header field, generalized from
RFC 1049, which can be used to specify the media type and subtype of data in the body of a message and to fully specify the native representation (canonical form) of such data.
A Content-Transfer-Encoding header field, which can be used to specify both the encoding transformation that was applied to the body and the domain of the result.
Two additional header fields that can be used to further describe the data in a body, the Content-ID and Content-Description header fields.
- RFC 2047 – MIME Part Three: Message Header Extensions for Non-ASCII Text
http://www.faqs.org/rfcs/rfc2047.html
RFC 2045 describes a mechanism for denoting textual body parts which are coded in various character sets, as well as methods for encoding such body parts as sequences of printable US-ASCII characters. This memo describes similar techniques to allow the encoding of non-ASCII text in various portions of a
RFC 822 [2] message header, in a manner which is unlikely to confuse existing message handling software.
- RFC 2049 – MIME Part Five: Conformance Criteria and Examples
http://www.faqs.org/rfcs/rfc2049.html
This document describes what portions of MIME must be supported by a conformant MIME implementation. It also describes various pitfalls of contemporary messaging systems as well as the canonical encoding model MIME is based on.
- RFC 2231 – MIME Parameter Value and Encoded Word Extensions: Character Sets, Languages, and Continuations
http://www.faqs.org/rfcs/rfc2231.html
This memo defines extensions to the
RFC 2045 media type and
RFC 2183 disposition parameter value mechanisms to provide (1) a means to specify parameter values in character sets other than US-ASCII, (2) to specify the language to be used should the value be displayed, and (3) a continuation mechanism for long parameter values to avoid problems with header line wrapping.
- RFC 4096 – Policy-Mandated Labels Such as Adv:" in Email Subject Headers Considered Ineffective At Best
http://www.faqs.org/rfcs/rfc4096.html
This memo discusses policies that require certain labels to be inserted in the Subject:" header of a mail message. Such policies are difficult to specify accurately while remaining compliant with key RFCs and are likely to be ineffective at best. This memo discusses an alternate, standards-compliant approach that is significantly simpler to specify and is somewhat less likely to be ineffective.
Библиотеки для работы с почтой. Библиотеки библиотек.
- PEAR
- Библиотека скриптов для работы с почтой на PHPClub
http://phpclub.ru/?m=app&s=43
Очень много разных скриптов. Делают с почтой практически все, что только возможно придумать. Описания на английском языке.
- Библиотека скриптов для работы с почтой на WebScript.ru
Библиотеки для работы с почтой. Конкретные решения.
- PHPMailer – Full featured email transfer class for PHP
http://phpmailer.sourceforge.net/
Может отправлять почту с использованием практически всех возможных фич. Несколько вариантов сообщений в одном теле (текстовое и html), SMTP-аутентификация, поддержка вложенных изображений, attachments. Документация, FAQ, примеры использования (на английском языке).
- *Учебник по PHPMailer на русском языке**
- mail.pop
- HTML Mime mail
http://www.phpguru.org/static/mime.mail.html
Класс может отправлять HTML Email; HTML Email with embedded images; HTML Email with attachments; HTML Email with embedded images and attachments; Text email; Text email with attachments.
- fake sendmail for windows
http://glob.com.au/sendmail/
sendmail.exe is a simple windows console application that emulates sendmail's -t option to deliver emails piped via stdin. It is intended to ease running unix code that has /usr/lib/sendmail hardcoded as an email delivery means. It doesn't support deferred delivery, and requires an smtp server to perform the actual delivery of the messages.
Дополнительная информация
- Работа с почтой. Часто задаваемые вопросы.
- Email Injection (на английском языке)
- Защита от спама на сайте
- Журнал отправляемых сообщений
http://popoff.donetsk.ua/text/work/libs/mail/log/
Описание журнала даёт представление о том, как устроена и как работает подсистема массовой рассылки почтовых сообщений. Подсистема позволяет учитывать приоритеты почтовых сообщений и большое количество разнообразных ограничений на нагрузку почтового сервера. Сообщения рассылаются сессиями по нескольку сообщений за одну сессию.
- Последние сообщения о работе с почтой в PHP на форуме PHPClub