Hello.
I did search for a long time before posting this, but I could not find anything related to my problem (or if it was, then it was too complex for me to understand).
I am setting up a simple website where users register to events; Upon registering, an email is sent to confirm registration has been received and yaddah yaddah.
Thing is, emails take a very long time to get to destination. Sometimes 2 hours, sometimes more. Is this normal?
I am simply using PHP's mail() function, as I am reluctant to install a PEAR package or a command-line app for such a simple task (but I will if it is the solution to my problem)...I like my apps to be as independent as possible.
For all means and purposes, here is a sample header:
Code:
Delivered-To: jad@y---o.com
Received: by 10.147.40.6 with SMTP id s6cs40117yaj;
Mon, 4 Apr 2011 04:11:50 -0700 (PDT)
Received: by 10.14.22.13 with SMTP id s13mr3224501ees.89.1301915509244;
Mon, 04 Apr 2011 04:11:49 -0700 (PDT)
Return-Path: <www-data@xannax-rv408-rv508>
Received: from xannax-RV408-RV508 ([80.83.25.142])
by mx.google.com with ESMTP id q47si13002090eeh.0.2011.04.04.04.11.46;
Mon, 04 Apr 2011 04:11:48 -0700 (PDT)
Received-SPF: neutral (google.com: 80.83.25.142 is neither permitted nor denied by best guess record for domain of www-data@xannax-rv408-rv508) client-ip=80.83.25.142;
Authentication-Results: mx.google.com; spf=neutral (google.com: 80.83.25.142 is neither permitted nor denied by best guess record for domain of www-data@xannax-rv408-rv508) smtp.mail=www-data@xannax-rv408-rv508
Received: by xannax-RV408-RV508 (Postfix, from userid 33)
id 086FF3463; Mon, 4 Apr 2011 02:55:25 +0300 (EEST)
To: jad@y---o.com
Subject: PASTEUR: Your guest list was refused, Jad Sarout for the event My First Time!
X-PHP-Originating-Script: 1000:pasteur_functions.php
From: pasteur@p---s.com
Reply-To: pasteur@p---s.com
MIME-Version: 1.0
Content-Type: text/html; charset=ISO-8859-1
Message-Id: <20110403235526.086FF3463@xannax-RV408-RV508>
Date: Mon, 4 Apr 2011 02:55:25 +0300 (EEST)
<html><body>Dear Jad Sarout, you have been refused. Sorry!<br />
</body></html>
p---s.com being the domain (email are google apps based, but of course in this case I go through my own server and I am not using gmail's SMTP).
jad@y---o.com is my address (works on google apps too)
I have no problem in posting the actual domain and email, but I am just weary of spam collectors.
Just some background so if you decide to help me, you know how much you have to explain:
I code websites for a living, I use PHP/JS/actionscript/Java daily, and I am under ubuntu, at home and at work, and I use to command line for most of my management. I can set up an apache server no problem, etc.
I just never had to deal with sending emails from a website until now. In other words simple guidelines will do the trick, I can google more info, I just need to know how to go from here, because I am frankly a bit lost right now.
Any suggestions?