FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Email attachment 0bytes using php4
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Email attachment 0bytes using php4 [message #182583 is a reply to message #182581] Fri, 16 August 2013 19:37 Go to previous messageGo to previous message
Dave Drekter is currently offline  Dave Drekter
Messages: 2
Registered: August 2013
Karma:
Junior Member
Luuk: That was it! I owe you. I do a lot of marketing/advertising kinda stuff so if you need something rattle my cage. dave(at)powerfulhosting(dot)com Thanks.


On Friday, August 16, 2013 12:26:50 PM UTC-7, Luuk wrote:
> 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(at)powerfulhosting(dot)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 ;)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Limiting # characters in textarea
Next Topic: Function Problem
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Sep 19 20:14:37 GMT 2024

Total time taken to generate the page: 0.05292 seconds