Pradeep

a TeamSite blog…

.Net Decompiler August 18, 2004

Filed under: Uncategorized — Pradeep @ 9:40 am

You can decompile any .net assembly with these tools.

http://www.aisto.com/roeder/dotnet/
http://www.saurik.com/net/exemplar/

 

SMTP Authentication in ASP.NET January 28, 2004

Filed under: Uncategorized — Pradeep @ 11:29 am

Hi, I had faced a problem when sending mails from ASP.NET using .NET 1.0. My Exchange server needs authentication to send mails. Later found that .NET 1.0 doenst support authencation with an SMTP server. I had to switch over to .NET 1.1 to send mails. All which is required to add a few lines of code for authentication.

//This is a usual code
System.Web.Mail.MailMessage msg = new System.Web.Mail.MailMessage();
msg.Subject = “Test Subject”;
msg.Body = “Sample Body Message”;
msg.From = yourname@domain.com;
msg.To = someone@domain.com;
System.Web.Mail.SmtpMail.SmtpServer = “EXCHANGESERVER”;
System.Web.Mail.SmtpMail.Send( msg );

//Add this line of code for authentication.
msg.Fields.Add(“http://schemas.microsoft.com/cdo/configuration/smtpauthenticate”,2);
where the 2 specifies NTLM, 1 for basic, 0 for none.

 

VB.NET to C# Code Conversion Tool January 28, 2004

Filed under: Uncategorized — @ 11:01 am

Found an interesting tool for code conversion. This tool converts VB.NET to C#, VB6 to C#, Delphi to C#.
Source can be found here.

http://w1.311.telia.com/~u31115556/zip/MyUtils/BabbelFisken/Zexedir.zip