Hello,
I’d like for CreateUserWizard control to send email notifications to created users. Since I don’t host my own SMTP server, I tried to use my gmail account to send those notifications, but I kept getting “Must issue STARTTLS command first”. One site suggests this is due to CreateUserWizard’s SmtpClient using System.Net.Sockets.NetworkStream and not System.Net.Security.SslStream.
Thus only way I know how to configure CreateUserWizard control to send emails (via gmail) is by handling SendingMail event, where I have to cancel the event ( via MailMessageEventArgs.Cancel) and then manually create and send the email ( that way I'm able to set SmtpClient.EnableSsl to true ).
Is there a way to get a reference to CreateUserWizard's SmtpClient object and set its EnableSsl to true so that i don't have to manually send email notifications?
thanx