<div dir="ltr"><div>Hi James</div><div><br></div><div>
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...<br></div><div><br></div><div>Specifically, how the code is receiving/retrieving an email, what it 
does with that email data, and how it is sending it on.<br></div><div><br></div><div>Of course, do not include any keys/passwords/secrets etc (can be replaced with placeholder text).<br></div><div><br></div><div>Tai<br></div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>---</div>@taikedz - he/him<br><div><a href="https://www.meetup.com/Edinburgh-Language-Exchange/" target="_blank">https://www.meetup.com/Edinburgh-Language-Exchange/</a> <br></div><div><br> </div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 23 Oct 2024 at 13:36, James Tobin <<a href="mailto:jamesbtobin@gmail.com">jamesbtobin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks for the replies.  To give further clarity on this my script is<br>
processing emails and either forwarding the pdf attachments or putting<br>
them on the server, but the files appear corrupted when I open them. I<br>
think there must be an issue with how the base64 content is being<br>
decoded . . . .<br>
<br>
On Tue, 22 Oct 2024 at 09:59, James Tobin <<a href="mailto:jamesbtobin@gmail.com" target="_blank">jamesbtobin@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I am piping alias emails to a php script that looks up a real email<br>
> address in MySQL and forwards the email and attachments.  However,<br>
> I'm having immense difficulty with the attachments.  Either they are<br>
> sent on but can not be opened or they are not.  I've tried multiple<br>
> libraries and also php imap.  This is on shared hosting<br>
><br>
> Any thoughts?<br>
><br>
> Thanks,<br>
> James<br>
<br>
-- <br>
EdLUG mailing list<br>
<a href="mailto:EdLUG@mailman.lug.org.uk" target="_blank">EdLUG@mailman.lug.org.uk</a><br>
<a href="https://lists.edlug.org.uk/mailman/listinfo/edlug" rel="noreferrer" target="_blank">https://lists.edlug.org.uk/mailman/listinfo/edlug</a><br>
</blockquote></div>