zytzagoo / smtp-validate-email

A PHP library for performing email addresses validation via SMTP
GNU General Public License v3.0
437 stars 155 forks source link

Alternative port #56

Open tcdaly opened 4 years ago

tcdaly commented 4 years ago

Is there any way of asking the validator to use an alternative port when connecting to the remote SMTP server (i.e. a port other than 25)?

zytzagoo commented 4 years ago

There should be, yes: https://github.com/zytzagoo/smtp-validate-email/blob/master/tests/Unit/ValidatorTest.php#L113-L120 https://github.com/zytzagoo/smtp-validate-email/blob/master/src/Validator.php#L1125

tcdaly commented 4 years ago

Thank you. If it's supported but not documented, I would just suggest documenting the feature.