hi.. i'm encountering a bug regarding sending emails.. when the smtp server do not have user autentication, the sending of email is really fine.. but when the smtp requires username and password, no email is being sent.. i believe it is related to web.config.. i have searched a lot of examples with user authentication, but it seems that those are not working.. hmm... can u please provide me an example.. please... thank you.. God Bless.. :)

btw, here is my web.config content.. thanks..

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  
  <system.web>
    <compilation defaultLanguage="VB" 
         debug="true"
         numRecompilesBeforeAppRestart="15">
      </compilation>
    
    
    <authentication mode="Forms">
      <forms
        name=".SAMPLEPAGE"
        loginUrl="/SAMPLEPAGE/login.aspx"
        protection="All"
        path="/"
      />
    </authentication>
    
    <authorization>
        <deny users="?"></deny>
    </authorization>
    
    <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true"></trace>
    
    <sessionState
            mode="InProc"
            stateConnectionString="tcpip=127.0.0.1:42424"
            sqlConnectionString="data source=127.0.0.1;user id=sa;password="
            cookieless="false" 
            timeout="20" 
    /> 
    
    <globalization
           fileEncoding="utf-8"
           requestEncoding="utf-8"
           responseEncoding="utf-8"
	   
      />
  
  </system.web>
  
  <appSettings>
	      <add key="appStrConnection" value="server=MYPC;uid=sa;pwd=sa;database=SAMPLE_DBASE"></add>
      <add key="ShareDOCURL" value="/ShareDOC"></add>
	  <add key="GT_subFolder" value="GTHost"></add>
	  <add key="HR_subFolder" value="HRDrive"></add>
	  <add key="SMTPServer" value="192.168.0.8"></add>
	  <add key="SMTPLink" value="http://MYPC/SAMPLEPAGE/login.aspx"></add>
	  <add key="SMTPLinkDisplay" value="http://MYPC/SAMPLEPAGE/login.aspx"></add>
	  <add key="AppMODE" value="test" />

  </appSettings>

</configuration>

You can easily configure smtp server using WAT (WebSite Menu + ASP.NET Configuration).

......
 <system.net>
        <mailSettings>
            <smtp from="admin@abc.com">
                <network host="127.0.0.1" password="aa" userName="aa" />
            </smtp>
        </mailSettings>
    </system.net>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.