Понеділок, 13 лютого 2006 р.

Відправлення email в .NET

Відправити email в .NET не важко, для цього є бібліотека system.net.mail. Як це зробити
можна подивитись тут, якщо ви пишите на .NET 2 то тут.
Але коли я намагався відправити цього листа я отримав помилку: "Mailbox Unavailable. The server response was: 5.7.1 unable to relay for " і алі адреса отримувача листа.
Я перерив інтернет і знайшов таке ріщення:
"You need to tell the SMTP server who is allowed to relay emails through that server. If you are using IIS5.1 or IIS6 then you should be able to load IIS

* Right click on Default SMTP Virtual Server and select properties
* Select the access tab
* Click the Relay button
* Click the Add button
* Type in your ip address"