question

mmrama avatar image
mmrama asked

File attachment in sp_send_dbmail

Can we attach a file which is stored as base64 string in a table column directly into sp_send_dbmail without using Server Path method ?
fileattachment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
JohnM avatar image
JohnM answered
I don't believe you can attach a string as an actual file attachment within the email. You could however just append it to the body of the message since it's a string.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.