Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
cca0197
Add custom ReplyTo address separate from From for SMTP client
agent-aspose-email-examples May 20, 2026
4abf9bd
Add X-Audit-Trail header with JSON operation metadata
agent-aspose-email-examples May 20, 2026
c1bd560
Add sample add-a-custom-x-campaign-id-header-to-tag-the-email-with-a-…
agent-aspose-email-examples May 20, 2026
1eec17e
Add sample add-a-custom-x-correlation-id-header-to-correlate-the-emai…
agent-aspose-email-examples May 20, 2026
25df266
Add X-Delivery-Token GUID header to SMTP send attempts
agent-aspose-email-examples May 20, 2026
845c41e
Add sample add-a-custom-x-environment-header-to-indicate-whether-the-…
agent-aspose-email-examples May 20, 2026
1753e92
Add X-Feedback-ID header to SMTP messages
agent-aspose-email-examples May 20, 2026
a789b69
Add X-Mail-Client header with app version to SMTP client
agent-aspose-email-examples May 20, 2026
f0598ed
Add X-Mailing-Group header to SMTP messages
agent-aspose-email-examples May 20, 2026
f09ac7f
Add X-Message-Source header to SMTP client for traceability
agent-aspose-email-examples May 20, 2026
93520f9
Add X-Notification-Type header to SMTP messages
agent-aspose-email-examples May 20, 2026
446b74d
Add X-Priority:1 header to SMTP client for high importance
agent-aspose-email-examples May 20, 2026
9f0bef6
Add sample add-a-custom-x-spam-score-header-based-on-content-analysis…
agent-aspose-email-examples May 20, 2026
7a6ee05
Add custom X-Support-Ticket header to SMTP client
agent-aspose-email-examples May 20, 2026
08ac9df
Add X-Trace-Id header to Aspose.Email SMTP client
agent-aspose-email-examples May 20, 2026
e704dd5
Add sample add-a-custom-x-user-id-header-to-associate-the-email-with-…
agent-aspose-email-examples May 20, 2026
e77a638
Add high‑priority header before sending via SMTP client
agent-aspose-email-examples May 20, 2026
52799e7
Add List-Unsubscribe header to SMTP email message
agent-aspose-email-examples May 20, 2026
30608f0
Add read receipt request header to outgoing SMTP message
agent-aspose-email-examples May 20, 2026
e43e934
Add sample adjust-operation-timeout-based-on-network-latency-measurem…
agent-aspose-email-examples May 20, 2026
afe8bda
Dynamic SMTP timeout based on email size to avoid early termination
agent-aspose-email-examples May 20, 2026
ef0e4fa
Add prohibited‑word filter to email body before sending
agent-aspose-email-examples May 20, 2026
2e8dc2e
Add custom cert validation callback to accept self-signed TLS certs
agent-aspose-email-examples May 20, 2026
760309b
Add custom DKIM signing before SMTP send
agent-aspose-email-examples May 20, 2026
1b1adcd
Add sample apply-a-custom-email-address-normalization-routine-to-stan…
agent-aspose-email-examples May 20, 2026
05aba3c
Add exponential backoff retry policy for SMTP send (3 attempts)
agent-aspose-email-examples May 20, 2026
c5a29c2
Add sample attach-a-pdf-document-from-a-memory-stream-to-an-email-and…
agent-aspose-email-examples May 20, 2026
f11e9b7
Add CRAM-MD5 auth example for Aspose.Email SMTP client
agent-aspose-email-examples May 20, 2026
360132e
Bind SmtpClient to specific local IP via BindIPEndPoint
agent-aspose-email-examples May 20, 2026
51a8f1b
Enforce 10 MB attachment limit and reject oversized files
agent-aspose-email-examples May 20, 2026
7dbbd71
Add SOCKS proxy auth (user/pass) for SMTP client (Aspose.Email)
agent-aspose-email-examples May 20, 2026
ebc4e94
Add sample configure-smtpclient-proxy-with-a-socks5-server-to-route-e…
agent-aspose-email-examples May 20, 2026
0693d0d
Add auto-select of strongest SMTP auth method in SmtpClient
agent-aspose-email-examples May 20, 2026
2b0fa6b
Add fallback to plain auth when CRAM-MD5 unsupported
agent-aspose-email-examples May 20, 2026
38d7194
Add SOCKS proxy with auth support to SmtpClient configuration
agent-aspose-email-examples May 20, 2026
265ab6a
Configure SmtpClient to use CRAM-MD5 only when advertised
agent-aspose-email-examples May 20, 2026
e94c4ea
Add 60s operation timeout to SmtpClient for large batches
agent-aspose-email-examples May 20, 2026
eb4ea02
Set SMTP socket timeout to 30 seconds to avoid hangs
agent-aspose-email-examples May 20, 2026
5f5e6f3
Add UTC Date header auto‑addition to SMTP client configuration
agent-aspose-email-examples May 20, 2026
778d938
Add List-Id header auto-configuration to SMTP client
agent-aspose-email-examples May 20, 2026
4caf061
Add List-Unsubscribe-Post header for one-click unsubscribe support
agent-aspose-email-examples May 20, 2026
2ceb633
Add automatic Message-ID header to SMTP client when missing
agent-aspose-email-examples May 20, 2026
4fbaecc
Add sample configure-the-client-to-automatically-compress-attachments…
agent-aspose-email-examples May 20, 2026
29907e4
Configure SMTP client to auto‑remove duplicate recipients
agent-aspose-email-examples May 20, 2026
12d1e10
Configure SMTP client to drop empty recipient fields
agent-aspose-email-examples May 20, 2026
d037141
Add automatic retry for transient 4xx SMTP errors in client config
agent-aspose-email-examples May 20, 2026
dec961d
Configure SMTP client to strip HTML for plain-text recipients
agent-aspose-email-examples May 20, 2026
710250c
Reuse single SMTP connection for batch of 50 messages
agent-aspose-email-examples May 20, 2026
09a0f95
Configure SMTP client to use TLS 1.2 for secure connections
agent-aspose-email-examples May 20, 2026
aa0e6e4
Configure SMTP client to ignore cert revocation for tests
agent-aspose-email-examples May 20, 2026
b899f31
Configure SMTP client timeouts (10s connect, 30s read)
agent-aspose-email-examples May 20, 2026
6bad9f7
Add custom DNS resolver preferring IPv6 for SMTP client
agent-aspose-email-examples May 20, 2026
27a4552
Configure SMTP client to route via secure proxy
agent-aspose-email-examples May 20, 2026
03299de
Set SMTP client authentication realm for server connection
agent-aspose-email-examples May 20, 2026
2ea642b
Configure SMTP client to bind to specific local IP address
agent-aspose-email-examples May 20, 2026
97c6784
Add sample configure-the-smtp-client-to-use-a-specific-network-interf…
agent-aspose-email-examples May 20, 2026
62128ef
Add NTLM authentication with domain credentials to SMTP client
agent-aspose-email-examples May 20, 2026
f5593d6
Add sample create-a-template-engine-that-replaces-placeholders-with-u…
agent-aspose-email-examples May 20, 2026
86cd7c0
Add DSN support for success, failure, and delay events
agent-aspose-email-examples May 20, 2026
d7a91ba
Add rotating file logging for detailed SMTP activity
agent-aspose-email-examples May 20, 2026
305a129
Enable SMTP pipelining for faster command batching
agent-aspose-email-examples May 20, 2026
1b4fd70
Enable SSL/TLS on SmtpClient using SecurityOptions.SslExplicit
agent-aspose-email-examples May 20, 2026
75e1a7e
Enable STARTTLS on port 587 to secure SMTP connection
agent-aspose-email-examples May 20, 2026
65b6ff4
Add sample enable-tls-1-2-by-setting-securityoptions-to-sslexplicit-a…
agent-aspose-email-examples May 20, 2026
e0828b5
Add forwarding with original headers & attachments support
agent-aspose-email-examples May 20, 2026
69c2d04
Add callback to log execution time of each SMTP command
agent-aspose-email-examples May 20, 2026
6b5da1e
Add SMTP fallback to alternate host on primary failure
agent-aspose-email-examples May 20, 2026
b91b65b
Compress MIME message with GZIP before SMTP send
agent-aspose-email-examples May 20, 2026
68c64b5
Log attachment size before adding to email (Aspose.Email)
agent-aspose-email-examples May 20, 2026
c218af3
Validate SPF record for sending domain before SMTP delivery
agent-aspose-email-examples May 20, 2026
2e8b0cd
Add sample implement-a-logging-interceptor-that-records-the-size-of-e…
agent-aspose-email-examples May 20, 2026
4ff9734
Encrypt attachments with AES before adding to email
agent-aspose-email-examples May 20, 2026
9f87c6d
Add sample implement-a-mechanism-that-logs-the-smtp-server-banner-mes…
agent-aspose-email-examples May 20, 2026
d46066c
Add 421 response handling with pause and retry in SMTP client
agent-aspose-email-examples May 20, 2026
f6ad5b2
Add local queue and retry for unreachable SMTP server
agent-aspose-email-examples May 20, 2026
82b5016
Add sample implement-a-method-that-checks-server-supported-authentica…
agent-aspose-email-examples May 20, 2026
cca4baf
Add size check to reject >25 MB emails in SMTP client
agent-aspose-email-examples May 20, 2026
8f0312a
Add progress reporter for SMTP email transmission
agent-aspose-email-examples May 20, 2026
dd0cb24
Add Retry-After handling to SMTP client retry logic
agent-aspose-email-examples May 20, 2026
70b53b1
Add sample implement-a-retry-policy-that-increases-greetingtimeout-af…
agent-aspose-email-examples May 20, 2026
cefdbe4
Add exponential backoff retry respecting Retry-After header
agent-aspose-email-examples May 20, 2026
cbd467a
Add sample implement-a-watchdog-that-aborts-the-smtp-send-operation-i…
agent-aspose-email-examples May 20, 2026
c301492
Add SMTP response time watchdog with alert thresholds
agent-aspose-email-examples May 20, 2026
91a9917
Add async SMTP send with CancellationToken support
agent-aspose-email-examples May 20, 2026
ea7332c
Add silent login validation before SMTP send in Aspose.Email example
agent-aspose-email-examples May 20, 2026
d465667
Add DNS cache for MX lookups with 10‑minute TTL
agent-aspose-email-examples May 20, 2026
3b6f69e
Add event handlers to log SMTP server responses per command
agent-aspose-email-examples May 20, 2026
a03133e
Implement parallel SMTP sending with multiple client instances
agent-aspose-email-examples May 20, 2026
8fe521c
Add sample increase-greetingtimeout-to-ten-seconds-for-servers-known-…
agent-aspose-email-examples May 20, 2026
608910d
Decrypt config credentials and set SmtpClient authentication
agent-aspose-email-examples May 20, 2026
3cfb00c
Add LoadCredentialsFromConfig example for SMTP auth from JSON
agent-aspose-email-examples May 20, 2026
4f0791d
Load SMTP credentials from XML and configure SmtpClient
agent-aspose-email-examples May 20, 2026
2f91c51
Add SMTP command/response logging to DB for audit
agent-aspose-email-examples May 20, 2026
ffe4672
Add GetExtensions call to retrieve SMTP capabilities
agent-aspose-email-examples May 20, 2026
16f1b4a
Add SMTP extensions diagnostic console example
agent-aspose-email-examples May 20, 2026
306a2de
Add example to retrieve and log supported SMTP auth methods
agent-aspose-email-examples May 20, 2026
b0421c9
Add sample retrieve-server-extensions-and-conditionally-enable-startt…
agent-aspose-email-examples May 20, 2026
b5ad38b
Add server extensions lookup dictionary for SMTP client
agent-aspose-email-examples May 20, 2026
6214328
Add iCalendar alternative view to SMTP email (Aspose.Email)
agent-aspose-email-examples May 20, 2026
fab7c6f
Add custom MIME boundary for legacy SMTP parsing
agent-aspose-email-examples May 20, 2026
f9222dc
Add custom MIME type application/vnd.custom+json for SMTP send
agent-aspose-email-examples May 20, 2026
c713979
Add sample send-a-message-with-a-custom-x-auto-response-suppress-head…
agent-aspose-email-examples May 20, 2026
ad739a9
Add custom X-Precedence: Bulk header to SMTP example
agent-aspose-email-examples May 20, 2026
e0c7e4f
Add sample send-a-message-with-a-custom-x-priority-level-header-set-t…
agent-aspose-email-examples May 20, 2026
d5601a8
Add X-Retention-Policy header to SMTP message
agent-aspose-email-examples May 20, 2026
1e3ea6e
Add sample send-a-message-with-a-delayed-delivery-time-by-setting-the…
agent-aspose-email-examples May 20, 2026
1ca288d
Add sample send-a-message-with-a-large-attachment-split-into-multiple…
agent-aspose-email-examples May 20, 2026
1a7d6a0
Add sample send-a-message-with-a-multipart-mixed-body-that-includes-b…
agent-aspose-email-examples May 20, 2026
e6f233b
Add SMTP example for multipart/related email with HTML and CSS
agent-aspose-email-examples May 20, 2026
9f53b36
Add DKIM signing using vault-stored private key
agent-aspose-email-examples May 20, 2026
b754ac3
Add sample send-a-message-with-an-attached-csv-file-generated-from-a-…
agent-aspose-email-examples May 20, 2026
ceb11e0
Add BCC handling to hide multiple recipients in SMTP send
agent-aspose-email-examples May 20, 2026
d327efc
Add multipart/alternative email example (plain text + HTML)
agent-aspose-email-examples May 20, 2026
c08064b
Add example for sending plain text email via SMTP with explicit SSL (po…
agent-aspose-email-examples May 20, 2026
4008bab
Add sample send-an-email-with-a-compressed-zip-attachment-ensuring-th…
agent-aspose-email-examples May 20, 2026
7b0af0a
Add X-Language header to SMTP email for primary language
agent-aspose-email-examples May 20, 2026
77bdb63
Add PDF generation from HTML and attach to SMTP email
agent-aspose-email-examples May 20, 2026
3e62f1e
Add QR code generation and inline attachment to SMTP email
agent-aspose-email-examples May 20, 2026
47c9957
Add multipart alternative email with plain text and RTF body
agent-aspose-email-examples May 20, 2026
606495a
Add multipart mixed email with text, HTML, and attachment
agent-aspose-email-examples May 20, 2026
0af3667
Add ISO-8859-1 encoding for plain-text SMTP email body
agent-aspose-email-examples May 20, 2026
a4b7a52
Add plain-text fallback body to SMTP email example
agent-aspose-email-examples May 20, 2026
fbf9aa8
Add S/MIME signed email example using Aspose.Email
agent-aspose-email-examples May 20, 2026
d8e4b7e
Add HTML email with inline images via linked resources
agent-aspose-email-examples May 20, 2026
7588447
Add EML serialization before SMTP send for inspection and logging
agent-aspose-email-examples May 20, 2026
611d7a4
Set SMTP greeting timeout to 3 seconds for faster connections
agent-aspose-email-examples May 20, 2026
cc1f34e
Set SMTP client operation timeout to 2 minutes for large attachments
agent-aspose-email-examples May 20, 2026
6fff6d6
Add sample set-a-custom-timeout-for-the-authentication-phase-to-avoid…
agent-aspose-email-examples May 20, 2026
80ed5f9
Add sample set-a-custom-x-mailing-id-header-on-each-message-to-facili…
agent-aspose-email-examples May 20, 2026
ff17251
Add sample set-smtpclient-greetingtimeout-to-five-seconds-to-reduce-i…
agent-aspose-email-examples May 20, 2026
df5c93d
Enable AutoDetect security for SmtpClient to negotiate encryption
agent-aspose-email-examples May 20, 2026
530e2c4
Set email body encoding to UTF-8 for international characters
agent-aspose-email-examples May 20, 2026
0a8536b
Set email Sensitivity header to Private for confidential emails
agent-aspose-email-examples May 20, 2026
6732a3d
Add HTTP proxy support for SmtpClient in corporate firewall scenario
agent-aspose-email-examples May 20, 2026
9b8a094
Add custom MessageIdGenerator for globally unique email IDs
agent-aspose-email-examples May 20, 2026
6e4cc22
Add rate limiting to SMTP client (max 20 msgs/min)
agent-aspose-email-examples May 20, 2026
891f149
Add SSL stream wrapper to encrypt full SMTP session
agent-aspose-email-examples May 20, 2026
93b5edc
Add custom auth headers for HTTP proxy in SmtpClient example
agent-aspose-email-examples May 20, 2026
ff31be3
Add BindIPEndPoint usage to select network interface for SMTP
agent-aspose-email-examples May 20, 2026
23221d6
Add SMTP client example with multipart/related inline images
agent-aspose-email-examples May 20, 2026
df9c4bf
Add detailed auth error handling for SMTP credential validation
agent-aspose-email-examples May 20, 2026
25b0c22
Add RFC‑5322 email validation before SMTP send
agent-aspose-email-examples May 20, 2026
bdd73eb
Add async SMTP credential validation for responsive UI
agent-aspose-email-examples May 20, 2026
6e35803
Implement ValidateCredentials for SMTP credential check
agent-aspose-email-examples May 20, 2026
d787dfe
Update documentation for run 20260519_180010
agent-aspose-email-examples May 20, 2026
636c9ca
Fix Aspose.Words HTML->PDF load options
agent-aspose-email-examples May 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Examples are organized by feature category:
- `working-with-outlook-items/` - 492 example(s)
- `working-with-outlook-storage-files/` - 184 example(s)
- `working-with-pop3-client/` - 40 example(s)
- `working-with-smtp-client/` - 15 example(s)
- `working-with-smtp-client/` - 159 example(s)
- `zimbra/` - 9 example(s)

Each category contains standalone `.cs` files that can be compiled and run independently.
Expand Down
6 changes: 3 additions & 3 deletions agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ When working in this repository:
- Follow the conventions and anti-patterns below exactly.

## Repository Overview
This repository currently contains **2773** working code examples across **17** categories.
This repository currently contains **2917** working code examples across **17** categories.

### Category Details
- **convert-between-formats** — 135 examples. Guide: [agents.md](./convert-between-formats/agents.md)
Expand All @@ -36,7 +36,7 @@ This repository currently contains **2773** working code examples across **17**
- **working-with-outlook-items** — 492 examples. Guide: [agents.md](./working-with-outlook-items/agents.md)
- **working-with-outlook-storage-files** — 184 examples. Guide: [agents.md](./working-with-outlook-storage-files/agents.md)
- **working-with-pop3-client** — 40 examples. Guide: [agents.md](./working-with-pop3-client/agents.md)
- **working-with-smtp-client** — 15 examples. Guide: [agents.md](./working-with-smtp-client/agents.md)
- **working-with-smtp-client** — 159 examples. Guide: [agents.md](./working-with-smtp-client/agents.md)
- **zimbra** — 9 examples. Guide: [agents.md](./zimbra/agents.md)

## Boundaries
Expand Down Expand Up @@ -66,5 +66,5 @@ Success = exit code 0 and no `CS####` compiler errors.
<!-- AUTOGENERATED:START -->
| Date | Run ID | Branch/Commit |
|------|--------|---------------|
| 2026-05-13 | `20260513_143541` | [examples/batch-20260513_143541](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260513_143541) |
| 2026-05-20 | `20260519_180010` | [examples/batch-20260519_180010](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260519_180010) |
<!-- AUTOGENERATED:END -->
2 changes: 1 addition & 1 deletion convert-between-formats/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,5 +190,5 @@ See the root [agents.md](../agents.md) for repository-wide conventions.
<!-- AUTOGENERATED:START -->
| Date | Run ID | Branch/Commit |
|------|--------|---------------|
| 2026-05-13 | `20260513_143541` | [examples/batch-20260513_143541](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260513_143541) |
| 2026-05-20 | `20260519_180010` | [examples/batch-20260519_180010](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260519_180010) |
<!-- AUTOGENERATED:END -->
2 changes: 1 addition & 1 deletion convert-thunderbird-mbox-files/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,5 +242,5 @@ See the root [agents.md](../agents.md) for repository-wide conventions.
<!-- AUTOGENERATED:START -->
| Date | Run ID | Branch/Commit |
|------|--------|---------------|
| 2026-05-13 | `20260513_143541` | [examples/batch-20260513_143541](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260513_143541) |
| 2026-05-20 | `20260519_180010` | [examples/batch-20260519_180010](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260519_180010) |
<!-- AUTOGENERATED:END -->
294 changes: 283 additions & 11 deletions index.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion programming-email-verification/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ See the root [agents.md](../agents.md) for repository-wide conventions.
<!-- AUTOGENERATED:START -->
| Date | Run ID | Branch/Commit |
|------|--------|---------------|
| 2026-05-13 | `20260513_143541` | [examples/batch-20260513_143541](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260513_143541) |
| 2026-05-20 | `20260519_180010` | [examples/batch-20260519_180010](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260519_180010) |
<!-- AUTOGENERATED:END -->
2 changes: 1 addition & 1 deletion programming-with-gmail/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,5 @@ See the root [agents.md](../agents.md) for repository-wide conventions.
<!-- AUTOGENERATED:START -->
| Date | Run ID | Branch/Commit |
|------|--------|---------------|
| 2026-05-13 | `20260513_143541` | [examples/batch-20260513_143541](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260513_143541) |
| 2026-05-20 | `20260519_180010` | [examples/batch-20260519_180010](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260519_180010) |
<!-- AUTOGENERATED:END -->
2 changes: 1 addition & 1 deletion read-and-export-zimbra-tgz-files/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@ See the root [agents.md](../agents.md) for repository-wide conventions.
<!-- AUTOGENERATED:START -->
| Date | Run ID | Branch/Commit |
|------|--------|---------------|
| 2026-05-13 | `20260513_143541` | [examples/batch-20260513_143541](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260513_143541) |
| 2026-05-20 | `20260519_180010` | [examples/batch-20260519_180010](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260519_180010) |
<!-- AUTOGENERATED:END -->
2 changes: 1 addition & 1 deletion working-with-amp-html-emails/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@ See the root [agents.md](../agents.md) for repository-wide conventions.
<!-- AUTOGENERATED:START -->
| Date | Run ID | Branch/Commit |
|------|--------|---------------|
| 2026-05-13 | `20260513_143541` | [examples/batch-20260513_143541](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260513_143541) |
| 2026-05-20 | `20260519_180010` | [examples/batch-20260519_180010](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260519_180010) |
<!-- AUTOGENERATED:END -->
2 changes: 1 addition & 1 deletion working-with-exchange-ews-client/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -628,5 +628,5 @@ See the root [agents.md](../agents.md) for repository-wide conventions.
<!-- AUTOGENERATED:START -->
| Date | Run ID | Branch/Commit |
|------|--------|---------------|
| 2026-05-13 | `20260513_143541` | [examples/batch-20260513_143541](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260513_143541) |
| 2026-05-20 | `20260519_180010` | [examples/batch-20260519_180010](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260519_180010) |
<!-- AUTOGENERATED:END -->
2 changes: 1 addition & 1 deletion working-with-exchange-webdav-client/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,5 +214,5 @@ See the root [agents.md](../agents.md) for repository-wide conventions.
<!-- AUTOGENERATED:START -->
| Date | Run ID | Branch/Commit |
|------|--------|---------------|
| 2026-05-13 | `20260513_143541` | [examples/batch-20260513_143541](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260513_143541) |
| 2026-05-20 | `20260519_180010` | [examples/batch-20260519_180010](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260519_180010) |
<!-- AUTOGENERATED:END -->
2 changes: 1 addition & 1 deletion working-with-ibm-notes/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@ See the root [agents.md](../agents.md) for repository-wide conventions.
<!-- AUTOGENERATED:START -->
| Date | Run ID | Branch/Commit |
|------|--------|---------------|
| 2026-05-13 | `20260513_143541` | [examples/batch-20260513_143541](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260513_143541) |
| 2026-05-20 | `20260519_180010` | [examples/batch-20260519_180010](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260519_180010) |
<!-- AUTOGENERATED:END -->
2 changes: 1 addition & 1 deletion working-with-imap-client/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,5 +372,5 @@ See the root [agents.md](../agents.md) for repository-wide conventions.
<!-- AUTOGENERATED:START -->
| Date | Run ID | Branch/Commit |
|------|--------|---------------|
| 2026-05-13 | `20260513_143541` | [examples/batch-20260513_143541](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260513_143541) |
| 2026-05-20 | `20260519_180010` | [examples/batch-20260519_180010](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260519_180010) |
<!-- AUTOGENERATED:END -->
2 changes: 1 addition & 1 deletion working-with-microsoft-graph-client/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ See the root [agents.md](../agents.md) for repository-wide conventions.
<!-- AUTOGENERATED:START -->
| Date | Run ID | Branch/Commit |
|------|--------|---------------|
| 2026-05-13 | `20260513_143541` | [examples/batch-20260513_143541](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260513_143541) |
| 2026-05-20 | `20260519_180010` | [examples/batch-20260519_180010](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260519_180010) |
<!-- AUTOGENERATED:END -->
2 changes: 1 addition & 1 deletion working-with-mime-messages/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -413,5 +413,5 @@ See the root [agents.md](../agents.md) for repository-wide conventions.
<!-- AUTOGENERATED:START -->
| Date | Run ID | Branch/Commit |
|------|--------|---------------|
| 2026-05-13 | `20260513_143541` | [examples/batch-20260513_143541](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260513_143541) |
| 2026-05-20 | `20260519_180010` | [examples/batch-20260519_180010](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260519_180010) |
<!-- AUTOGENERATED:END -->
2 changes: 1 addition & 1 deletion working-with-outlook-items/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,5 +576,5 @@ See the root [agents.md](../agents.md) for repository-wide conventions.
<!-- AUTOGENERATED:START -->
| Date | Run ID | Branch/Commit |
|------|--------|---------------|
| 2026-05-13 | `20260513_143541` | [examples/batch-20260513_143541](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260513_143541) |
| 2026-05-20 | `20260519_180010` | [examples/batch-20260519_180010](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260519_180010) |
<!-- AUTOGENERATED:END -->
2 changes: 1 addition & 1 deletion working-with-outlook-storage-files/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,5 +247,5 @@ See the root [agents.md](../agents.md) for repository-wide conventions.
<!-- AUTOGENERATED:START -->
| Date | Run ID | Branch/Commit |
|------|--------|---------------|
| 2026-05-13 | `20260513_143541` | [examples/batch-20260513_143541](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260513_143541) |
| 2026-05-20 | `20260519_180010` | [examples/batch-20260519_180010](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260519_180010) |
<!-- AUTOGENERATED:END -->
2 changes: 1 addition & 1 deletion working-with-pop3-client/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ See the root [agents.md](../agents.md) for repository-wide conventions.
<!-- AUTOGENERATED:START -->
| Date | Run ID | Branch/Commit |
|------|--------|---------------|
| 2026-05-13 | `20260513_143541` | [examples/batch-20260513_143541](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260513_143541) |
| 2026-05-20 | `20260519_180010` | [examples/batch-20260519_180010](https://github.com/aspose-email/agentic-net-examples/tree/examples/batch-20260519_180010) |
<!-- AUTOGENERATED:END -->
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
using System;
using System.IO;
using Aspose.Email;
using Aspose.Email.Clients.Smtp;

class Program
{
static void Main()
{
try
{
// Prepare output directory and file path
string outputDir = "Output";
string emlPath = Path.Combine(outputDir, "sample.eml");

// Ensure the output directory exists
if (!Directory.Exists(outputDir))
{
Directory.CreateDirectory(outputDir);
}

// Create a mail message with custom Reply-To address
using (MailMessage message = new MailMessage())
{
message.From = new MailAddress("sender@example.com", "Sender");
message.To.Add(new MailAddress("recipient@example.com", "Recipient"));
message.Subject = "Test Email";
message.Body = "This is a test email.";

// Set a Reply-To address that differs from the From address
message.ReplyToList.Add(new MailAddress("replyto@example.com", "ReplyTo"));

// Save the message to an EML file
try
{
message.Save(emlPath, SaveOptions.DefaultEml);
Console.WriteLine($"Message saved to {emlPath}");
}
catch (Exception ex)
{
Console.Error.WriteLine($"Failed to save message: {ex.Message}");
return;
}

// Placeholder SMTP credentials – skip actual sending in CI
string smtpHost = "smtp.example.com";
int smtpPort = 587;
string username = "user@example.com";
string password = "password";

if (smtpHost.Contains("example.com"))
{
Console.WriteLine("Placeholder SMTP credentials detected. Skipping send.");
return;
}

// Send the message using SMTP client
using (SmtpClient client = new SmtpClient(smtpHost, smtpPort, username, password))
{
try
{
client.Send(message);
Console.WriteLine("Message sent successfully.");
}
catch (Exception ex)
{
Console.Error.WriteLine($"Failed to send message: {ex.Message}");
}
}
}
}
catch (Exception ex)
{
Console.Error.WriteLine($"Error: {ex.Message}");
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
using System;
using Aspose.Email;
using Aspose.Email.Clients.Smtp;

class Program
{
static void Main()
{
try
{
// SMTP server configuration (replace with real values)
string host = "smtp.example.com";
int port = 587;
string username = "user@example.com";
string password = "password";

// Guard against placeholder credentials to avoid real network calls during CI
if (host.Contains("example.com") || username.Contains("example.com") || password == "password")
{
Console.Error.WriteLine("Placeholder SMTP configuration detected. Skipping send operation.");
return;
}

// Create a simple email message
MailMessage message = new MailMessage();
message.From = "sender@example.com";
message.To.Add("recipient@example.com");
message.Subject = "Test Email with Custom Header";
message.Body = "This email contains a custom X-Audit-Trail header.";

// Prepare JSON payload for the custom header
string jsonPayload = "{\"operation\":\"Send\",\"timestamp\":\"2024-01-01T12:00:00Z\",\"user\":\"sender@example.com\"}";

// Add the custom X-Audit-Trail header
message.Headers.Add("X-Audit-Trail", jsonPayload);

// Send the message using SmtpClient
using (SmtpClient client = new SmtpClient(host, port, username, password))
{
try
{
client.Send(message);
Console.WriteLine("Message sent successfully.");
}
catch (SmtpException ex)
{
Console.Error.WriteLine($"SMTP error: {ex.Message}");
}
catch (Exception ex)
{
Console.Error.WriteLine($"Unexpected error during send: {ex.Message}");
}
}
}
catch (Exception ex)
{
Console.Error.WriteLine($"Fatal error: {ex.Message}");
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
using System;
using System.Net;
using Aspose.Email;
using Aspose.Email.Clients.Exchange.Dav;

class Program
{
static void Main()
{
try
{
// Placeholder connection settings
string mailboxUri = "https://exchange.example.com/EWS/Exchange.asmx";
string username = "user@example.com";
string password = "password";

// Guard against placeholder credentials/hosts
if (mailboxUri.Contains("example.com") || username.Contains("example.com") || password == "password")
{
Console.Error.WriteLine("Placeholder credentials detected. Skipping send operation.");
return;
}

// Create the mail message
MailMessage message = new MailMessage();
message.From = "sender@example.com";
message.To.Add("recipient@example.com");
message.Subject = "Marketing Campaign";
message.Body = "This is a test email for the marketing campaign.";
// Add custom X-Campaign-Id header
message.Headers.Add("X-Campaign-Id", "Campaign123");

// Send the message using ExchangeClient
try
{
using (ExchangeClient client = new ExchangeClient(mailboxUri, new NetworkCredential(username, password)))
{
client.Send(message);
Console.WriteLine("Message sent successfully.");
}
}
catch (Exception ex)
{
Console.Error.WriteLine($"Error sending email: {ex.Message}");
return;
}
}
catch (Exception ex)
{
Console.Error.WriteLine($"Unexpected error: {ex.Message}");
}
}
}
Loading
Loading