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

Home » Imported messages » comp.lang.php » Problem with attaching file (from a form) to email in PHP
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Problem with attaching file (from a form) to email in PHP [message #172701 is a reply to message #172699] Sat, 26 February 2011 15:23 Go to previous messageGo to previous message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma:
Senior Member
On 26-02-11 15:56, Cameleon wrote:
> Sorry about that.. was so stuck in my problem that I forgot to say
> what it was.
>
> I've continued working on it, and managed to make it work... half.
>
> I've rewrote the code, and now I'm able to successfully send the
> email, but I can only see the attachment when using gmail. If I red
> the message using the Mac "Mail" program, there is no trace of the
> attachment (neither as attached file, neither inline in the message
> body), and if I read it using MS Outlook, The attachment is there with
> the proper file size, but when I try to read it, it says No preview
> available or file is empty. Also, interresting thing is that if I
> take the message that I received in gmail, and forward it using gmail,
> I can now read it properly with both Mail and Outlook.
>
> I kind of highly suspect that there is a problem with the heder or
> something like this, but can't see waht.
>
> Thanks for your help, here is the parts of the code that deals with
> the sending...
>
>

Something is wrong with the way you build the email, and gmail is nice
enough to repair it for you when you forward the message...

Read this: http://en.wikipedia.org/wiki/MIME
and compare what you read with wat you do in the code, than you'll find
the answer.

I begin to wonder why i never had this problem.....
It must be because i dont send mail from PHP... ;)

--
Luuk
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SOCIAL NETWORK FOR PHP PLATFORM..
Next Topic: HTML select field where the OPTION text is of different colors
Goto Forum:
  

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

Current Time: Sat Nov 23 16:15:08 GMT 2024

Total time taken to generate the page: 0.04159 seconds