powered by simpleCommunicator - 2.0.60     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / Посылка мыла
4 сообщений из 4, страница 1 из 1
Посылка мыла
    #34072202
conderol
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Пишу на .Net 2.
Написал код что посылет сообщения на мыло.private void SendMail(string to, string data,string type)
{
try
{
SmtpClient client = new SmtpClient();
client.Host = ConfigurationManager.AppSettings["MailHost"].ToString();

MailMessage msg = new MailMessage(ConfigurationManager.AppSettings["MailFrom"].ToString(),
to, "New \"CurrentEvent\" subscriber - "+type+" ("+DateTime.Now.ToLocalTime().ToString()+")",data );

msg.IsBodyHtml = true;
client.Send(msg);
//Response.Write(true);
}
catch
{
Label1.Text = "Error";//Response.Write(false);
}
}

на yahoo всё приходит как надо. Но на gmail и mail.com не призодит вообще. В чём может быть причина?/**********Comments***************************/
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:
 #1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
...
Рейтинг: 0 / 0
Посылка мыла
    #34072273
RadioShark
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Попробуй использовать OpenSmtp вместо System.Web.Mail.
--
С уважением,
Алексей К.
...
Рейтинг: 0 / 0
Посылка мыла
    #34072291
conderol
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
а если всё таки методами Framework-а/**********Comments***************************/
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:
 #1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
...
Рейтинг: 0 / 0
Посылка мыла
    #34072397
RasimS
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
conderolа если всё таки методами Framework-а/**********Comments***************************/
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:
 #1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

быть может срабатывают какие-либо спам фильтры. это уже зависит от настроек на доменах
...
Рейтинг: 0 / 0
4 сообщений из 4, страница 1 из 1
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / Посылка мыла
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]