Что такое код mailparse_stream_encode

mailparse_stream_encode

Streams data from source file pointer, apply encoding and write to destfp

Description

Streams data from the source file pointer, apply encoding and write to the destination file pointer.

Parameters

A valid file handle. The file is streamed through the parser.

The destination file handle in which the encoded data will be written.

One of the character encodings supported by the mbstring module.

Return Values

Returns TRUE on success or FALSE on failure.

Examples

Example #1 mailparse_stream_encode example

// email.eml contents: hello, this is some text=hello.
$fp = fopen ( ’email.eml’ , ‘r’ );

mailparse_stream_encode ( $fp , $dest , «quoted-printable» );

// Display new file contents
fpassthru ( $dest );

mailparse_stream_encode

(PECL mailparse >= 0.9.0)

mailparse_stream_encode � �������� ����� �� ����� ��������� � ����� � ���� ����������.

��������

�������� � ������� encoding ����� �� ����� ��������� � ����� � ���� ����������.

������ ����������

���������� �������� ���������� ���������.

���������� �������� ���������� ����������.

���� �� ���������, �������������� ������� mbstring.

������������ ��������

���������� TRUE � ������ ��������� ���������� ��� FALSE � ������ ������������� ������.

�������

������ #1 ������ ������������� mailparse_stream_encode()

// email.eml ��������: hello, this is some text=hello.
$fp = fopen ( ’email.eml’ , ‘r’ );

mailparse_stream_encode ( $fp , $dest , «quoted-printable» );

// ���������� ������� ������ �����
fpassthru ( $dest );

��� ����� ��� mailparse_stream_encode

(������ 4.1.0 — 4.1.2)

mailparse_stream_encode — ������� ����� ������ �� ��������� ��������� �����, �������� ����������� � ������ � destfp.

��������

bool mailparse_stream_encode (resource sourcefp, resource destfp, string encoding)

��� ������� — �����������������. ���������, ��� � �� ���������, ��� ����������������� ��� ������ ������� ����� ���� �������� � ������� ������� ��� ��� ��������������. �� ������ ������������ ��� ������� ������ �� ���� ����� � ����.

��������������!

��� ������� � ��������� ����� ��� �� �����������������; ������� ������ ������ ����������.

��� ����� ��� mailparse_stream_encode

(4.1.0 — 4.1.2 only, PECL)

mailparse_stream_encode — Streams data from source file pointer, apply encoding and write to destfp

Description bool mailparse_stream_encode ( resource sourcefp, resource destfp, string encoding )

��������������!

��� ������� �������� ����������������� . ��������� ���� �������, �� ��� � ����������� � ��� ������������ ����� ���������� � ����������� ������� PHP ��� �����������. ����������� ��� ������� �� ���� ����� � ����.

��������

� ���������� ������� ��� ������� ��� �� ���� ���������������; ��� ������������ �������� ������ ������ ����������.

��� ����� ��� mailparse_stream_encode

mailparse_stream_encode — Streams data from source file pointer, apply encoding and write to destfp

Description bool mailparse_stream_encode ( resource sourcefp, resource destfp, string encoding )

��������

Эта функция является ЭКСПЕ� ИМЕНТАЛЬНОЙ . Поведение этой функции, ее имя и относящаяся к ней документация могут измениться в последующих версиях PHP без уведомления. Используйте эту функцию на свой страх и риск.

Внимание

К настоящему времени эта функция еще не была документирована; для ознакомления доступен только список аргументов.

��� ����� ��� mailparse_stream_encode

(4.1.0 — 4.1.2 only, PECL)

mailparse_stream_encode — Streams data from source file pointer, apply encoding and write to destfp

Description bool mailparse_stream_encode ( resource sourcefp, resource destfp, string encoding )

Внимание

This function is EXPERIMENTAL . The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk.

Warning

This function is currently not documented; only the argument list is available.

��� ����� ��� mailparse_stream_encode

(4.1.0 — 4.1.2 only, PECL)

mailparse_stream_encode — Streams data from source file pointer, apply encoding and write to destfp

Description bool mailparse_stream_encode ( resource sourcefp, resource destfp, string encoding )

Warning

This function is EXPERIMENTAL . The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk.

Warning

This function is currently not documented; only the argument list is available.

��� ����� ��� mailparse_stream_encode

A fully tested email parser for PHP 7.1+ (mailparse extension wrapper).

It’s the most effective php email parser around in terms of performance, foreign character encoding, attachment handling, and ease of use. Internet Message Format RFC 822, 2822, 5322.

This extension can be used to.

  • Parse and read email from Postfix
  • For reading messages (Filename extension: eml)
  • Create webmail
  • Store email information such a subject, HTML body, attachments, and etc. into a database

Yes. All known issues have been reproduced, fixed and tested.

We use GitHub Actions, Codecov, Codacy to help ensure code quality. You can see real-time statistics below:

How do I install it?

The easiest way is via Composer.

To install the latest version of PHP MIME Mail Parser, run the command below:

The following versions of PHP are supported:

Warning
PHP Compatibility Version
HHVM php-mime-mail-parser 2.11.1
PHP 5.4 php-mime-mail-parser 2.11.1
PHP 5.5 php-mime-mail-parser 2.11.1
PHP 5.6 php-mime-mail-parser 3.0.4
PHP 7.0 php-mime-mail-parser 3.0.4

Make sure you have the mailparse extension (http://php.net/manual/en/book.mailparse.php) properly installed. The command line php -m | grep mailparse need to return «mailparse».

Install mailparse extension

Ubuntu, Debian & derivatives

AAAAMMDD should be php-config —extension-dir

You need to download mailparse DLL from http://pecl.php.net/package/mailparse and add the line «extension=php_mailparse.dll» to php.ini accordingly.

How do I use it?

Loading an email

You can load an email with 4 differents ways. You only need to use one of the following four.

Get the metadata of the message

Get the sender and the receiver:

Get the subject:

Get other headers:

Get the body of the message

Save all attachments in a directory

Get all attachments

Loop through all the Attachments

Postfix configuration to manage email from a mail server

Next you need to forward emails to this script above. For that I’m using Postfix like a mail server, you need to configure /etc/postfix/master.cf

Add this line at the end of the file (specify myhook to send all emails to the script test.php)

Edit this line (register myhook)

The php script must use the fourth method to work with this configuration.

And finally the easiest way is to use my SaaS https://mailcare.io

Can I contribute?

Feel free to contribute!

If you report an issue, please provide the raw email that triggered it. This helps us reproduce the issue and fix it more quickly.

The php-mime-mail-parser/php-mime-mail-parser is open-sourced software licensed under the MIT license

Password Sentry �

Announcements

QR Code :: Mobile Bookmark

What is this? This is a QR Code: a machine-readable image-based code consisting of black and white squares. QR Codes are typically used for storing URLs and other information for reading by a smart devices like smart phones. When scanned by an appropriate app on your mobile device, you are redirected to the embedded URL of this page. View this page with one device (desktop or another mobile device), and then scan the QR Code with your mobile device. This makes it quicker and easier to browse a page discovered on one device on your mobile device without manually entering the URL in the mobile device browser address bar.

? If you are using an Android phone, you can find a QR Code reading app at Google Play on your device.

? If you are using an iOS device (iPhone, iPad, etc.), you can find a QR Code reading app at the Apple iTunes App Store on your device.

? If you are using a Windows phone, you can find a QR Code reading app at the Microsoft Store on your device.

Error 404

The document you were searching for has either expired, been renamed or moved. Please visit the Password Sentry homepage, or use the links on this page to find the information you need.

If you believe you reached this page in error, you can try one or more of the following:

Click your browser’s Refresh button to try reconnecting to the requested page.
Check the spelling of the URL to make sure the address is correct (capitalization and punctuation are important).
Click your browser’s Back button to return to the previous page.
If you have a question or require assistance, please contact us.

Password Sentry

The better app for better websites for better website protection

mailparse_stream_encode

(PECL mailparse >= 0.9.0)

mailparse_stream_encode � Streams data from source file pointer, apply encoding and write to destfp

Описание

Streams data from the source file pointer, apply encoding and write to the destination file pointer.

Список параметров

A valid file handle. The file is streamed through the parser.

The destination file handle in which the encoded data will be written.

One of the character encodings supported by the mbstring module.

Возвращаемые значения

Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.

Примеры

Пример #1 mailparse_stream_encode() example

// email.eml contents: hello, this is some text=hello.
$fp = fopen ( ’email.eml’ , ‘r’ );

mailparse_stream_encode ( $fp , $dest , «quoted-printable» );

// Display new file contents
fpassthru ( $dest );

� езультат выполнения данного примера:

Илон Маск рекомендует:  Компоненты pfsgrid net таблица с множеством поддерживаемых функций
Понравилась статья? Поделиться с друзьями:
Кодинг, CSS и SQL