This email was created by [your name] who thought you would be interested in the following Article:
"Send mail without specifying an SMTP server"
A class derived from CSMTPConnection that queries the MX record for a target domain and uses that to send mail
CodeProject also contains hundreds of articles, free source code samples and applications to help in your day to day programming. Why not give it a try!