Google Answers Logo
View Question
 
Q: PHP Program - Attachments with Outlook ( No Answer,   0 Comments )
Question  
Subject: PHP Program - Attachments with Outlook
Category: Computers > Programming
Asked by: uc1bear-ga
List Price: $10.00
Posted: 24 Dec 2003 13:21 PST
Expires: 23 Jan 2004 13:21 PST
Question ID: 290089
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.
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy