Hi Folks,
So my user signs up from the Android App on his phone and after sign up is successful I trigger a mail to be sent to the signed up email address with an Activation Passcode from my PHP script. Here is the line of code that I use which is pretty trivial.
mail($to, $subject, $message, $headers);
The mail is sent correctly every time to the correct email address but the problem is the email shows up in Gmail or Hotmail or Yahoo in more than 10 minutes. That kind of a latency for receiving an Activation Code for the App "to me" is unacceptable.
What can reduce this latency and make this if not instanteneous but a lot quicker. Any ideas.
Thank you all for your help!!