Jump to content

Emailing attachments issue!


and1c

Recommended Posts

Ive got a problem with my site that I cant figure out...Im hoping someone on here knows what I should be looking at to find the problem here.

 

Summary: my site is a complex custom php/mysql scripts based site.

It has the facility to send uploaded word document to customers on request.

 

This used to work fine. But (and ive had this once before but fixed it without realising how!) ....since some recent seemingly unrelated development work, the emails are being sent to customers, but instead of being sent as an attachment the 'attached document' is actually being sent as part of the email.

 

So it is encoded into the emails body as opposed to attached seperately?!!  :-\

 

Anyone have any ideas where to start looking! or what to do to locate the problem.

 

The server is mine (dedicated) and I have examined the mail logs and all is ok,the main email function works fine and sends normal emails no problem through other bits of the site.

 

The same mail server (postfix) sends attachments fine outside of this site.

 

Im stumped!

Here is what the message ends up looking like//

 

--8A0EC0882F73C0051E57DCE972483B44

Content-Type: text/plain; charset= UTF-8;

Content-Transfer-Encoding: 8bit

 

Dear sir,

 

bla bla bla

 

********End of Information************

 

 

 

_______________________________________________________

our site signature

 

--8A0EC0882F73C0051E57DCE972483B44

Content-Type: application/msword; name="your_info.doc"

Content-Transfer-Encoding: base64

Content-Disposition: attachment;

0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAKgAAAAAAAAAA

EAAALAAAAAEAAAD+////AAAAACkAAAD/////////////////////////////////////////

EAAALAAAAAEAAAD+////

////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////

//////////////8BAP7/AwoAAP////8GCQIAAAAAAMAAAAAAAABGHwAAAE1pY3Jvc29mdCBPZmZp

Y2UgV29yZCBEb2N1bWVudAAKAAAATVNXb3JkRG9jABAAAABXb3JkLkRvY3VtZW50LjgA9DmycQAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAA==

 

 

--D8451BAADF591F1C3970F7AE17A7FD2A--

 

I have altered the actual attachment encoding or the doc would work!

 

But I cannot understand what could be causing it?

 

Anyone have any advice please?

 

Its using SMTP to send the email. I can post the function if required

 

THANKS

 

 

Link to comment
https://forums.phpfreaks.com/topic/63312-emailing-attachments-issue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.