[FX.php List] [OFF] Slow response when sending PHP email?
Joel Shapiro
jsfmp at earthlink.net
Thu May 9 12:05:28 MDT 2013
Thanks Webko
The AJAX idea came to me as I was typing my post. Not sure why I never tried it. (Maybe when I last implemented PHP mail I was still in my pre-AJAX days...)
Cheers,
-Joel
On May 8, 2013, at 4:38 PM, Tim 'Webko' Booth wrote:
> Yep, AJAX or similar is the way to go.
>
> Do basic php set up. Send page back with an AJAX call that triggers the actual sending of mail, and return the AJAX results into a div on the page (if required)
>
>
> On 9 May 2013 08:09, Joel Shapiro <jsfmp at earthlink.net> wrote:
> Hi all
>
> I haven't needed to send mail from PHP for a while but I may need to do so in an upcoming project.
>
> One thing that has bothered me when I've used an email library (Swift Mailer or PHPMailer) is that it seems to take quite a long time (3+/- seconds) for the mail to send, thus delaying the loading of the 'results' page. I understand that this way I can check for failed sending, but I generally don't want to delay things for the end user for that -- and I'd rather deal w/ them behind the scenes, on the server end.
>
> How do others here deal with this? Is there a way to off-load the email sending so that the user gets a quick response to their submission? AJAX perhaps?
>
> TIA,
> -Joel
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list