Archive

Archive for the ‘Programming’ Category

Sending Mail From Asp.NET on Shared Hosting

September 26th, 2009 Orhan Yediyıldız No comments

I’ve been trying to send email on a shared windows hosting from an Asp.NET page.  I finally found the solution for the problem.  It may be useful for those who have similar problems.

(I used System.Net.Mail namespace).

I was trying this code:

[csharp]
MailMessage msg = new MailMessage();
msg.From = new MailAddress("xxx@xxx.com");
msg.To.Add(new MailAddress("xxx@xxx.com"));
msg.Subject = "Test";
msg.Body = "Body Test";

SmtpClient client = new SmtpClient("smtp.xxx.com", 25);
client.Send(msg);
[/csharp]

This code gave this error:
“Mailbox unavailable. The server response was: 5.7.1″

When I was looking for the solution, I came up lots of suggestions.   Some of them required IIS configuration which I don’t have the chance to make.  Only one of them worked for me:
[csharp]
MailMessage msg = new MailMessage();
msg.From = new MailAddress("xxx@xxx.com");
msg.To.Add(new MailAddress("xxx@xxx.com"));
msg.Subject = "Test";
msg.Body = "Body Test";

SmtpClient client = new SmtpClient("smtp.xxx.com");
client.UseDefaultCredentials = false;
System.Net.NetworkCredential theCredential =
new System.Net.NetworkCredential("xxx@xxx.com", "xxx");
client.Credentials = theCredential;
client.Send(msg);
[/csharp]

How to Install Sweetcron

September 13th, 2008 Orhan Yediyıldız No comments

Yesterday, after my blog database was totally gone, I though I could use sweetcron as content manager.  So I tried to install it. I first tried it on localhost but there were some problems I encountered.  Finally I found solutions for the problems.  The causes were small so that only little changes are enough to handle them.

  1. First, you need to download Sweetcron. You can find the latest release from: http://code.google.com/p/sweetcron/downloads/list
  2. Then unpack the downloaded file and upload its content to your server. I created a subfolder “sweetcron” and put the files in it.
  3. Read more…

Categories: Programming, Web Tags: , ,

Facebook App. GeliÅŸtirme

Bir önceki yazımda da belirttiÄŸim gibi facebook uygulaması geliÅŸtirmek için kolları sıvadım. Her ne kadar aklımda dâhiyane bir fikir olmasa da ÅŸu an sadece sistemin nasıl iÅŸlediÄŸini öğrenmek ile meÅŸgulüm. Bu yazı serisinde bildiÄŸim, tecrübe edindiÄŸim kadarıyla adım adım facebook uygulaması nasıl geliÅŸtirilir onu anlatacağım. Hatalarım, eksiklerim olabilir. Önerisi veya eklemek istediÄŸi ÅŸeyler olanlar beni bilgilendirirlerse sevinirim. Read more…

Benim Eclipse’im

Eclipse’i tanıtmama sanırım gerek yoktur. Herkes onun mükemmel bir açık kaynak kodlu IDE olduğunu biliyordur. Sanırım Eclipse’in en büyük rakibi Netbeans. Gördüğüm ve internetten takip ettiğim kadarıyla her ne kadar Netbeans’te gui geliştirmek sürükle bırak yönemiyle kolay olsa da, Eclipse hız konusunda Netbeans’e oranla daha başarılı. Ayrıca Eclipse’in geniş plug-in ağından yararlanarak istediğiniz özellikleri ekleyebilirsiniz. Örneğin Netbeans’te yer alan görsel gui geliştirme ve daha birçok özelliği, plug-inler sayesinde Eclipse’te de kullanabilirsiniz.

Benim kullandığım bazı plug-in’ler:
Read more…