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. Thanks & Regards, ___________________________ Vijay Corporate Communications Satyam Computer Services Limited TSR Towers, Rajbhavan Road Somajiguda, Hyderabad-500 082 INDIA * : +91 (40) 23306767 Extn 7825 * : [EMAIL PROTECTED] "Göd döësn't pläy dícë." - Älbërt Ëínstëín
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php