Yii Framework Forum: Email Validation - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Email Validation Rate Topic: -----

#1 User is offline   Rubn 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 08-March 09
  • Location:Barcelona, Spain

Posted 23 March 2009 - 03:14 AM

When validating an e-mail, the checkMX functionallity, checks if the domain has a MX registered, but some e-mail servers doesn't has a MX record and it's a valid e-mail server either.

It will be better to check if the server has the port 25 open if it doesn't has an MX record.

It could be done this way, in the CEmailValidator.


52: $valid=checkdnsrr($domain,'MX');
53: if(!$valid && fsockopen($domain, 25, $errno, $errstr, 10) !== false) {
54: $valid = true;
55: }


What do you think?

Thanks :)
0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,856
  • Joined: 04-October 08
  • Location:DC, USA

Posted 23 March 2009 - 01:07 PM

Could you please create a ticket for this? Thanks.
0

#3 User is offline   Rubn 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 08-March 09
  • Location:Barcelona, Spain

Posted 23 March 2009 - 02:58 PM

Should I open it in yii's google code site?
0

#4 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,856
  • Joined: 04-October 08
  • Location:DC, USA

Posted 23 March 2009 - 03:10 PM

Yes, please.
0

#5 User is online   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,013
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 24 March 2009 - 03:37 AM

Hmm, shouldn't that have another config option? I would expect "checkMX" to do exactly and only that: Check for an MX record. Maybe "checkPort" or "checkSmtpPort"?
0

#6 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,856
  • Joined: 04-October 08
  • Location:DC, USA

Posted 24 March 2009 - 06:54 AM

Yes, that's what I meant.
0

#7 User is offline   Steven Michaels 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 10-September 10

Posted 10 August 2012 - 09:06 PM

It looks like this is addressed in the 1.1.11 release!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users