thendal
Programmer
- Aug 23, 2000
- 284
Hi!
when i try to execute the following mail program it takes long to execute (aprox 40-50 sec).Am i following the wrong way advice me
All i need is
i am having an array which contains 6 email ids,I have to send a mail to them
here is the code
$mailprog = '/usr/lib/sendmail';
for($l=0;$l<@mailid;$l++)
{
open(MAIL,"|$mailprog -t"
;
$from='test@testmail.com';
$mailarray=$mailid[$l].'@ford.com';
print MAIL "To: $mailarray \n";
print MAIL "From:$from \n";
print MAIL "Subject: Test Test \n\n";
print MAIL "Test\n";
close (MAIL);
}
And what changes i have to make if i need to send mail in html format.
Thanks for any help
Regards,
thendal
when i try to execute the following mail program it takes long to execute (aprox 40-50 sec).Am i following the wrong way advice me
All i need is
i am having an array which contains 6 email ids,I have to send a mail to them
here is the code
$mailprog = '/usr/lib/sendmail';
for($l=0;$l<@mailid;$l++)
{
open(MAIL,"|$mailprog -t"
$from='test@testmail.com';
$mailarray=$mailid[$l].'@ford.com';
print MAIL "To: $mailarray \n";
print MAIL "From:$from \n";
print MAIL "Subject: Test Test \n\n";
print MAIL "Test\n";
close (MAIL);
}
And what changes i have to make if i need to send mail in html format.
Thanks for any help
Regards,
thendal