Smtp send error the operation has timed out

User1310320473 posted
  • Remove From My Forums
  • Question

  • User1310320473 posted

    I need to develop a mailing system in the intranet web-based application that I am working on it for my company. I am developing it with ASP.NET and C#. The purpose of this system is to let the admin to be able to send emails to the users. I developed this
    system and I tested for 25 users and it works fine.

    Now, I have 386 users in the database, so when I tried to send them emails, I got the following error:

    > Exception Details: System.Net.Mail.SmtpException: The operation has
    > timed out.
    I think this is because of ISP in my company blocked sending email to many users after a certain number of milliseconds. I tried to use SendAsync but I found it will not benefit me.

    Also, I tried to maximize the execution timeout in the Web.config file as folloiwng:

    <location path="Email4.aspx">
                <system.web>
                        <httpRuntime executionTimeout="180"/>
                </system.web>
        </location>

    but I failed. **So how to fix this problem?**

    My Code-Behind (C#):

        protected void Page_Load(object sender, EventArgs e)
            {
                SendEmailTOAllUser();
            }
        
        
            protected void SendEmail(string toAddresses, string fromAddress, string MailSubject, string MessageBody, bool isBodyHtml)
            {
                SmtpClient sc = new SmtpClient("MAIL.companyDomainName.com");
                try
                {
                    MailMessage msg = new MailMessage();
                    msg.From = new MailAddress("pssp@companyDomainName.com", "PMOD Safety Services Portal (PSSP)");
        
                    // In case the mail system doesn't like no to recipients. This could be removed
                    //msg.To.Add("pssp@companyDomainName.com");
        
                    msg.Bcc.Add(toAddresses);
                    msg.Subject = MailSubject;
                    msg.Body = MessageBody;
                    msg.IsBodyHtml = isBodyHtml;
                    //Response.Write(msg);
                    sc.Send(msg);
                }
                catch (Exception ex)
                {
                    throw ex;
                }
        
            }
        
            protected void SendEmailTOAllUser()
        
            {
                string connString = "Data Source=localhost\sqlexpress;Initial Catalog=psspEmail;Integrated Security=True";
        
                using (SqlConnection conn = new SqlConnection(connString))
                {
                    var sbEmailAddresses = new System.Text.StringBuilder(1000);
                    string quizid = "";
        
                    // Open DB connection.
                    conn.Open();
        
                    string cmdText = "SELECT MIN (QuizID) As mQuizID FROM dbo.QUIZ WHERE IsSent <> 1";
                    using (SqlCommand cmd = new SqlCommand(cmdText, conn))
                    {
                        SqlDataReader reader = cmd.ExecuteReader();
                        if (reader != null)
                        {
                            while (reader.Read())
                            {
                                // There is only 1 column, so just retrieve it using the ordinal position
                                quizid = reader["mQuizID"].ToString();
        
                            }
                        }
                        reader.Close();
                    }
        
                    string cmdText2 = "SELECT Username FROM dbo.employee";
                    using (SqlCommand cmd = new SqlCommand(cmdText2, conn))
                    {
                        SqlDataReader reader = cmd.ExecuteReader();
                        if (reader != null)
                        {
                            while (reader.Read())
                            {
                                var sName = reader.GetString(0);
                                if (!string.IsNullOrEmpty(sName))
                                {
                                    if (sbEmailAddresses.Length != 0)
                                    {
                                        sbEmailAddresses.Append(",");
                                    }
                                    // Just use the ordinal position for the user name since there is only 1 column
                                    sbEmailAddresses.Append(sName).Append("@companyDomainName.com");
                                }
                            }
                        }
                        reader.Close();
                    }
        
                    string cmdText3 = "UPDATE dbo.Quiz SET IsSent = 1 WHERE QuizId = @QuizID";
                    using (SqlCommand cmd = new SqlCommand(cmdText3, conn))
                    {
                        // Add the parameter to the command
                        var oParameter = cmd.Parameters.Add("@QuizID", SqlDbType.Int);
                        // Get a local copy of the email addresses
                        var sEMailAddresses = sbEmailAddresses.ToString();
        
        
                            string link = "<a href='http://pmv/pssp/StartQuiz.aspx?testid=" + quizid + "'> Click here to participate </a>";
                            string body = @"Good day, <br /><br />
                                        <b> Please participate in the new short safety quiz </b>"
                                                + link +
                                                @"<br /><br />
                                    Also, give yourself a chance to gain more safety culture by reading the PMOD Newsletter.
                                    <br /> <br /><br /> <br />
                                    This email was generated using the <a href='http://pmv/pssp/Default.aspx'>PMOD Safety Services Portal (PSSP) </a>.
                                    Please do not reply to this email.
                                    ";
        
                            SendEmail(sEMailAddresses, "", "Notification of New Weekly Safety Quiz", body, true);
        
                            // Update the parameter for the current quiz
                            oParameter.Value = quizid;
                            // And execute the command
                            cmd.ExecuteNonQuery();
                    }
                    conn.Close();
                }
            }

    Now, I am thinking to split the list of users (that is in the database) in to smaller lists and send multiple emails.
    But how to do that?

Answers

    • Marked as answer by

      Thursday, October 7, 2021 12:00 AM

  • Remove From My Forums
  • Question

  • I can use some other tools to send emails (like http://glob.com.au/sendmail/ for example), but for some reason I can’t send emails with Net.Mail.SmtpClient.

    I am using the same settings as I have configured in my email client (outlook) as well. The vendors server (which I have no access to) uses a different outgoing port (465) and SSL. Currently just trying to send emails to myself.

    $CredUser = "me@mydom.com"
    $CredPassword = "mypass!"
    
    $EmailFrom = $CredUser
    $EmailTo = $CredUser 
    $Subject = "Test mail Subject"
    $Body = "Test Email Body" 
    $SMTPServer = "www.myemailvendor.biz"
    
    $msg = new-object Net.Mail.MailMessage
    $msg.From = $EmailFrom
    $msg.to.Add($EmailTo)
    $msg.Subject = $Subject
    
    $msg.Body = $Body
    
    $SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 465) 
    $SMTPClient.EnableSsl = $true 
    $SMTPClient.Credentials = New-Object System.Net.NetworkCredential($CredUser, $CredPassword) 
    
    $SMTPClient.Send($msg)

    The error I get is: Exception calling «Send» with «1» argument(s): «The operation has timed out.»

    How can I troubleshoot this further

    • Edited by

      Thursday, February 21, 2013 6:19 PM

Answers

  • I’d throw Network Monitor onto your system — and look for the outgoing SMTP connection. That may help diagnose your issue.

    In general, time outs are due to the IP address not really existing, the port not existing (or being blocked) and firewalls. You shoudl take a look at your firewall logs and event logs, and double check the port for your SMTP server.


    Thomas Lee <DoctorDNS@Gmail.Com>

    • Marked as answer by
      Bill_Stewart
      Friday, February 22, 2013 3:44 PM

In this mini series on emailing in .NET we saw how to compose and send emails.

There are many things that can go wrong when you send an email: the SMTP server is down, your credentials are invalid, the recipient is invalid etc. When sending an email in .NET you should always catch and handle any SmtpExceptions and SmtpFailedRecipientExceptions. Examples:

SmtpClient client = new SmtpClient(null);
try
{
	client.Send(mailMessage);
}
catch (InvalidOperationException invalid)
{
	Console.WriteLine("Server hostname is missing: " + invalid.Message);
}

InvalidOperationException is thrown in case the host is missing.

string smtpServer = "mail.blahblah.com";
SmtpClient client = new SmtpClient(smtpServer);
try
{
	client.Send(mailMessage);
}
catch (SmtpException smtpNotFound)
{
	Console.WriteLine("Server hostname is invalid: " + smtpNotFound.Message);
}

SmtpClient will try to contact mail.blahblah.com but fails of course. If you run this code then be patient as the default timeout of SmtpClient is 100 seconds, so you won’t see the exception message immediately.

In the above case SmtpException will have an inner exception of type WebException. smtpNotFound.Message like above will only show a generic message: “Failure sending mail”. If you want to dig deeper you’ll need to check if there’s any inner exception:

string smtpServer = "mail.blahblah.com";
SmtpClient client = new SmtpClient(smtpServer);
try
{
	client.Send(mailMessage);
}
catch (SmtpException smtpNotFound)
{
	Console.WriteLine("Server hostname is invalid: " + smtpNotFound.Message);
        if (smtpNotFound.InnerException != null)
	{
		Console.WriteLine(smtpNotFound.InnerException.Message);
	}
}

The inner exception message will be “Unable to connect to the remote server”.

SmtpException can also be thrown if the operation times out, but in that case there will be no inner exceptions:

SmtpClient client = new SmtpClient(smtpServer);
client.Timeout = 10;
try
{
	client.Send(mailMessage);
}
catch (SmtpException smtpNotFound)
{
	Console.WriteLine("Server hostname is invalid: " + smtpNotFound.Message);
}

We set the timeout to 10 seconds which is reached before SmtpClient determines that the SMTP server cannot be reached. Hence the exception message will say “The operation has timed out.”

SmtpException can also be thrown for a variety of other reasons like message transmission problems, so don’t forget to check the inner exception as well, it may contain a more detailed description of the problems.

There’s also an exception of type SmtpFailedRecipientException. If you work at GreatCompany Ltd. and your mail server is mail.greatcompany.com and you want to send an email to john@greatcompany.com then your mail server will be able to determine if the recipient exists and return an error if it doesn’t. If however, you’re sending an email to a recipient on another mail server then mail.greatcompany.com won’t of course see whether the recipient is valid or not. So you can only rely on this exception type if you’re sending an email within your network.

In this post we saw how to send an email asynchronously through SendAsync. The event arguments to the SendCompleted event handler includes a property called Error. If you send your email in this manner than the InvalidOperationException and SmtpException error caught will be set to this property so you can check the result.

Read all posts related to emailing in .NET here.

Всем привет не получается отправить email на C#. обыскал кучу форумов темы 7-ми летней давности мне не помогли

1.я создал на mail.ru пароль для приложений.
2. Использую smtp.mail.ru server с настройками которые рекомендует справка mail.ru
3. отключил касперский free
4 отключил брандмауер виндовс, на всякий случай открыл в неём порт 465
3. с реального mail.ru ящика отправляю письмо на реальный ящик yandex(a)
2. smtp.mail.ru из командной строки успешно пингуется
4. возникает ошибка превышения времени ожидания на строке smtp.Send(m);
«The operation has timed out.»

Можете подсказать где ошибка в коде. может я чего-то не знаю и не понимаю. Может нужно решение на
новых физических принципах?

с 9:00 до 13:00 искал решение проблемы в гуглах ничего и не как в результате не помогло

Может есть книги где решаются подобные бытовые задачи?
Я не знаю в какую сторону копать с этой ошибкой

C#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Net;
using System.IO;
using System.Threading.Tasks;
using System.Net.Mail;
 
namespace NetConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
 
            // отправитель - устанавливаем адрес и отображаемое в письме имя
            MailAddress from = new MailAddress("тут реальная почта mail", "Tom");
            // кому отправляем
            MailAddress to = new MailAddress("тут реальная почта яндекс");
            // создаем объект сообщения
            MailMessage m = new MailMessage(from, to);
            // тема письма
            m.Subject = "Тест";
            // текст письма
            m.Body = "<h2>Письмо-тест работы smtp-клиента</h2>";
            // письмо представляет код html
            m.IsBodyHtml = true;
            // адрес smtp-сервера и порт, с которого будем отправлять письмо
            SmtpClient smtp = new SmtpClient();    
            smtp.Port = 465;
            smtp.Host = "smtp.mail.ru";
            smtp.Credentials = new NetworkCredential("тут реальная почта mail", "тут пароль для приложений email");
            smtp.EnableSsl = true;
           // smtp.Timeout = 6000;
            smtp.Send(m);
            Console.ReadKey();
        }
    }
}

10 я winda на компе

Добавлено через 57 минут
Короче андрюх, этот код сработал при изменении порта SMTP клиента на :587-й хз почему не работает 465-й и как его расшарить но код относительно рабочий можно поискать также сторонние библиотеки под yandeкс смtp сервера. Всем спасибо.

но Всё-же почему не хочет работать с 465 и 25-ми портами если кто знает прошу ответить

Добавлено через 1 час 13 минут
пока я искал решение своей проблемы выяснилось что библиотека System.Net.Mail; устрела для этих задач и Microсанкционныйsoft рекомендует использовать библиотеку MailKit и всё что с ней связанно. Надеюсь кому то будет полезно

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь

Будучи менеджером коммерческого отдела небольшой торговой компании, я выполнял задачу по отправке нескольких сотен писем постоянным и потенциальным клиентам. Базу формировали из открытых источников мы сами, предложение было реально интересным целевой аудитории. Возникла «неожиданная» проблема – часть писем стала возвращаться. Кроме того, начали приходить сообщения с указаниями кодов ошибки SMTP. Своего IT-специалиста в штате у нас не было, потому разобраться с проблемой я решил самостоятельно. О результатах этой работы, причинах возникновения таких ошибок и методах их решения расскажу в этой статье.

Ошибка SMTP

Как избежать ошибок при составлении и отправке писем

Причинами возникновения ошибок и, как следствие, неполучения сообщений могут служить разные факторы. Одни из них связаны с неправильным составлением исходящих писем самим пользователем, другие относятся к более глобальным программным настройкам со стороны получателя.

Самый простой способ это понять – отправить тестовое сообщение на свой ящик. Затем следует протестировать его отправку и получение, используя разные внешние почтовые сервисы: gmail, yandex, mail, rambler и другие. Если сообщение получено, следует ответить на него, проверив корректность исполнения команды «RE» вашим почтовым сервером и принятие ответа условным отправителем.

Довольно часто проблемы с попаданием писем в папку «Спам» или программной блокировкой на стороне получателя лежат в неверном оформлении ключевых полей. Особенно это касается массовых рассылок коммерческого характера. Для отправки большого количества однотипных сообщений как минимум потребуется выполнение следующих параметров настройки:

  • выделенный IP-адрес с целью исключить блокировку на стороне сервера-ретранслятора или почтовой программы конечного получателя;
  • криптографические подписи DKIM и SPF, помогающие подтвердить подлинность домена и минимизировать количество писем, воспринимаемых как спам.

Важно! В случае несоблюдения этих элементарных правил вы рискуете не только тем, что конкретное письмо не будет доставлено адресату. При многократных попытках отправки письма в большинстве почтовых программ в блок-лист попадет вся корреспонденция, отправляемая с вашего email, и даже корпоративный домен (@domain.***).

Некорректное использование бота для отправки писем может привести к блокировке отправителя и другим нежелательным последствиям. Даже если информация, которую вы отправляете потенциальным клиентам, реально интересна им, система спам-фильтрации может воспринять данную рассылку как вредоносную. Чтобы избежать этого, лучше всего воспользоваться услугами специализированных компаний.

В моей практике был случай, когда никак не удавалось добиться получения моей электронной корреспонденции одним из сотрудников компании «Лукойл». Письма я отправлял самые простые, используя корпоративный ящик. Только после того, как мой респондент обратился в IT-службу своего предприятия, выяснилось, что данный адрес находится в блэк-листе. Попал он туда из-за каких-то ошибок, допущенных моим предшественником. Понадобилось больше недели, чтобы адрес включили в «белый список». Все это время письма, высылаемые с личного mail@yandex.ru, доходили без проблем.

Полезно: Почему не приходят письма с сайта. Пример частного случая.

Комьюнити теперь в Телеграм

Подпишитесь и будьте в курсе последних IT-новостей

Подписаться

Положительные и отрицательные сообщения SMTP-сервера

SMTP (Simple Mail Transfer Protocol) — это протокол, используемый большинством почтовых программ для отправки электронных сообщений в сети интернет. Некорректное взаимодействие между серверами, индивидуальные настройки на уровне программного обеспечения и многие другие причины приводят к появлению ошибок. В этом случае письма не доходят до получателей, возвращаются обратно или просто «пропадают». При возникновении таких ситуаций отправитель получает сообщение о наличии конкретной ошибки, отражающей SMTP-код последнего отклика сервера.

Ошибка отправки писемДанные коды являются трехзначными, каждая его часть несет в себе определенную информацию, расшифровывающую причину сбоя.

Первая цифра комбинации содержит информацию о качестве доставки:

  • сообщение доставлено («SMTP OK»);
  • возникла неизвестная или временная проблема («SMTP unknown»);
  • критическая ошибка («SMTP error»). 

Существует четыре варианта значений для первой цифры кода:

  • 2xx – положительный результат, есть возможность передачи следующей команды;
  • 3xx – отложенный результат, необходимо осуществление дополнительных действий;
  • 4xx – сообщение не принято, но проблема носит временный характер, и запрос может быть повторен через какое-то время; 
  • 5xx – категорический отказ выполнения команды, отправка запроса со стороны передающего сервера в том же виде невозможна. 

Вторая цифра в коде сообщает о категории ответа:

  • 0 – синтаксические ошибки; 
  • 1 – ответы на запросы информации; 
  • 2 – ошибки канала передачи; 
  • 3 и 4 – неизвестный тип ошибки;
  •  5 – статус почтовой системы.

Третья цифра дает более расширенную информацию о значении, указанном во второй цифре SMTP-ответа.

Помимо цифровой комбинации, SMTP-сообщение может содержать дополнительную текстовую информацию.

Полную информацию о кодах, их компоновке и значениях можно найти в спецификациях RFC 5321 и RFC 1893.

Следует учитывать, что SMTP-message говорит об успешном или неудачном варианте доставки именно на уровне взаимодействия почтовых серверов. Положительный ответ вовсе не означает, что ваше письмо не попало в папку «Спам».

Читайте также

Как настроить почту в Outlook

Почему письма не отправляются с электронной почты

Виды почтовых сервисов

На программном уровне существует несколько видов обработки электронной почтовой корреспонденции. К первой группе относятся виртуальные сервисы, доступные чаще всего в бесплатном исполнении через интернет-соединение на сайте почтового сервера. Это всем известные ресурсы: 

  • Gmail/Google Suite (почта от Google.com);
  • Yandex.ru;
  • Mail.ru; 
  • Rambler.ru и другие.

Более подробную информацию о значениях ответов SMTP можно получить на сайтах популярных почтовых сервисов:

  • Коды ошибок SMTP почтового сервиса Gmail (Google Suite) (support.google.com)
  • Создание и отправка писем на сервисе Яндекс
  • Ошибки отправки писем при использовании сервера и сервиса Mail.ru

Ко второй группе относятся почтовые клиенты – программы, обладающие более расширенным функционалом, чем виртуальные сервисы. Наиболее популярными и универсальными почтовыми клиентами для Windows являются:

  • Opera Mail;
  • Mozilla Thunderbird;
  • Koma-Mail;
  • SeaMonkey;
  • The Bat!;
  • Microsoft Outlook.

Принципы работы почтовых клиентов несколько отличаются от процесса обработки корреспонденции виртуальными серверами. При отправке сообщения программа отсылает его не напрямую конечному получателю, а ретранслирует через сервер-релей. Этот процесс осуществляется чаще всего с использованием протокола SMTP, а получение корреспонденции обычно происходит с помощью IMAP или POP.

Коды SMTP-ответов определяются стандартом. Администратор почтового сервера может создать собственные настройки, в том числе и в части кодировки ответов сервера. Особенно это касается локальных почтовых программ, установленных непосредственно на сервере какой-нибудь компании.

О вариантах выбора и способах создания корпоративных почтовых сервисов более подробно можно прочитать здесь: Что такое почтовый сервер и зачем он нужен.

Чипсендер

Классификация отрицательных SMTP-сообщений. Способы решения проблем

Классификация отрицательных SMTP-сообщенийЯ настроил свою почтовую программу – локальный клиент (MS Outlook и т.п.) или бесплатную почту на gmail или yandex. Начинаю отправлять письма, но сталкиваюсь с различными проблемами, связанными с тем, что мои респонденты не получают направленную им корреспонденцию. Соответственно, на мой ящик приходят сообщения об ошибках в виде кодировок SMTP. 

Сразу опускаю тот пакет сообщений, которые начинаются с 2хх и 3хх, так как они содержат информацию о том, что задача получения письма уже решена положительно либо получит такой статус в ближайшее время. Более подробно рассмотрим некоторые виды кодированных сообщений, начинающихся с 4хх и 5хх, т.е. отклики SMTP-сервера, которые сообщают о наличии проблем.

Почтовый сервер сообщил об ошибке 421

Значение: Service Not Available. Сервер недоступен: канал связи будет закрыт.

Возможные причины

Варианты решения

Неправильно заданы параметры SMTP-соединения

Необходимо перепроверить настройки

Брандмауэр блокирует IP-адрес сервера электронной почты

Необходимо создать новое правило в брандмауэре

Блокируется трафик через порт 25

Попробуйте в настройках учетной записи электронной почты сменить номер порта SMTP на 465

Проблема использования VPN

Необходимо, чтобы провайдер услуги занес ваш почтовый сервер в белый список адресов VPN

Данная ошибка возникает наряду с грейлистингом (Greylisting «Серый список») при интенсивном использовании бесплатного SMTP-сервера, который лимитирует количество отправляемых сообщений в единицу времени. Для решения этой проблемы можно воспользоваться высоконагруженным SMTP-сервером. Чаще всего эта услуга является платной.

Получено сообщение с кодом 451

Значение: Requested action aborted: local error in processing. Требуемое действие прерывалось: ошибка в обработке.

Возможные причины

Варианты решения

Превышено количество допустимых подключений или лимит обмена сообщениями за отрезок времени, письма ждут отправки в очереди

В настройках сервера увеличить лимит или задать ограничение не на количество подключений, а на количество писем на одного пользователя. Накопившуюся очередь писем можно отправить повторно командой «force send»

Неправильно настроены MX-записи домена, из-за чего происходит неправильная маршрутизация писем

Проверьте логи, конфигурационные файлы, МХ-записи и разрешения, внесите корректировки

Устранение проблем с доставкой электронной почты для кода ошибок 451 4.7.500–699 (ASxxx) в Exchange Online. Электронная почта из доменов onmicrosoft.com ограничена и фильтруется для предотвращения спама.

Необходимо добавить настраиваемый домен.

Ошибка почтового сервера 452

Значение: Insufficient system resources. Запрашиваемое действие не выполнено: недостаточно места в системе.

Возможные причины

Варианты решения

На сервере получателя закончилось место, поэтому письмо не доставляется

Чтобы в этом убедиться, достаточно попробовать осуществить отправку письма с другого сервера

В сообщении присутствует текст «Out of memory». Это значит, что недостаточно места на вашем сервере

Необходимо проверить количество отправляемых писем в очереди, наличие свободного места на диске и объем доступной памяти

В Microsoft Exchange Server есть специальный компонент мониторинга доступных ресурсов Back Pressure, который отслеживает свободное место на диске, на котором хранятся очереди транспортной службы Exchange. При возникновении такой ошибки можно сделать следующее:

  • очистить диск от ненужных файлов;
  • отключить мониторинг Back Pressure (не рекомендуется);
  • перенести транспортную очередь на другой диск достаточного объема.

Доставка письма

Сервер сообщил об ошибке SMTP 550

Значение:  Mailbox unavailable. Требуемые действия не предприняты: электронный ящик недоступен

Возможные причины

Варианты решения

Неверно указан email-адрес получателя

Необходимо связаться с адресатом альтернативным способом и уточнить правильность написания адреса, а также убедиться, что он является действующим

Система заражена вирусом, осуществляющим массовую рассылку писем с вашего адреса

Провести полную проверку специализированной антивирусной программой

На стороне вашего интернет-провайдера установлены ограничения на отправку исходящих сообщений

Необходимо связаться с поставщиком интернет-услуг и получить консультацию по устранению данной проблемы

Сервер получателя не работает

Отправьте тестовое письмо на другой почтовый сервер. Свяжитесь с получателем и сообщите о проблеме

Данная ошибка может возникнуть из-за настроек программы Антиспам на стороне получателя. Проверьте корректность оформления вашего письма и другие параметры, по которым ваше сообщение может быть отнесено к нежелательным.

Почтовый сервер ответил ошибкой 571

Значение:  SMTP Protocol Returned a Permanent Error 571 xxx@mail.ru prohibited. We do not relay/Spam message rejected. Ошибка на стороне получателя почты.

Возможные причины

Варианты решения

Ваш IP-адрес заблокирован на стороне конечного получателя спам-фильтром, антивирусом или файрволом

Данную проблему может решить только администратор сети получателя, исключив ваши идентификационный данные из списка блокировки или добавив их в «белый список»

Неверные учетные данные ретранслятора. У вас нет разрешения на отправку электронной почты через сервер, который находится между вами и получателем

Обратитесь к администратору данного ресурса для изменения настроек

У IP отправителя нет RDNS

Проверьте настройки получения писем и разрешения для доменов-отправителей

Как я уже писал выше, разные почтовые серверы накладывают свои ограничения на прием и отправку сообщений. Код 571 в Google Suite расшифровывается следующим образом: «Действующая политика запрещает отправку этого сообщения». Письмо может содержать защищенные или конфиденциальные данные – номера кредитных карт и т.п. Или политика администрирования запрещает отправку определенными пользователями сообщений адресатам вне установленной группы.

Сертификат почтового сервера недействителен

Предупреждение безопасности интернетаОбычно с таким сообщением приходится сталкиваться пользователям, у которых настроен Microsoft Exchange Server/MS Outlook. В данной ситуации самое простое решение – обновить сертификат.

Проверка доступности почтового сервера программным методом

В данной статье описаны лишь некоторые варианты ошибок, которые могут возникнуть при отправке электронных сообщений. Полный перечень достаточно объемен и во многом зависит от настроек конкретного сервера как на стороне отправителя, так и получателя. Некоторые из ошибок могут быть легко устранены обычным пользователем, другие под силу лишь опытным администраторам.

Одним из способов предупреждения появления ошибок является онлайн-проверка доступности почтового сервера с помощью бесплатных инструментов:

  • https://mxtoolbox.com
  • https://www.ultratools.com
  • http://mail2web.com

Эти сервисы пробуют подключиться к почтовому серверу по SMTP, подтверждают, что у него есть запись обратной зоны DNS, и замеряют время отклика. С их помощью можно диагностировать некоторые ошибки службы почтовых серверов или проверить, не занесен ли данный ресурс в черные списки из-за спама.

Прочитав эту статью, обратите внимание на то, как настроен ваш почтовый сервер на получение сторонних писем по SMTP-протоколу. Быть может, в данный момент ваш антиспам или локальная политика фильтрации входящих сообщений блокирует получение очень важного и нужного для вас месседжа? Проверьте сами или обратитесь к системному администратору. Если ошибку с SMTP никак не удается решить, то попробуйте обратиться в службу поддержки почтового сервера.

Imports System.Web
Imports System.IO
Imports System.Net.Mail
Imports System.Net.Mail.Attachment
Imports System.Runtime
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
                SendMail("alvikashif29@yahoo.com", "alvi_kashif@rocketmail.com", "Test Email", "Vb .net Appliction sent this mail", "smtp.gmail.com", False, 465, , "alvikashif29@gmail.com", "xxxxxxxxx")
    End Sub
    
    Public Sub SendMail(ByVal [From] As String, ByVal [To] As String, _
                        ByVal Subject As String, ByVal Body As String, ByVal MailServer _
                        As String, Optional ByVal IsBodyHtml As Boolean = True, _
                        Optional ByVal MailPort As Integer = 25, _
                        Optional ByVal Attachments() As String = Nothing, Optional _
                        ByVal AuthUsername As String = Nothing, Optional ByVal _
                        AuthPassword As String = Nothing)
        
        
        Dim MailClient As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient(MailServer, MailPort)
        
        
        Dim MailMessage = New System.Net.Mail.MailMessage([From], [To], Subject, Body)
        
        MailMessage.IsBodyHtml = IsBodyHtml
        
        If (AuthUsername IsNot Nothing) AndAlso (AuthPassword IsNot Nothing) Then
            MailClient.UseDefaultCredentials = False
            MailClient.EnableSsl = True
            MailClient.Credentials = New System.Net.NetworkCredential(AuthUsername, AuthPassword)
        End If
        
        If (Attachments IsNot Nothing) Then
            For Each FileName In Attachments
                MailMessage.Attachments.Add(New System.Net.Mail.Attachment(FileName))
            Next
        End If
        MailClient.Send(MailMessage)
        MessageBox.Show("mail sent")
    End Sub

End Class

This my code on a new window form with a button on it on click event the sendmail is called with appropriate parameters but when running it an exception occurs
«The operation has timed out»
I am using my gmail account
the smtp server is = smtp.gmail.com
and the port for ssl is 465
(now dont tell me to use 587 as the port because it also does not works. It gives an error
«The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.»)
Please help me out of this situation please.

Updated 22-Apr-13 22:45pm


You have to use 587 port.
Follow my answer sending email to gmail from asp.net[^] and check whether you are doing the same or not, else format the code like that.

Make sure the username and password are correct.

For the exception you are getting…

Google may prevent an application from accessing your account
Here you can enable applications to access google account with your credentials:
Access https://accounts.google.com/DisplayUnlockCaptcha[^], click continue button and try to send mail after that from the application.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject,
20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8
+1 (416) 849-8900

Я использую код ниже.. и после отправки формы im получаю следующую ошибку:

" Error:System.Net.Mail.SmtpException: The operation has timed out. at System.Net.Mail.SmtpClient.Send(MailMessage message) at Consultancy.Registration.Button1_Click1(Object sender, EventArgs e) in G:servetechsolutionsConsultancyRegistration.aspx.cs:line 48Your  "

код:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net;
using System.Net.Mail;
using System.Net.Security;

namespace Consultancy
{
    public partial class Registration : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }


        protected void Button1_Click1(object sender, EventArgs e)
        {
            try
            {
                MailMessage mailMsg = new MailMessage();

                mailMsg.From = new MailAddress(TextBox4.Text);

                mailMsg.To.Add("[email protected]");

                mailMsg.IsBodyHtml = true;

                mailMsg.Subject = "Contact Details";

                mailMsg.Body = "akjmsjfh";


                SmtpClient smtp = new SmtpClient("smtp.gmail.com");
                smtp.Port = 465;
                //mailMsg.Priority = MailPriority.Normal;

                smtp.Credentials = new System.Net.NetworkCredential("[email protected]", "password");

                smtp.Timeout = 25000;

                smtp.EnableSsl = true;

                smtp.Send(mailMsg);

                lblResult.Text = "Thank you. Your contact details and feed back has been submitted.";
            }
            catch (Exception ex)
            {
                Response.Write("Error:" + ex.ToString());
            }

        }





        public bool True { get; set; }
    }
}

31 янв. 2015, в 17:22

Поделиться

Источник

3 ответа

Попробуйте изменить порт smtp на 587:

smtp.Port = 587;

Nadson Luiz
12 фев. 2015, в 14:16

Поделиться

Как сказал Надсон, правый порт — 587, но для аутентификации вам также необходимо разрешить доступ к менее безопасным приложениям в вашей учетной записи gmail. Попробуйте здесь

Это сработало для меня, надеюсь, это поможет.

dinhokz
04 май 2015, в 09:28

Поделиться

Ещё вопросы

  • 1Почему обработчик события UnobservedTaskException не запускается для задачи, которая выдает исключение?
  • 0Avg в sql добавляет нули после числа
  • 1Черный экран JavaFX и FXML при минимизации
  • 0Отображение вида в виде лайтбокса в приложении бритвы
  • 0fsockopen () возвращает разные значения на локальном хосте и сервере www
  • 0C ++, конструктор копирования не работает должным образом в символьных массивах
  • 1Предотвращение окончания потока
  • 1Объединение двух списков диктов в Python, когда некоторые диктанты являются дубликатами
  • 0фильтр вложенных массивов с помощью angularjs-checkboxes-with-angularjs
  • 1Данные InlineAutoData для аргумента конкретного параметра
  • 0События мыши пузырились от элемента с абсолютным позиционированием
  • 0HTML / CSS страница входа проблемы со стилем в IE не работает
  • 0Добавить класс к тегу body, когда PHP находит слово на веб-странице
  • 0Когда элемент html считается пустым? Как это влияет на маржу?
  • 0Можно ли загрузить скрипт преобразования GA с помощью jQuery .load ()?
  • 1Привязка модели слушателя событий слоя карт Google Ionic + Angular2
  • 1PyCharm на MacOS не может обрабатывать файлы
  • 1Как добавить компоненты пользовательского интерфейса по определенным координатам
  • 1Программа закрывается при загрузке файла
  • 0загрузить JQuery во внешний файл JavaScript
  • 1Функция Scipy interp2d выдает z = f (x, y), я хотел бы найти для x
  • 1ES6 super () в методах конструктора и прототипа
  • 0удалить элемент массива в jquery
  • 0Конвертировать INT во ВРЕМЯ, используя JS
  • 1Самый эффективный способ сортировки по нескольким полям в Java
  • 0Должен ли я использовать JRE или JDK в Eclipse для разработки PHP?
  • 0Изменение формата даты Jquery Datepicker в Великобритании и форма не отправляется
  • 0XPath Wildcards для HTML
  • 1Как преобразовать строковое уравнение c # в ответ
  • 1Камера Android, внутренняя Listoption?
  • 1Веб-сервер Airflow выдает ошибку cron для пакетов с None в качестве интервала расписания
  • 1Python Pandas — Как подавить PerformanceWarning?
  • 1Что такое эквивалент C # Rawinput в Python?
  • 1Растянуть списки, чтобы соответствовать размерам друг друга
  • 1Подписание приложения и проблема с установщиком пакета
  • 0Проблемы с использованием cURL из PHP для очистки исходного кода
  • 0поместите div поверх видео <object> в HTML CSS
  • 1Как отключить прокрутку, когда фокус BingMap?
  • 1Python — первое слово не включается в поиск
  • 0Как реализовать ведение журнала всех изменений в базе данных mysql?
  • 0Как получить доступ к типу данных столбца Enum в SQLAlchemy?
  • 1В каталоге тестирования py.test для модуля python импортируйте файл для модуля
  • 0Значение текстового поля, чтобы разрешить только десятичные и числовые значения, используя ng-шаблон?
  • 0Как выбрать значение столбца в разобранном виде в sql
  • 1Какое значение имеет! == -1?
  • 0Супервизор работает в фоновом режиме, но задания сразу становятся неудачными
  • 0PhoneGap / JQueryMobile приложение сборки теряет стиль
  • 1Добавить текстовое поле в нижний колонтитул gridview
  • 1Удалить geoJSON с карты Leaflet
  • 0body.innerHTML и источник страницы разные (YouTube)

Сообщество Overcoder

Send/Receive Errors buttonNothing is more annoying than not being able to get your email when you want it and be presented with a sometimes very cryptic or a seeming meaningless error code instead.

Although there are a multitude of error codes that you could be presented with, there are a couple of common solutions that work for many cases.

Aside from offering common solutions, this guide also contains a list of send/receive error codes which you may encounter and their meaning. For certain error codes, a more specific solution is mentioned.

  • Check your email account settings
  • Disable virus scanner integration
  • Check your firewall settings
  • Issues with add-ins
  • Check data store integrity
  • Stuck message or hidden read receipt
  • Other send/receive issues
     
  • Send/Receive error codes
  • Enhanced Mail System Status Codes
  • Other error codes

Check your email account settings.

Account Settings buttonIf you just configured your mail account and are directly presented with a send/receive error, you should start with verifying if your account settings are correct. You can get this information from your ISP or email administrator. Settings for several large free email providers can be found here.

When you are trying to send a message from another network than the network where the mailbox is located (for instance, from a hotel or a Wi-Fi hotspot, then you need to enable authentication for the configured SMTP server as well.

When Outlook worked before and you’re suddenly presented with send/receive errors, it is still good practice to verify your account settings and make sure that they are current. For example, several ISPs have increased their email security settings which could require you to enable TLS/SSL or make port changes. Also, sometimes they have merged with other ISPs and decommission the old account settings over time requiring you to make changes.

Trying your account settings on another computer or creating an additional mail profile for testing could help you determining if it is an issue with your current account configuration settings.

Disable virus scanner integration.

Virus Scanners buttonVirus scanners which integrates themselves with Outlook are a known source of causing all sorts of send receive issues. For instance, the following time-out issues are often a result of this;

  • The operation timed out waiting for a response from the receiving (POP) server.
  • A time-out occurred while communicating with the server.

Other issues that are often caused by having a virus scanner integrated with Outlook are;

  • Outlook being very slow in collecting your email.
  • Messages ending up stuck in your Outbox (also see below).
  • Messages being sent but never received.
  • Sending or receiving blank messages.
  • General message corruption;
    • Font too big/small.
    • Message not displaying at all.
    • Meeting invitations being converted into regular emails.

Disabling your virus scanner’s integration with Outlook does not compromise your security as you’d still be sufficiently protected by the on-access scanner part of the virus scanner. For more details see; Disable virus scanner integration?

Check your firewall settings.

Firewall buttonFirewalls can block incoming and outgoing traffic so make sure that Outlook and/or the required ports for email are listed as an exception to go through.

If you are presented with send/receive errors after updating Outlook, you probably need to reconfigure your firewall to re-allow Outlook to pass-through again.

This is because several firewall solutions verify via a hash that it is indeed the correct outlook.exe that is trying to pass through the firewall and not some virus which named itself outlook.exe. As with most updates the outlook.exe gets updated as well, you’ll need to accept it as safe again. You can find more information about this in the manual of your firewall solution.

Issues with add-ins

Add-Ins buttonAside from virus scanners, there could be other add-ins installed which integrate itself with the send/receive process of Outlook. Loading Outlook in Safe Mode is a good first step to see if add-ins are indeed the cause of the issues.

To further troubleshoot add-ins, manually disable each of them and re-enable them one-by-one to find the culprit.

Check data store integrity

Data Store buttonIf there are issues with the delivery location (your Outlook mailbox), then this could result in send/receive issues as well.

Checking the integrity of your delivery location can be done with scanpst.exe. Also verify that the data store isn’t full or that it needs to be converted from ANSI to the Unicode format.

If you are using an Exchange account, then you could also try it with Cached Exchange Mode disabled and see if it works correctly now. If it does, rename the ost-file to .old and have Outlook rebuild the ost-file or verify that the configured location for the ost-file in your account settings is valid.

Stuck message or hidden read receipt

Stuck in Outbox buttonA stuck message is also often a source of having send/receive issues.

While it is easy enough to spot a message stuck in your Outbox, in some cases the stuck message can be a Read Receipt which are hidden messages and thus much harder to recognize as the issues and to delete.

Other send/receive issues

More Info buttonBelow is a short list of other common send/receive issues which you could encounter but which are not directly identified by a send/receive error.

  • Password prompts
    In some cases Outlook can not remember your password for your mail account which results in being prompted for it.
     
  • Receiving duplicates
    When you receive multiple copies of a message or receiving the same message(s) over and over again see this guide.
     
  • Rules not being processed automatically
    When you have rules configured but they are not executed automatically when you receive new emails, see this guide.
     
  • No automatic send/receive upon starting Outlook or cannot edit Send/Receive settings.
    In those cases, reset your srs-file by renaming it to .old.

Send/Receive error codes

Searching in the error list below probably goes best with the Find function of your browser. For most browsers the keyboard shortcut for the Find function is CTRL+F.
When typing in the error code, please note that the error code starts with the digit 0 and not with the letter O.

General Errors

Error Code Description Error Type
0x800CCC00 Authentication did not load LOAD_SICILY_FAILED
0x800CCC01 Invalid certificate content INVALID_CERT_CN
0x800CCC02 Invalid certificate date. INVALID_CERT_DATE
0x800CCC03 User already connected. ALREADY_CONNECTED
0x800CCC04 CONN
0x800CCC05 Not connected to server. NOT_CONNECTED
0x800CCC06 CONN_SEND
0x800CCC07 WOULD_BLOCK
0x800CCC08 INVALID_STATE
0x800CCC09 CONN_RECV
0x800CCC0A Message download incomplete INCOMPLETE
0x800CCC0B Server or maildrop is busy. BUSY
0x800CCC0C NOT_INIT
0x800CCC0D Cannot locate server. CANT_FIND_HOST
0x800CCC0E Cannot connect to server. FAILED_TO_CONNECT
0x800CCC0F Connection closed. CONNECTION_DROPPED
0x800CCC10 Address not known on server. INVALID_ADDRESS
0x800CCC11 Mailing list not known on server INVALID_ADDRESS_LIST
0x800CCC12 Unable to send Winsock request. SOCKET_READ_ERROR
0x800CCC13 Unable to read Winsock reply SOCKET_WRITE_ERROR
0x800CCC14 Unable to initialize Winsock. SOCKET_INIT_ERROR
0x800CCC15 Unable to open Windows Socket SOCKET_CONNECT_ERROR
0x800CCC16 User account not recognized. INVALID_ACCOUNT
0x800CCC17 User canceled operation USER_CANCEL
0x800CCC18 Logon attempt failed. SICILY_LOGON_FAILED
0x800CCC19 A time-out occurred while communicating with the server TIMEOUT
0x800CCC1A Unable to connect using SSL. SECURE_CONNECT_FAILED

Winsock Errors

Error Code Description Error Type
0x800CCC40 Network subsystem is unusable. WINSOCK_WSASYSNOTREADY
0x800CCC41 Windows Sockets cannot support this application. WINSOCK_WSAVERNOTSUPPORTED
0x800CCC42 WINSOCK_WSAEPROCLIM
0x800CCC43 Bad address. WINSOCK_WSAEFAULT
0x800CCC44 Unable to load Windows Sockets. WINSOCK_FAILED_WSASTARTUP
0x800CCC45 Operation now in progress. This error appears if a Windows Sockets API is called while a blocking function is in progress. WINSOCK_WSAEINPROGRESS

SMTP Errors

Error Code Description Error Type
0x800CCC60 Invalid response. SMTP_RESPONSE_ERROR
0x800CCC61 Unknown error code. SMTP_UNKNOWN_RESPONSE_CODE
0x800CCC62 Syntax error returned. SMTP_500_SYNTAX_ERROR
0x800CCC63 Parameter syntax incorrect. SMTP_501_PARAM_SYNTAX
0x800CCC64 Command not implemented. SMTP_502_COMMAND_NOTIMPL
0x800CCC65 Improper command sequence. SMTP_503_COMMAND_SEQ
0x800CCC66 Command not implemented. MTP_504_COMMAND_PARAM_NOTIMPL
0x800CCC67 Command not available. SMTP_421_NOT_AVAILABLE
0x800CCC68 Mailbox is locked and busy. SMTP_450_MAILBOX_BUSY
0x800CCC69 Mailbox not found. SMTP_550_MAILBOX_NOT_FOUND
0x800CCC6A Error processing request. SMTP_451_ERROR_PROCESSING
0x800CCC6B User mailbox is known but mailbox not on this server. SMTP_551_USER_NOT_LOCAL
0x800CCC6C No space to store messages. SMTP_452_NO_SYSTEM_STORAGE
0x800CCC6D Storage limit exceeded. SMTP_552_STORAGE_OVERFLOW
0x800CCC6E Invalid mailbox name syntax. SMTP_553_MAILBOX_NAME_SYNTAX
0x800CCC6F Transaction failed. SMTP_554_TRANSACT_FAILED
0x800CCC78 Unknown sender. This is caused by having the incorrect e-mail address in the Reply-To field. SMTP_REJECTED_SENDER
0x800CCC79 Server rejected recipients. SMTP_REJECTED_RECIPIENTS
0x800CCC7A No sender address specified. SMTP_NO_SENDER
0x800CCC7B No recipients specified. SMTP_NO_RECIPIENTS

POP3 Errors

Error Code Description Error Type
0x800420CB Mail cannot be stored on server. POP3_NO_STORE
0x800CCC90 Client response invalid. POP3_RESPONSE_ERROR
0x800CCC91 Invalid user name or user not found. POP3_INVALID_USER_NAME
0x800CCC92 Password not valid for account. POP3_INVALID_PASSWORD
0x800CCC93 Unable to interpret response. POP3_PARSE_FAILURE
0x800CCC94 STAT Command required. POP3_NEED_STAT
0x800CCC95 No messages on server. POP3_NO_MESSAGES
0x800CCC96 No messages marked for retrieval. POP3_NO_MARKED_MESSAGES
0x800CCC97 Message ID out of range. POP3_POPID_OUT_OF_RANGE

IMAP Errors

Error Code Description Error Type
0x800CCCD1 Login failed. IMAP_LOGINFAILURE
0x800CCCD2 Message tagged. IMAP_TAGGED_NO_RESPONSE
0x800CCCD3 Invalid response to request. IMAP_BAD_RESPONSE
0x800CCCD4 Syntax error. IMAP_SVR_SYNTAXERR
0x800CCCD5 Not an IMAP server. IMAP_NOTIMAPSERVER
0x800CCCD6 Buffer limit exceeded. IMAP_BUFFER_OVERFLOW
0x800CCCD7 Recovery error. IMAP_RECVR_ERROR
0x800CCCD8 Incomplete data. IMAP_INCOMPLETE_LINE
0x800CCCD9 Connection not allowed. IMAP_CONNECTION_REFUSED
0x800CCCDA Unknown response. IMAP_UNRECOGNIZED_RESP
0x800CCCDB User ID has changed. IMAP_CHANGEDUID
0x800CCCDC User ID command failed. IMAP_UIDORDER
0x800CCCDD Unexpected disconnect. IMAP_UNSOLICITED_BYE
0x800CCCDE Invalid server state. IMAP_IMPROPER_SVRSTATE
0x800CCCDF Unable to authorize client. IMAP_AUTH_NOT_POSSIBLE
0x800CCCE0 No more authorization types. IMAP_OUT_OF_AUTH_METHODS

NNTP (News Server) Errors

Error Code Description Error Type
0x800CCCA0 News server response error. NNTP_RESPONSE_ERROR
0x800CCCA1 Newsgroup access failed. NNTP_NEWGROUPS_FAILED
0x800CCCA2 LIST command to server failed. NNTP_LIST_FAILED
0x800CCCA3 Unable to display list. NNTP_LISTGROUP_FAILED
0x800CCCA4 Unable to open group. NNTP_GROUP_FAILED
0x800CCCA5 Group not on server. NNTP_GROUP_NOTFOUND
0x800CCCA6 Message not on server. NNTP_ARTICLE_FAILED
0x800CCCA7 Message header not found. NNTP_HEAD_FAILED
0x800CCCA8 Message body not found. NNTP_BODY_FAILED
0x800CCCA9 Unable to post to server. NNTP_POST_FAILED
0x800CCCAA Unable to post to server. NNTP_NEXT_FAILED
0x800CCCAB Unable to display date. NNTP_DATE_FAILED
0x800CCCAC Unable to display headers. NNTP_HEADERS_FAILED
0x800CCCAD Unable to display MIME headers. NNTP_XHDR_FAILED
0x800CCCAE Invalid user or password. NNTP_INVALID_USERPASS

RAS (Remote Access) Errors

Error Code Description Error Type
0x800CCCC2 RAS/DUN not installed. RAS_NOT_INSTALLED
0x800CCCC3 RAS/DUN process not found. RAS_PROCS_NOT_FOUND
0x800CCCC4 RAS/DUN error returned. RAS_ERROR
0x800CCCC5 ConnectOID damaged or missing. RAS_INVALID_CONNECTOID
0x800CCCC6 Error getting dial settings. RAS_GET_DIAL_PARAMS

Enhanced Mail System Status Codes

Aside from getting the reported errors, there usually also is another error code listed. These error codes consist of 3 digits which could be separated by a dot. For instance; 553 or 5.5.3
These errors could also be sent to you in an email (usually from System Administrator) with a Delivery Status Notification code in it.

The first number will tell you the general status of the message;

  • 2
    Success. The message has been delivered.
  • 4
    Persistent Transient Failure. This means that the message was valid and accepted by the server but there is a temporary problem which prevents it from being delivered. The mail server will usually try to send it again later until a time out is reached. Until you get the a message that the server is giving up (see “5” below), there is no direct need to resend the message.
  • 5
    Permanent. This is a fatal error and the message sent cannot be delivered. It’s unlikely that the message can be delivered by a simple resend. A change must be made either within the message (wrong address, too big, too many recipients, etc), within the account settings or at the mail server of the sender or receiver.

The second 2 numbers will give you more details about why the message is delayed or failed;

  • X.0.0   Other undefined Status
  • X.1.0 Other address status
  • X.1.1 Bad destination mailbox address
  • X.2.0 Bad destination system address
  • X.1.3 Bad destination mailbox address syntax
  • X.1.4 Destination mailbox address ambiguous
  • X.1.5 Destination mailbox address valid
  • X.1.6 Mailbox has moved
  • X.1.7 Bad sender’s mailbox address syntax
  • X.1.8 Bad sender’s system address
  • X.1.9 Message relayed to non-compliant mailer
  • X.2.0 Other or undefined mailbox status
  • X.2.1 Mailbox disabled, not accepting messages
  • X.2.2 Mailbox full
  • X.2.3 Message length exceeds administrative limit.
  • X.2.4 Mailing list expansion problem
  • X.3.0 Other or undefined mail system status
  • X.3.1 Mail system full
  • X.3.2 System not accepting network messages
  • X.3.3 System not capable of selected features
  • X.3.4 Message too big for system
  • X.3.5 System incorrectly configured
  • X.4.0 Other or undefined network or routing status
  • X.4.1 No answer from host
  • X.4.2 Bad connection
  • X.4.3 Routing server failure
  • X.4.4 Unable to route
  • X.4.5 Network congestion
  • X.4.6 Routing loop detected
  • X.4.7 Delivery time expired
  • X.5.0 Other or undefined protocol status
  • X.5.1 Invalid command
  • X.5.2 Syntax error
  • X.5.3 Too many recipients
  • X.5.4 Invalid command arguments
  • X.5.5 Wrong protocol version
  • X.5.6 Authentication Exchange line is too long
  • X.6.0 Other or undefined media error/bad content
  • X.6.1 Media not supported
  • X.6.2 Conversion required and prohibited/bad domain or alias
  • X.6.3 Conversion required but not supported
  • X.6.4 Conversion with loss performed
  • X.6.5 Conversion failed
  • X.6.6 Message content not available
  • X.7.0 Other or undefined security status/authentication failure/violating site policy
  • X.7.1 Delivery not authorized, message refused
  • X.7.2 Mailing list expansion prohibited
  • X.7.3 Security conversion required but not possible
  • X.7.4 Security features not supported
  • X.7.5 Cryptographic failure
  • X.7.6 Cryptographic algorithm not supported
  • X.7.7 Message integrity failure
  • X.7.8 Trust relationship required/Authentication credentials invalid
  • X.7.9 Authentication mechanism is too weak
  • X.7.10 Encryption Needed
  • X.7.11 Encryption required for requested authentication mechanism
  • X.7.12 A password transition is needed
  • X.7.13 User Account Disabled
  • X.7.14 Trust relationship required
  • X.7.15 Authentication credentials invalid
  • X.7.16 Future release per-user message quota exceeded
  • X.7.17 Future release system message quota exceeded

Common combinations are;

421 or 4.2.1 Service not available, the connection will be closed (the server could be about to be restarted)
450 or 4.5.0 Requested action failed: mailbox unavailable (for instance, the mailbox is busy or locked)
451 or 4.5.1 Requested action aborted due to an error on the server (contact your ISP)
452 or 4.5.2 Requested action not taken due to insufficient system storage on the server (contact your ISP)
453 or 4.5.3 Requested action not taken due to policy settings (for instance, too many recipients specified)
500 or 5.0.0 Syntax error, command unrecognized (This may include errors such as command line too long)
501 or 5.0.1 Syntax error in parameters or arguments
502 or 5.0.2 Command not implemented
503 or 5.0.3 Bad sequence of commands
504 or 5.0.4 Command parameter not implemented (for instance, Helo command rejected: need fully-qualified hostname)
550 or 5.5.0 Requested action not taken: mailbox unavailable (for instance, mailbox not found, no access due to policy reasons)
551 or 5.5.1 User not local and an issue occurred when the server tried to forward the message.
552 or 5.5.2 Requested mail action aborted: exceeded storage allocation
553 or 5.5.3 Requested action not taken: mailbox name not allowed for instance, the mailbox name is invalid)
554 or 5.5.4 Transaction failed

More details about the individual error codes can be found within the base RFC document and its listed updates at the top.

Other error codes

Aside from the above listed error codes, there are many more error codes which you could encounter during send/receive. These usually refer to internal errors from Outlook, are specific to a certain mail server or are actually coming from your virus scanner or another add-in that integrates with your send/receive or networking process.

Due to the nature and origins of these error codes, the list below will probably always remain incomplete. If you encounter a new send/receive error, have a better description or even a solution for it, please email it to me (preferably with a screenshot of the error attached) and I’ll update the list accordingly.

Error Code Description Cause/Possible solution
0x0004b9    
0x000501    
0x80000003    
0x80004001 Not implemented  
0x80004005 The operation failed Virus scanner integration issue usually related to script blocking.
0x800300FD Unknown Error Indicates that there is insufficient space in the Temp folder
-Empty your Deleted Items folder
-Empty your Temp folder; C:WindowsTemp
0x80040109 The Operation cannot be performed because the message has been changed Virus scanner integration issue.
Some add-in may have altered the message upon sending.
0x8004010F Microsoft Exchange offline address book.
Not downloading Offline address book files. A server (URL) could not be located.
Verify the publication address for the Offline Address Book (OAB) in Exchange.
0x80040115 The connection to the Microsoft Exchange server is unavailable. Outlook must be online or connected to complete this action. The server is not reachable, check your connection and verify that Outlook is in on-line mode.
This issue could also occur with other mail servers, not just Exchange.
0x80040119 An unknown error has occurred.
Messaging interface has caused an unknown error.
Virus scanner integration issue usually related to authentication.
This issue could also occur when there are errors in your pst-file.
0x8004011D Task “Microsoft Exchange Server” reported error (0×8004011D): “The server is not available. Contact your administrator if this condition persists.” The server is not reachable, check your connection and verify that Outlook is in on-line mode.
This issue could also occur with other mail servers, not just Exchange.
0x80040126 The operation cannot be performed because the connection to the server is offline. This issue is an Outlook Connector issue. If there is no general issues with Hotmail itself, make sure you have the latest version installed. Removing and re-adding your Hotmail account might help.
0x80040305 Your server administrator has limited the number of items you can open simultaneously.
Email too big (Google Apps Sync)
These limitations can be set on the mail server. Contact your mail admin to find out which limitations are in affect.
0x80040600 An unknown error has occurred. Virus scanner integration issue usually related to authentication.
This issue could also occur when there are errors in your pst-file.
0x80040607 An unknown error occurred Virus scanner integration issue.
Authentication not enabled for the configured SMTP server.
0x8004060C Unknown Error  
0x80040900    
0x80040FB3 Error encountered. Check documentation. This issue is related to BlackBerry accounts. It appears that your account is not associated with a BES or Exchange account.
Other causes could be a corrupted item that is trying to be synched. Remove this item and try again.
0x80042108 Outlook is unable to connect to your incoming (POP) e-mail server.
If you continue to receive this message, contact your server administrator or ISP.
 
0x80042109 Outlook cannot connect to your outgoing (SMTP) e-mail server.
If you continue to receive this message, contact your server administrator or ISP.
 
0x8004210A The operation timed out waiting for a response from the receiving (POP) server.
If you continue to receive this message, contact your server administrator or Internet service provider (ISP).
Virus scanner integration issue
0x8004210B The operation timed out waiting for a response from the sending (SMTP) server.
If you continue to receive this message, contact your server administrator or Internet service provider (ISP).
An address in the distribution list might be malformed or corrupted.
Update/remove the address or recreate the distribution list.
0x80042112    
0x8004218    
0x80048002 This task was cancelled before it was completed. Virus scanner integration issue.
Some add-in may have altered the message upon sending.
0x8004DF0B    
0x80070005 You don’t have appropriate permissions to perform this operation Refers to issues with the delivery location;
-scan it for errors with scanpst.exe or scanost.exe
-verify that you have read/write permissions on the pst-/ost-file
-verify that the path to the pst-/ost-file is valid
-verify that the ost-file belongs to the correct user and mailbox
0x8007000E    
0x80070021    
0x80070057 Could not complete operation. One or more parameter values are not valid.
Sending reported error parameters not correct.
Virus scanner integration issue.
This error could also occur with Google Apps Sync trying to sync your RSS folders to the server.
0x80072F17 Synchronization could not be completed. Try again later. This issue is usually caused by issues with the SSL certificate.
0x8007007E Unknown error  
0x80090FB3    
0x800C0131 Unknown error has occurred. data storage issue
0x800C0133   data storage issue
virus scanner integration issue
0x800C013B    
0x800CCC33 Task ‘Hotmail: Folder:Inbox Synchronizing headers.’ reported error (0×800CCC33) : ‘Access to the account was denied. Verify that your username and password are correct. The server responded ‘Forbidden’. This error is encountered when you are trying to make a connection to a Live Hotmail account without the Outlook Connector installed.
0x800CCC7D Unknown Error The outgoing SMTP server does not support secure connections.
Verify your account settings or contact your ISP.
0x800CCC80 None of the authentication methods supported by this client are supported by your server.  
0x800CCCF7    
0x81FC0005   Close and reopen Outlook
0x834005    
0xC0000005    
0xD4904005    

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Smtp protocol synchronization error next input sent too soon pipelining was not advertised
  • Smtp protocol error 530
  • Smtp protocol error 501
  • Smtp outlook error
  • Smtp error rcpt to command failed

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии