| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Copyright 1997-2014 Horde LLC (http://www.horde.org/) Copyright (c) 2002-2007, Richard Heyes All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
| Copyright: | 1997-2014 Horde LLC (http://www.horde.org/) |
| Copyright: | 2002-2007 Richard Heyes |
| License: | http://www.horde.org/licenses/bsd New BSD License |
| File Size: | 250 lines (10 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| prepareHeaders(array $headers) X-Ref |
| Take an array of mail headers and return a string containing text usable in sending a message. param: array $headers The array of headers to prepare, in an return: mixed Returns false if it encounters a bad address; otherwise |
| parseRecipients($recipients) X-Ref |
| Take a set of recipients and parse them, returning an array of bare addresses (forward paths) that can be passed to sendmail or an SMTP server with the 'RCPT TO:' command. param: mixed $recipients Either a comma-separated list of recipients return: array Forward paths (bare addresses, IDN encoded). |
| _sanitizeHeaders($headers) X-Ref |
| Sanitize an array of mail headers by removing any additional header strings present in a legitimate header's value. The goal of this filter is to prevent mail injection attacks. Raw headers are sent as-is. param: array $headers The associative array of headers to sanitize. return: array The sanitized headers. |
| _normalizeEOL($data) X-Ref |
| Normalizes EOLs in string data. param: string $data Data. return: string Normalized data. |
| _getFrom($from, $headers) X-Ref |
| Get the from address. param: string $from From address. param: array $headers Headers array. return: string Address object. |
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |