Slow contact form

the mail() function

Moderators: egami, macek, gesf

Post Reply
User avatar
Nullsig
php-forum Fan User
php-forum Fan User
Posts: 979
Joined: Thu Feb 17, 2011 6:52 am
Location: Racine, WI

Mon Jun 06, 2011 8:00 am

Do you write to the database? Or, do you just send out the mail?

Usually the mail server doesn't really slow down the system as the message is just thrown into a queue to be handled by the server, only checking that the message is actually queued.

If you are doing reads and writes to a database before (or even after) sending the message, your queries are probably unoptimized and slowing down the processing of the page.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests