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 |
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
|
|
|