123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?php
-
- include_once 'phing/Task.php';
- class MailTask extends Task {
- protected $recipient;
-
- protected $subject;
-
- protected $msg;
- function main() {
- $this->log('Sending mail to ' . $this->recipient );
- mail($this->recipient, $this->subject, $this->msg);
- }
-
- function setMsg($msg) {
- $this->setMessage($msg);
- }
-
- function setMessage($msg) {
- $this->msg = (string) $msg;
- }
-
-
- function setSubject($subject) {
- $this->subject = (string) $subject;
- }
-
- function setRecipient($recipient) {
- $this->recipient = (string) $recipient;
- }
-
- function setTo($recipient) {
- $this->recipient = (string) $recipient;
- }
-
-
- function addText($msg)
- {
- $this->msg = (string) $msg;
- }
- }
|