Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

sp_send_dbmail Message size exceeds fixed maximum message size Expand / Collapse
Author
Message
Posted Thursday, November 3, 2011 8:02 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, July 11, 2013 1:55 PM
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.

Post #1199914
Posted Thursday, November 3, 2011 9:06 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 2:34 PM
Points: 12,916, Visits: 32,077
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

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1199966
Posted Thursday, November 3, 2011 9:26 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, July 11, 2013 1:55 PM
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.
Post #1199981
Posted Thursday, November 3, 2011 9:33 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 2:34 PM
Points: 12,916, Visits: 32,077
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

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1199993
Posted Thursday, November 3, 2011 10:18 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, July 11, 2013 1:55 PM
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.
Post #1200033
Posted Thursday, November 3, 2011 10:50 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 2:34 PM
Points: 12,916, Visits: 32,077
glad you got it fixed!

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


Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1200063
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse