|
Hello,
My third party web hosting company just began to require the system to authenticate the email server. How do I incorporate my username and password to my email server? Do I do it in my web.config file? I have attached a copy of my web.config section where it includes the other information and a sample of how I use it in my code.
web.config
----------------------------------------
<appSettings>
<add key="MailServer" value="mail.egentlemen.com" />
<add key="AdminEmail" value="admin@egentlemen.com" />
<add key="CustomerServiceEmail" value="customerservice@egentlemen.com" />
<add key="OrderProcessorEmail" value="orderprocessor@egentlemen.com" />
<add key="SupplierEmail" value="admin@egentlemen.com" />
</appSettings>
InitinialNotificationEmail.vb
-----------------------------------------
SmtpMail.SmtpServer = _processor.Configuration.MailServer
Dim notificationMail As MailMessage = New MailMessage()
notificationMail.To = _currentCustomer.Email
notificationMail.From = _processor.Configuration.CustomerServiceEmail
notificationMail.Subject = "Order received."
notificationMail.Body = GetMailBody()
SmtpMail.Send(notificationMail)
Where can I incorporate the username and password? Thanks a million in advance.
|
|
|
|
|
|
|
|