PHPLover wrote:
Dear all,
I am not able to attach file using CDONTs component.
Could any one trace out what the problem is ??
The code I use is given below and I run on IIS on Windows 2000
@$CDONTS = new COM("CDONTS.NewMail");
@$CDONTS->From = "[EMAIL PROTECTED]";
@$CDONTS->To = "[EMAIL PROTECTED]";
@$CDONTS->BodyFormat = 0;
@$CDONTS->MailFormat = 0;
@$CDONTS->AttachFile("c:\test.txt") or die("cannot attach file");
@$CDONTS->Subject = "Satyam Mail Alert";
@$CDONTS->Body = "body of mail";
@$CDONTS->Send();
@$CDONTS->Close();
Would be happy if anyone could suggest a different component.
Not a COM component but plain old php class:
www.phpclasses.org/mimemessage
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php