[EdLUG] php/mail forwarding pdf attachment
Tai Kedzierski
dch.tai at gmail.com
Tue Oct 22 09:52:26 UTC 2024
Hi James
That is unfortunately insufficient information - you haven't specified how
(example code) you are attempting to achieve this to be able to pinpoint
what is going amiss.
- how the email raw data is being retrieved (lib? custom code?)
- how this is being written to the smtp endpoint (lib? custom code?)
- what library is being used for your smtp receiver, and if none, what the
implementation actually does
- whether the code might be mangling data (if a content length is specified
and copied, but your code replaces LF with CRLF , then data could be
falsely truncated)
- whether the code might be mangling data (if your code is reading utf-8
and writing it rejigged into some sort of win-latin-1 or other, then the
data could be mangled)
- what the raw message and attachment look like coming in, and what it
looks like when going back out (byte for byte, using a simple example
attachment)
- whether the code might be failing (have you checked logs? what do they
indicate?)
- many other possibilities no doubt, depending on your implementation of
the solution overall
The above may or may no apply in your case (but worth ruling out each in
turn) ; if there are further details you can share about the
implementation, it may help narrow down the relevant questions to ask.
HTH
TK
---
@taikedz - he/him
https://www.meetup.com/Edinburgh-Language-Exchange/
On Tue, 22 Oct 2024 at 10:00, James Tobin <jamesbtobin at gmail.com> wrote:
> Hi,
>
> I am piping alias emails to a php script that looks up a real email
> address in MySQL and forwards the email and attachments. However,
> I'm having immense difficulty with the attachments. Either they are
> sent on but can not be opened or they are not. I've tried multiple
> libraries and also php imap. This is on shared hosting
>
> Any thoughts?
>
> Thanks,
> James
>
> --
> EdLUG mailing list
> EdLUG at mailman.lug.org.uk
> https://lists.edlug.org.uk/mailman/listinfo/edlug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.edlug.org.uk/pipermail/edlug/attachments/20241022/d2d3df27/attachment.htm>
More information about the EdLUG
mailing list