Hi,
 
if web server and smtp server on the same machine
you may try this.
 

SmtpMail.SmtpServer ="ip address of your smtp server"

go to IIS and SMTP server properties


delivery - Tab - Advanced

 

smarthost must be assigned. eg

smarthost = smtp.xyz.com (your mailserver address)

-------------------------------------------

if web server and smtp server different you must

configure smtpserver properties

access tab 

connection and relay (authendication)

 

Rgds / Renga


Abeera Hussain <[EMAIL PROTECTED]> wrote:

I want to send email through a web application. I am facing  the following 
exception.

System.Runtime.InteropServices.COMException: The transport failed to connect to 
the server.

Plz can anybody help in this regard that how an email can send by smtp server 
on the same computer.

I want to know each and every  steps.

Like setting of SmtpMail.SmtpServer=" ";

thanks










            
---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.  

[Non-text portions of this message have been removed]





SPONSORED LINKS 
Basic programming language Computer programming languages Programming languages 
Java programming language 

---------------------------------
YAHOO! GROUPS LINKS 


    Visit your group "AspNetAnyQuestionIsOk" on the web.
  
    To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
  
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


---------------------------------



                
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.  

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to