Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

PHP mail + attachment woes

  • 12-01-2006 11:58AM
    #1
    Closed Accounts Posts: 8,478 ✭✭✭


    I'm trying to come up with a solution to allow a client to send email attachments from a webpage via PHP. Have it working for one attachment for a small enough file and it works away fine.

    Using PHPMailer, and I'm sure I can get multiple attachments working via an array. My main problem really is that the larger the files get the more execution time is required, and so the page hangs until the process is finished/timeout is reached. I dont want to change the timeout depending on the file size as the user could be waiting for 5+ minutes possibly.

    Was thinking of using the javamail applet within the page too, but I'd rather keep it all PHP if possible.

    Ideas?


Comments

  • Registered Users, Registered Users 2 Posts: 5,618 ✭✭✭Civilian_Target


    In your PHP.ini, what have you set your max file sizes and max execution time to?

    There's no reason why you shouldn't be able to read an array of files off, certainly in PHP5.


Advertisement