Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.