note 110606 added to function.mail
| From: | shenyqwilliam | Date: | Mon, 12 Nov 2012 14:32:22 +0000 |
| Subject: | note 110606 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-191897@lists.php.net to get a copy of this message | ||
If you're sending a large attachment, you may encounter overflow problem.
AFAIK, two common limits could be responsible.
1. Postfix message size limit.
Edit /etc/postfix/main.cf . Change the value of "message_size_limit".
2. Apache memory size limit for scripts.
Edit /etc/php.ini . Change the value of "memory_limit".
//Then reload (or restart) Postfix and Apache.
//Empirically, sending 200MB attachment requires 500MB memory.
Be careful! Raising memory limits may cause unexpected consequences, and is hence deprecated.
Recommended alternatives include:
* Pack and split attachment into several emails.
* Only include a link to the file. The receiver can download it later.
* Use IMAP/POP3 server (e.g. Dovecot).
----
Server IP: 69.147.83.199
Probable Submitter: 124.77.13.110
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit -- https://master.php.net/note/edit/110606
Del: integrated -- https://master.php.net/note/delete/110606/integrated
Del: useless -- https://master.php.net/note/delete/110606/useless
Del: bad code -- https://master.php.net/note/delete/110606/bad+code
Del: spam -- https://master.php.net/note/delete/110606/spam
Del: non-english -- https://master.php.net/note/delete/110606/non-english
Del: in docs -- https://master.php.net/note/delete/110606/in+docs
Del: other reasons-- https://master.php.net/note/delete/110606
Reject -- https://master.php.net/note/reject/110606
Search -- https://master.php.net/manage/user-notes.php