[FX.php List] [OFF] Slow response when sending PHP email?

Tim 'Webko' Booth tim.webko at gmail.com
Wed May 8 17:38:13 MDT 2013


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130509/cb5aeb2b/attachment.html


More information about the FX.php_List mailing list