If I attach a 28kB .gz file to an email with mail() (MIME,base64 encoded) the function takes apache 6! seconds to process at 50% CPU usage (on a 2 CPU system).
It takes longer with bigger files and vice versa.
After all that's way too long.
Is there a way to execute mail() in the background so that the parsing doesnt have to wait until mail() is finished?
Does anybody have an idea what takes php so long?
Is there a faster function?