Add watermarks to email attachments
Leave feedback
Copy for LLM Copy
Copied
Failed
View as Markdown Markdown
Set up agent Agent
Give your coding agent live access to the GroupDocs documentation and API reference through the
GroupDocs Docs MCP server — no install, no API key. Learn more
Claude Code
Cursor
VS Code
Codex
Claude Desktop
Other
Claude Code Cursor VS Code Codex Claude Desktop Other claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcpAlso process documents locally
The GroupDocs.Watermark MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.
claude mcp add groupdocs-watermark -- dnx GroupDocs.Watermark.Mcp --yesFolders, licensing and more → Add to Cursor Or add it to ~/.cursor/mcp.json:
{
"mcpServers": {
"groupdocs-docs": { "url": "https://docs.groupdocs.com/mcp" }
}
}Also process documents locally
The GroupDocs.Watermark MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.
Set up the GroupDocs.Watermark MCP server → Install in VS Code Or add it to .vscode/mcp.json in your workspace:
{
"servers": {
"groupdocs-docs": { "type": "http", "url": "https://docs.groupdocs.com/mcp" }
}
}Also process documents locally
The GroupDocs.Watermark MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.
Set up the GroupDocs.Watermark MCP server → codex mcp add groupdocs-docs --url https://docs.groupdocs.com/mcpAlso process documents locally
The GroupDocs.Watermark MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.
codex mcp add groupdocs-watermark -- dnx GroupDocs.Watermark.Mcp --yesFolders, licensing and more → In Claude Desktop or claude.ai, open Settings → Connectors → Add custom connector, and paste this URL:
https://docs.groupdocs.com/mcpAlso process documents locally
The GroupDocs.Watermark MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.
Set up the GroupDocs.Watermark MCP server → Any MCP client that supports remote (HTTP) servers:
{
"mcpServers": {
"groupdocs-docs": { "url": "https://docs.groupdocs.com/mcp" }
}
}No MCP support? Point your agent at https://docs.groupdocs.com/watermark/net/llms.txt — every page also has a Markdown version at its URL + .md.
Also process documents locally
The GroupDocs.Watermark MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.
Set up the GroupDocs.Watermark MCP server → The API allows you to add watermark to all the attachments of supported types in an email message as shown in the following code sample.
AdvancedUsage.AddingWatermarks.AddWatermarksToEmailAttachments.EmailAddWatermarkToAllAttachments
TextWatermark watermark = new TextWatermark ( "Test watermark" , new Font ( "Arial" , 19 ));
EmailLoadOptions loadOptions = new EmailLoadOptions ();
// Specify an absolute or relative path to your document. Ex: @"C:\Docs\message.msg"
using ( Watermarker watermarker = new Watermarker ( "message.msg" , loadOptions ))
{
EmailContent content = watermarker . GetContent < EmailContent >();
foreach ( EmailAttachment attachment in content . Attachments )
{
// Check if the attached file is supported by GroupDocs.Watermark
IDocumentInfo info = attachment . GetDocumentInfo ();
if ( info . FileType != FileType . Unknown && ! info . IsEncrypted )
{
// Load the attached document
using ( Watermarker attachedWatermarker = attachment . CreateWatermarker ())
{
// Add watermark
attachedWatermarker . Add ( watermark );
// Save changes in the attached file
attachedWatermarker . Save ();
}
}
}
// Save changes
watermarker . Save ( "message.msg" );
}
We value your opinion. Your feedback will help us improve our documentation.