Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #10534
| Date | 2013-08-16 21:26 +0200 |
|---|---|
| From | Luuk <luuk@invalid.lan> |
| Newsgroups | comp.lang.php |
| Subject | Re: Email attachment 0bytes using php4 |
| References | <53041805-d7cb-4c72-bec7-c965cd8d1074@googlegroups.com> |
| Message-ID | <m0b2ea-mgl.ln1@luuk.invalid.lan> (permalink) |
On 16-08-2013 21:09, Dave Drekter wrote: > Ok, don't holler at me, I understand php4 is no longer. That said, for many reasons it's not possible to upgrade to php5 and use phpMailer - as much as I'd like to. I've searched around and there's no other answer presented. So, here's the problem. I create a text file /tmp2/tmporder2 > > The code below sends the email fine with the attachment, but the attachment contains 0 bytes, NADA. > > <?php > $path = '/tmp2'; > $filename = 'tmporder2'; > $mailto = 'dave@powerfulhosting.com'; > $from_mail = 'estore order receipt'; > $from_name = 'bagelworks order'; > $replyto = ''; > $subject = 'TESTING EMAIL ATTACHMENT'; > > $file = $path.$filename; $file now contains'/tmp2tmporder2' > > Any ideas why the attached file is blank? > yes, it cannot find your file, because it's not at the location you specified ;)
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Email attachment 0bytes using php4 Dave Drekter <powerfulhosting@gmail.com> - 2013-08-16 12:09 -0700
Re: Email attachment 0bytes using php4 Luuk <luuk@invalid.lan> - 2013-08-16 21:26 +0200
Re: Email attachment 0bytes using php4 Dave Drekter <powerfulhosting@gmail.com> - 2013-08-16 12:37 -0700
Re: Email attachment 0bytes using php4 Jerry Stuckle <jstucklex@attglobal.net> - 2013-08-16 15:32 -0400
Re: Email attachment 0bytes using php4 "Peter H. Coffin" <hellsop@ninehells.com> - 2013-08-16 14:42 -0500
Re: Email attachment 0bytes using php4 Christoph Michael Becker <cmbecker69@arcor.de> - 2013-08-16 21:57 +0200
Re: Email attachment 0bytes using php4 The Natural Philosopher <tnp@invalid.invalid> - 2013-08-16 21:50 +0100
csiph-web