-
I assume that web controls (such as the
PasswordRecoverycontrol) useSmtpClientto send email messages. If so, doesSmtpClientrepresent a POP3 client or doesSmtpClientforward email message to POP3 client? -
Do attributes specified inside
<smtp>element inweb.configmap toSmtpClientclass?<system.net> <mailSettings> <smtp deliveryMethod="Network" ...></smtp> </mailSettings> </system.net> -
One of the possible values for the attribute
deliveryMethodisNetwork, which tells that email should be sent through the network to an SMTP server. In other words, this value tells to send email to SMTP server using SMTP protocol?! -
For the
PasswordRecoverycontrol to be able to send email messages, we need to set basic properties in<MailDefinition>subelement of thePasswordRecoverycontrol. Thus I assumeMailDefinitionis used by controls to create an email message?!
thanx
The
SmtpClientclass represents (as the name suggests) an smtp client, not a POP3 client. TheSmtpClientclass uses the smtp configuration section to pick up default values for its operation.Your interpretation of the NetworkDelivery value is correct. The other delivery methods make use of pickup directories (which actually is a rather nice approach; it disconnects the code from needing the SMTP server to be up and running when the mail message is posted).
For further details on the
SmtpClientclass, I would suggest to dive into the documentation of it.And yes, the MailDefinition is used internally in the PasswordRecovery control to create the mail message.