Jump to content

Using getmxrr function


Germaris

Recommended Posts

Oh. yes, 25. : )

 

Here is an example of what I mean by using fsockopen to check the mail server,

<?php
// $Email will be the email address.

  function CheckEmail($Email)
  {
      if (empty($Email)) {
          return false;
      } else {
          list($UserEmail, $MailServer) = explode('@', $Email);
          unset($UserEmail);
          $Connection = fsochopen($MailServer, 25, $errno, $errstr, 30);
          if (empty($Connection)) {
              echo 'The email address you entered is not valid.';
              return false;
          } else {
              return true;
          }
      }
?>/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.