Issue sending email with attachment from DB mail

  • Hello,

    I have a problem, I have been trying to send an email (From DB server) by SMTP located in the Web server. I'm able to sent emails but only if it does not have attachment included. This is a weird behaivor at least for me.

    All that I got is this message:

    "Message

    DatabaseMail process is shutting down" of the mail log.

    I'm using this code:

    EXEC msdb.dbo.sp_send_dbmail

    @profile_name = 'SQL Database Mail',

    @recipients = 'XX@XX.com',

    @subject = 'Daily Report',

    @body = 'Here is your text...',

    @file_attachments = 'C:\reports\file.csv';

    Do somebody have an idea what the problem can be??? :w00t:

    Thanks in advance.

  • BTW like three months ago this process was working correctly.. :crying:, And I have not changed nothing since then.

    thanks

  • If nothing has changed on your SQL Server, then there must be some change on the SMTP server. Some security or SPAM setting?

    Todd Fifield

  • Check security rights on temp directory, since file is created there before attached to message.


    N 56°04'39.16"
    E 12°55'05.25"

Viewing 4 posts - 1 through 4 (of 4 total)

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