Skip to content

Instantly share code, notes, and snippets.

View cuheguevara's full-sized avatar

Suhendra Yohana Putra cuheguevara

View GitHub Profile
@cuheguevara
cuheguevara / email-mx-validate.php
Created May 23, 2014 00:50
Check MX Record to Validate Email Address
<?php
class SMTP_validateEmail {
/* Validate an email address. */
function validEmail($email)
{
$isValid = true;
$atIndex = strrpos($email, "@");
if (is_bool($atIndex) && !$atIndex)
{
@cuheguevara
cuheguevara / SMTP_validateEmail.php
Created June 23, 2014 07:51
How To Check email are exists or Not.
<?php
class SMTP_validateEmail {
/* Validate an email address. */
function validEmail($email) {
$isValid = true;
$atIndex = strrpos($email, "@");
if (is_bool($atIndex) && !$atIndex) {
$isValid = false;