(PHP 4, PHP 5) mailattach – A function to include file attachments to emails via PHP.
Description
bool mailattach(string $to, $subject, $message, $headers[, string $additional[, string $attachment]]) |
Parameters
$to
Email Address the message/file is to be attached.
$subject
Email Subject.
$message
Email Body Text
$headers
Email headers, from, reply to etc.
$additional
Additional parameters.
$attachment
File Location of the attachment to be sent.
Return Values
Returns true on send
Returns false on error
NOTE: This function hasn’t been tested for large attachments.
Licensing
- Covered by the GNU GPL v3
Changelog
Version 2.0.0
- Moved the input parameters around to be compatible with the default mail() command.
- Fixed issues with bad code.
- More valid phpdoc header.
- Concatenated some lines and removed uneeded code.
Version 1.0.0
- Initial Release.
Info and Downloads
Requirements:
OS: Any
Dependencies: PHP 4, PHP 5
Optional: None
Network: Any
License: GNU GPL v3