Reply to Re: sending attachment by email - can't find a bug?

Your name:

Reply:


Posted by pete M on 01/14/05 19:46

You need to post some code !!!!

#are you using phpMailer - makes emails a doddle
http://phpmailer.sourceforge.net/

Afan Pasalic wrote:
> I have a form and once the form is submitted, php code build csv file
> with entered information and store it on server in temp file. Then send
> this file as an attachment to me. Code to send an attachment is included
> in main code.
> The code to store csv file works fine.
> I'm getting the attachment in email but can't open the file: "Alert:
> Unable to read the file".
> Then I tried to create txt file and got the same result. Actually, I was
> able to open attached file but the file was empty?!?
> Then accidentally, I changed the code back to create csv file but didn't
> change in code to send an attachment. after submitting the csv file was
> created but got by email earlier created txt file - and it works fine. I
> was able to open it?!?
> My conclusion: I can't send just created file, but later, as a second
> process - it works just fine. And that means, code to send an attachment
> works as well.
>
> Any ideas?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация