Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,


With out using credentials how to send a mail in asp.net by using C#.net.


thanks in advance.
Posted

Generally speaking, you can't - it depends not on your software, but on the email system itself. If it requires authentication, then you must provide credentials in order to send.
There is a generic routine that works with credentials here: Sending an Email in C# with or without attachments: generic routine.[^] - you could remove the authentication part and see if it works. I wouldn't hold out too much hope though, if I was you...
 
Share this answer
 
Comments
Mehdi Gholam 19-Dec-11 3:09am    
5'ed
Monjurul Habib 19-Dec-11 16:48pm    
5!
To send mail without credential is possible only if your mail server allows anonymous authentication. Otherwise its not possible.

hope it helps :)
 
Share this answer
 
Comments
Mehdi Gholam 19-Dec-11 3:09am    
5'ed
Uday P.Singh 19-Dec-11 3:16am    
thank you Mehdi :)
Monjurul Habib 19-Dec-11 16:48pm    
5!
Uday P.Singh 20-Dec-11 6:13am    
Thank you Monjurul :)
jawaharraj89 19-Apr-12 6:08am    
how to determine that mail server had anonymous authentication...is there any mail server like that??

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