Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


sp_send_dbmail Message size exceeds fixed maximum message size


sp_send_dbmail Message size exceeds fixed maximum message size

Author
Message
Frustrated
Frustrated
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 Visits: 124
I receive the following error when trying to send a test e-mail to myself with attachments totalling 1.68 MB in size (four copies of the same 0.42 MB file), using sp_send_dbmail on SQL Server 2008.

The mail could not be sent to the recipients because of the mail server failure. (Exception Message: Cannot send mails to mail server. (Exceeded storage allocation. The server response was: 4.3.1 Message size exceeds fixed maximum message size)). I can send the e-mail with three attachments totalling 1.26 MB.

I have changed the MaxFileSize in the Database Mail Configuration Wizard, as shown by the following results from the sysmail_help_configure_sp stored procedure.

paramname paramvalue description
AccountRetryAttempts 1 Number of retry attempts for a mail server
AccountRetryDelay 60 Delay between each retry attempt to mail server
DatabaseMailExeMinimumLifeTime 600 Minimum process lifetime in seconds
DefaultAttachmentEncoding MIME Default attachment encoding
LoggingLevel 2 Database Mail logging level: normal - 1, extended - 2 (default), verbose - 3
MaxFileSize 24576000 Default maximum file size
ProhibitedExtensions exe,dll,vbs,js Extensions not allowed in outgoing mails.

It is not a problem with Outlook, as I have sent and received a 6.4 MB file as a test, and my inbox is nowhere near to its maximum file size. I would be extremely grateful if anyone can provide any possible solutions to this problem.
Lowell
Lowell
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14934 Visits: 38929
i think the issue is related to the mails erver, and not your database configuration settings.

Are you using your Exchange server that Outlook points to as the mail server in your database mail profile? Is it a different server?

this error message:
The server response was: 4.3.1 Message size exceeds fixed maximum message size

was returned by the mail server, so you'd have to get with the administrator the server you have set up in your profle...
for example, if you were using google mail for your Profile, it doesn't matter that you can receive 20 meg attachments, if google's mail server won't pass the a file larger than the limit THEY set, and would return that kind of error.



Lowell

--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Frustrated
Frustrated
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 Visits: 124
Our Exchange Server message size limit is 25 MB, and I am able to manually send messages with attachments approaching that size from Outlook. However, from SQL, my limit seems to be somewhere around 1.5 MB.
Lowell
Lowell
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14934 Visits: 38929
the mail server in your databasemail profile you are using in = your Exchange Server?

i've got several profiles set up , some with the company mails erver, some with GoogleMail, another batch with other mails ervers...

If the database mail server Is your exchange server,could it be that your personal email box is hitting a max size limit(ie 2 gig or something) ,and you have to trim /archive some mail?

could it be that the account you are using to send mail has a smaller max size limit that your personal account?
ie notifications@yourdomain = 1.5 meg,
but Frustrated@yourdomain = 25 meg?

Lowell

--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Frustrated
Frustrated
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 Visits: 124
Thanks Lowell for your help with this. I have just awarded myself the Moron of the Day award. As I have Windows Vista on my machine, I had set my SQL mail profile to use a server e-mail account, on which the SMTP mail message size limit was set to 2 MB. I have changed it to 25 MB, and now large attachments are coming through without any problems. Your help saved me a lot of time and frustration, so many thanks to you.
Lowell
Lowell
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14934 Visits: 38929
glad you got it fixed!

sometimes the "obvious fix" for an issue is, well, not really that obvious.

Lowell

--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search