Re[5]: Не могу отослать письмо с помощью smtpClient.Send
От: Дюша Россия http://www.danfoss.com/russia
Дата: 28.09.07 10:43
Оценка:
Здравствуйте, vlepihin, Вы писали:

V>Оказалось, что

V>
V>smtpClient.UseDefaultCredentials = true;
V>

V>Я зря написал. Без него все отправилось, без всяких пользователей и паролей. Почему?

RTFM

Some SMTP servers require that the client be authenticated before the server sends e-mail on its behalf. Set this property to true when this SmtpClient object should, if requested by the server, authenticate using the default credentials of the currently logged on user.


If the UseDefaultCredentials property is set to false and the Credentials property has not been set, then mail is sent to the server anonymously.

... << RSDN@Home 1.1.4 stable SR1 rev. 568>>

 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.