sql server 2005 database mail error (The operation has timed out) -
I have configured the database mail to send newsletters from the SQL database. I have a stored procedure that is available to customers Selects the email and sends mail like this to:
EXEC msdb.dbo.sp_send_dbmail @profile_name = 'ProfileName', @recipients = @email, @ Subject = @thesubject, @body = @ Fmssege, @body_format = 'html';
After configuring the database mail, when I sent a test mail, the used account to send was working fine, but it was successfully sent but the problem was more than one Sending mail.
After performing the stored procedure, there are 50 emails in the table. I msdb tables have been examined sysmails_event_log, sysmails_faileditems and sysmails_sentitems, I found out that only 12 emails were sent and the rest failed and error in event_log The message was:
Mail server could not be sent due to failure due to mail server failure. (Sending mail using an account 1 (2009-12-01 t 16: 55: 11) Exception Message: Mail can not send mail to server. (Operation timed out.).)
I checked the email number 13 letters and I did not find anything wrong with them, so I tried to re-process this process, this time it was sent to 1 14 emails and the rest failed with the same error, Changed it and it started from the mail number selected from the mail number (as it will be sent from record 15 to 50) and it was tested, this time he sent it on 13 emails, I chose between 27 and 50 and performed Done, it was again shipped to 1 12
I do not understand what is happening here, what is this behavior of sending mail in the 12-14 fairs border only once.
Can anyone help me on this?
In advance thanks
Where is the SMTP server located? Have you noticed that you can fire more than 12 e-mails at a time without SQL Server, which includes SQL Server? It seems that the problem is not SQL Server, but there is some kind of policy on the SMTP server. There may also be some types of abuse prevention between firewalls or other network devices between the database server and the SMTP server. Have you considered setting up SMTP services on the database server, then setting up a database mail so that they can use the local SMTP server instead of on the network (and potentially point to above policy or policies is)? Surely you should safely install SMTP, ensuring that only connections from local machine are allowed.
Comments
Post a Comment