0

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>
2
Contributors
1
Reply
3
Views
7 Years
Discussion Span
Last Post by __avd
0

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>
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.