Click here to Skip to main content
15,886,038 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi sir,
I am sending a email using Smtp.web.mail.
But i am receiving an exception in it name as "SendUsing configurtion value is invalid".
Give me suggestion for the solution.
Thank You.
Posted

1 solution

Make sure you have configured SMTP configuration in Web.Config:
<system.net>
   <mailSettings>
     <smtp from="abc@somedomain.com">
       <network host="somesmtpserver" port="25" userName="name" password="pass" defaultCredentials="true" />
     </smtp>
   </mailSettings>
</system.net>

If needed, have a look at this Microsoft Video tutorial:
Use ASP.NET to send Email from Website[^]
Tutorials on sending Email in ASP.NET[^]
 
Share this answer
 
Comments
SURBHI TYAGI 24-May-11 2:10am    
in from i write my email address and what is userName and password plz tell?
Sandeep Mewara 24-May-11 2:22am    
You must be kidding. I will tell you the username and password? :laugh:
SURBHI TYAGI 24-May-11 2:52am    
:)
Sandeep Mewara 24-May-11 3:03am    
:)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900