Any volume of mail sent direct to mx records is a red flag for anti spammers 
and without an smtp spf dkim and rdns you are wasting your time. The logic is 
that only people sending spam would be sending direct to mx like that. Fair or 
not that is just how life works. Oh and most mail servers do check rdns spf 

It is kind of pointless to send emails if they end up in the spam folder or 
worse don't get delivered at all. Do it right the first time use an smtp rdns 
and spf at the very least. 

Sent via BlackBerry from T-Mobile

-----Original Message-----
From: Richard Quadling <>
Date: Mon, 8 Mar 2010 10:21:53 
To: Kannan<>
Cc: <>
Subject: Re: [PHP] Mail Function In PHP
On 7 March 2010 04:54, Kannan <> wrote:
> Hello
>           I am creating a application for our college using the
> php.In that i want to send mail to all who are all the list.
> For that i am just simply use the mail function in php without
> configuring any mail system in the system.But the mail didn't send.
> For sending the mails wat are requirements and if u have any tutorials
> send it to me?
> Thanks..
> --
> With regards,
> Kannan. R. P,
> Blog @:
> --
> PHP General Mailing List (
> To unsubscribe, visit:

Contrary to popular belief, to send an email you do not need to have
your own SMTP server. All you need to know is the SMTP server
responsible for your recipients email.

This information is held as part of the domain registration details
and is known as the MX records (as I understand it).

PHP has a function called getmxrr() [1]. This allows you to supply a
domain name and get back the list of MX records suitable for handling
the SMTP mail.

This function wasn't available on Windows until recently, and I
created a userland version utilising Windows nslookup.exe program [2].

So, once you've got the list of SMTP servers for the domain you are
sending email to, you can use the ini_set('SMTP', 'xxxxxx'); function
to set the server to handle the mail() call you are about to make.

Upside : No local SMTP server - you are not responsible for
maintaining/administering/etc. any aspect of the SMTP process.
Upside : If the mail() call fails, you can try the other MX records (I
tend to sort the results based upon weight and try them in sequence).
If it fails all of them, you know straight away and can deal with it.
Upside : No relaying. No permission issues to worry about. You are
simply talking to the public SMTP servers just like any other SMTP
server or sender.

Downside : No queuing. Without a_LOCAL_ SMTP server, you can only
deal with sending email in real time.
Downside : One domain at a time. You cannot send email to, b...@domain2.com_and_ in the 1 email.

None of these steps affect the use of mail() or a mail sending class
(phpmailer, RMail, html_mime_mail5, etc.).





Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE :
EE4Free :
Zend Certified Engineer :

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to