Lines Matching defs:to

4  * A class to build and send multi part mails (with HTML content and embedded
5 * attachments). All mails are assumed to be in UTF-8 encoding.
7 * Attachments are handled in memory so this shouldn't be used to send huge
8 * files, but then again mail shouldn't be used to send huge files either.
78 * @param string $path Path to the file to attach
80 * @param string $name The filename to use
81 * @param string $embed Unique key to reference this file from the HTML part
100 * @param string $data The file contents to attach
102 * @param string $name The filename to use
103 * @param string $embed Unique key to reference this file from the HTML part
121 * Callback function to automatically embed images referenced in HTML templates
143 * Add an arbitrary header to the mail
175 * Set additional parameters to be passed to sendmail
177 * Whatever is set here is directly passed to PHP's mail() command as last
191 * to the ones specified as parameters
193 * If you pass the HTML part or HTML replacements yourself you have to make
197 * @param array $textrep replacements to apply on the text part
198 * @param array $htmlrep replacements to apply on the HTML part, null to use $textrep (urls wrapped in <a> tags)
199 * @param string $html the HTML body, leave null to create it from $text
262 * Placeholders can be used to reference embedded attachments
264 * You probably want to use setBody() instead
276 * You probably want to use setBody() instead
291 public function to($address)
321 * This is set to $conf['mailfrom'] when not specified so you shouldn't need
322 * to call this function
347 * @param string $name the name to clean-up
368 * name includes a comma then it MUST be properly enclosed by '"' to
373 * to("foo, Dr." <foo@bar.com>, me@somewhere.com");
408 // FIXME: is there a way to encode the localpart of a emailaddress?
436 // add to header comma seperated
493 * Needs to be called before prepareHeaders!
576 // add prefix to subject
713 * @return bool true if the mail was successfully passed to the MTA
722 // pass the whole mail class to plugin
725 'to' => &$this->headers['To'],
733 // signal if we mailed successfully to AFTER event
752 $to = (string)$this->headers['To'];
755 $to = '';
786 if ($to === '') $to = '(undisclosed-recipients)'; // #1422
788 $success = @mail($to, $subject, $body, $headers);
790 $success = @mail($to, $subject, $body, $headers, $this->sendparam);