Re: CDONTS Mail problem
| From: | Marek Kilimajer | Date: | Tue, 11 Nov 2003 15:04:38 +0000 |
| Subject: | Re: CDONTS Mail problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169171@lists.php.net to get a copy of this message | ||
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 = "james@fun.com"; @$CDONTS->To = "jacob@ten.com"; @$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