codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  How to authenticate email mailserver?  rattip01 at 17:02 on Wednesday, July 21, 2004
 

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.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Testing file for type of data
•  Running VB6 application as a ASP.NET application
•  login system with asp.net
•  Re: Help: Trouble with z-Index and SELECT lists
•  What is wrong with this ASP codes? It don`t seem to work???
•  Need help with ListBox control
•  Re: Good Javascript/DHTML Reference
•  Re: scrolling table
•  Re: simulation of road traffic


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2004