#6 Additional constructors for EmailAddress

closed
nobody
None
5
2003-03-06
2003-01-27
Dave Brookes
No

Sometimes I need to use a TO address that has no
domain part. For example, a user NT logon code which
the MS Excahnge SMTP connector is set up to send
internally within the company.
I've added a couple of additional constructors to the
EmailAddress class which take an additional bool. Set
to false causes the checkAddress() method to be
skipped so the invalid address doesn't cause an
exception.

Would you consider adding something similar to the
next build?

Dave.

Discussion

  • Ian Stallings
    Ian Stallings
    2003-01-29

    Logged In: YES
    user_id=83842

    You should be able to set the SmtpConfig.VerifyAdresses =
    false to accomplish this. It should be set to false by default
    for just this reason.

     
  • Ian Stallings
    Ian Stallings
    2003-03-06

    • status: open --> closed
     
  • Dave Brookes
    Dave Brookes
    2003-03-06

    Logged In: YES
    user_id=606971

    Thanks. I was under pressure so | didn't have time to look
    down the page to the very next method!! That will teach me.