11 require_once(
"AWLUtilities.php");
85 $this->Subject = $subject;
102 if ( !isset($extra) || $extra ==
"" )
return false;
103 if ( $onto !=
"" ) $onto .=
", ";
168 $this->From = $sender;
179 $this->Sender = $sender;
190 $this->Subject = $subject;
210 function Send( $additional_headers =
"" ) {
211 if ( !empty($this->From) ) $additional_headers .=
"From: $this->From\r\n";
212 if ( !empty($this->Cc) ) $additional_headers .=
"Cc: $this->Cc\r\n";
213 if ( !empty($this->Bcc) ) $additional_headers .=
"Bcc: $this->Bcc\r\n";
214 if ( !empty($this->ReplyTo) ) $additional_headers .=
"Reply-To: $this->ReplyTo\r\n";
215 if ( !empty($this->ErrorsTo) ) $additional_headers .=
"Errors-To: $this->ErrorsTo\r\n";
217 $additional_parameters =
"";
218 if ( !empty($this->Sender) ) $additional_parameters =
"-f$this->Sender";
219 mail( $this->
To, $this->Subject, $this->Body, $additional_headers, $additional_parameters );
228 if ( !empty($this->From) ) dbg_error_log(
'LOG',
"From: $this->From");
229 if ( !empty($this->Cc) ) dbg_error_log(
'LOG',
"Cc: $this->Cc");
230 if ( !empty($this->Bcc) ) dbg_error_log(
'LOG',
"Bcc: $this->Bcc");
231 if ( !empty($this->ReplyTo) ) dbg_error_log(
'LOG',
"Reply-To: $this->ReplyTo");
232 if ( !empty($this->ErrorsTo) ) dbg_error_log(
'LOG',
"Errors-To: $this->ErrorsTo");
234 $additional_parameters =
"";
235 if ( !empty($this->Sender) ) dbg_error_log(
'LOG',
"Envelope Sender set to: $this->Sender");
236 dbg_error_log(
'LOG',
"To: $this->To");
237 dbg_error_log(
'LOG',
"Subject: $this->Subject");
238 dbg_error_log(
'LOG',
"Body: $this->Body");
246 function Pretend( $additional_headers =
"" ) {
247 if ( !empty($this->From) ) print(
"From: $this->From\r\n");
248 if ( !empty($this->Cc) ) print(
"Cc: $this->Cc\r\n");
249 if ( !empty($this->Bcc) ) print(
"Bcc: $this->Bcc\r\n");
250 if ( !empty($this->ReplyTo) ) print(
"Reply-To: $this->ReplyTo\r\n");
251 if ( !empty($this->ErrorsTo) ) print(
"Errors-To: $this->ErrorsTo\r\n");
253 $additional_parameters =
"";
254 if ( !empty($this->Sender) ) print(
"Envelope Sender set to: $this->Sender\r\n");
255 print(
"To: $this->To\r\n");
256 print(
"Subject: $this->Subject\r\n");
257 print(
"Body: $this->Body\r\n");
__construct($subject="", $to="")
_AppendDelimited(&$onto, $extra)
Pretend($additional_headers="")
PretendLog($additional_headers="")
Send($additional_headers="")