[EdLUG] php/mail forwarding pdf attachment

Tai Kedzierski dch.tai at gmail.com
Wed Oct 23 16:34:28 UTC 2024


Hi James

In true open source practice, please share the *relevant* code portion  of
your PHP script :-) We cannot help debug the description of a program
anymore than we could critique a description of a painting...

Specifically, how the code is receiving/retrieving an email, what it does
with that email data, and how it is sending it on.

Of course, do not include any keys/passwords/secrets etc (can be replaced
with placeholder text).

Tai

---
@taikedz - he/him
https://www.meetup.com/Edinburgh-Language-Exchange/



On Wed, 23 Oct 2024 at 13:36, James Tobin <jamesbtobin at gmail.com> wrote:

> Thanks for the replies.  To give further clarity on this my script is
> processing emails and either forwarding the pdf attachments or putting
> them on the server, but the files appear corrupted when I open them. I
> think there must be an issue with how the base64 content is being
> decoded . . . .
>
> On Tue, 22 Oct 2024 at 09:59, 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/20241023/08bb4ba3/attachment.htm>


More information about the EdLUG mailing list