i wrote a script using swift mailer to send e-mails via smtp. I noticed that it takes a fairly long time for the script to load due to the smtp sending.
I thought it would be a good idea to put the sending of that email into a seperate file. The only problem i have now is that i need to open the file.
I don't want to use fopen or anything like that because i would like that file to run "in the background" so to speak.
Is that possible without a cronjob? Is there a way to just fire that file without the user noticing it?
Thanks in advance.