/[cvs]/nfo/php/libs/org.netfrag.elib/comm/smtp.php.inc
ViewVC logotype

Contents of /nfo/php/libs/org.netfrag.elib/comm/smtp.php.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Wed Jan 23 17:40:34 2002 UTC (22 years, 5 months ago) by cvsjoko
Branch: nfo, MAIN
CVS Tags: v003, HEAD
Changes since 1.1: +0 -0 lines
initial

1 <?
2
3 function sendMail($to, $subject, $body, $from = '') {
4
5 global $cfg_pre_boot;
6
7 ini_set('SMTP', $cfg_pre_boot['smtp']['host']);
8 //ini_set('sendmail_from', $cfg_pre_boot['smtp']['from']);
9
10 $headers = '';
11 if ($from) {
12 $headers = "From: $from";
13 }
14
15 $retval = 0;
16 if ($to) {
17 print "\n";
18 print "===================================\n";
19 print "mail\n";
20 print "To: $to\n";
21 print "Subject: $subject\n";
22 print "Body: \n------\n$body\n------\n";
23 print "Headers: $headers\n";
24 print "===================================\n";
25 print "\n";
26 $retval = mail($to, $subject, $body, $headers);
27 // $retval = mail($to, $subject, $body);
28 }
29
30 return $retval;
31
32 }
33
34 ?>

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed