sp_send_dbmail Message size exceeds fixed maximum message size

  • 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.

  • 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!

  • 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.

  • 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!

  • 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.

  • 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!

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply