Hi,
I have some programmers working on an PHP application that uses a Cron
job to email me a file everyday. I use Outlook to check my email, and
have never had a problem with viewing file attachments, except for the
attachments that are generated by this PHP program. The attachments
open OK in Yahoo, but in Outlook, they look like this:
X-Priority: 3
Content-Type: multipart/mixed;
boundary="<<<:6ad91a3a325a54e1210f3033baaa3931"
From: fromaddress@domain.com
CC: ccaddress@domain.com
This is a multi-part message in MIME format.
--<<<:6ad91a3a325a54e1210f3033baaa3931
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="iso-8859-1"
--<<<:6ad91a3a325a54e1210f3033baaa3931
Content-Transfer-Encoding: base64
Content-Type: Application/Octet-Stream;
name="filename-2003-12-21.txt"
Content-Disposition: attachment;
name="filename-2003-12-21.txt"
V0VCIDQwNlJWTlMxNFMgVTE3YW5ubiAgICAgIHNtaXRoICAgICAgICAgICAgICAgNjEzIHcuIGFyZ3lsZSBhdmUuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2FsbGlzYXcgICAgICAgICAgICBPSzc0OTU1ICAgICAgICAgICAgICAgIDkxODc3NjkzNDYgICAgICAgNjUwMjAwMzEyMjBzd2VldG9rbGFob21hZ2lybF8xN0B5YWhvby5jb20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIApXRUIgMDIzUlZOUzE0UyBVMTdhbm5uICAgICAgc21pdGggICAgICAgICAgICAgICA2MTMgdy4gYXJneWxlIGF2ZS4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzYWxsaXNhdyAgICAgICAgICAgIE9LNzQ5NTUgICAgICAgICAgICAgICAgOTE4Nzc2OTM0NiAgICAgICA2NTAyMDAzMTIyMHN3ZWV0b2tsYWhvbWFnaXJsXzE3QHlhaG9vLmNvbSA
(etc....)
Can you tell me what I need to change in Outlook -OR- the programmers
need to change in PHP/Cron/etc to get me attachments I can view?
Thanks!
uc |
Request for Question Clarification by
joseleon-ga
on
24 Dec 2003 13:54 PST
Hello, uc1bear:
The problem is in the way they send messages from the PHP scripts, I
can post here the best way to do it. Is that enough to answer this
question?
Regards.
|
Clarification of Question by
uc1bear-ga
on
24 Dec 2003 14:23 PST
Hi joseleon-ga,
If you can provide code that sends attachments 'correctly' to Outlook,
and answer any minor implementation questions my programmres have,
that would be the perfect answer. Thanks,
uc
|
Request for Question Clarification by
joseleon-ga
on
25 Dec 2003 03:24 PST
Hello, uc1bear:
Ok, in that case, please, take a look to this other answer of mine:
http://answers.google.com/answers/threadview?id=265817
It would be great if you post here the PHP code you use to send mails
so I can fix it. In most cases is a problem with the headers and the
mail server.
Regards.
|
Request for Question Clarification by
webadept-ga
on
27 Dec 2003 10:16 PST
I agree with joseleon-ga in that it is probably the headers they are
creating or lack there of. Since it works you say, at a Yahoo address,
this more or less confirms the guess, because the Yahoo mail clients
rip the headers off the incoming emails, and replaces them(well
formed), before you see the final email. And as joseleon-ga has said,
we could guess, but it would be much better simply to see the code and
say "ah.. there it is". :-)
webadept-ga
|
Request for Question Clarification by
joseleon-ga
on
04 Jan 2004 07:33 PST
Hello, uc1bear:
Are you still interested in an answer? I can help you to fix that problem.
Regards.
|