agentic-net-examples / working-with-amp-html-emails
AGENTS.md2 starsChanged 7 months agoMITView on GitHub
C# examples for working-with-amp-html-emails using Aspose.Email for .NET
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository18 other files it gives its agents.
- aspose-email-examplesAGENTS.md
- convert-between-formatsAGENTS.md
- convert-thunderbird-mbox-filesAGENTS.md
- programming-email-verificationAGENTS.md
- programming-with-gmailAGENTS.md
- read-and-export-zimbra-tgz-filesAGENTS.md
- working-with-exchange-ews-clientAGENTS.md
- working-with-exchange-webdav-clientAGENTS.md
- working-with-ibm-notesAGENTS.md
- working-with-imap-clientAGENTS.md
- working-with-microsoft-graph-clientAGENTS.md
- working-with-mime-messagesAGENTS.md
- working-with-outlook-itemsAGENTS.md
- working-with-outlook-storage-filesAGENTS.md
- working-with-pop3-clientAGENTS.md
- working-with-smtp-clientAGENTS.md
- zimbraAGENTS.md
- llms.txtllms.txt
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 91
Follow root boundaries and testing guide.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS - working-with-amp-html-emails
Persona
You are a C# developer working in the working-with-amp-html-emails category. This folder contains standalone C# examples for this category. See the root AGENTS.md for repository-wide conventions.
Scope
- Examples for working-with-amp-html-emails.
- Files are standalone
.csexamples stored directly in this folder.
Required Namespaces
using System;(44 file(s))using Aspose.Email;(44 file(s))using System.IO;(36 file(s))using Aspose.Email.Amp;(34 file(s))using Aspose.Email.Clients.Smtp;(5 file(s))using System.Collections.Generic;(4 file(s))using Aspose.Email.Mapi;(4 file(s))using Aspose.Email.Clients;(3 file(s))using System.Text.RegularExpressions;(2 file(s))using System.Text;(2 file(s))using Aspose.Email.Tools.Verifications;(2 file(s))using System.Reflection;(2 file(s))using Aspose.Email.Clients.Smtp.Models;(1 file(s))using System.Net.Mime;(1 file(s))using Aspose.Email.Mime;(1 file(s))using System.Linq;(1 file(s))using System.Collections;(1 file(s))
Files in this folder
| File | Description |
| add-a-new-ampform-component-with-additional-input-fields-to-the-loaded-message.cs | add a new ampform component with additional input fields to the loaded message |
| add-a-second-ampimage-component-with-a-different-source-url-to-demonstrate-multiple-images.cs | add a second ampimage component with a different source url to demonstrate multiple images |
| apply-a-tracking-pixel-ampimage-component-with-a-click-through-url-to-the-message-body.cs | apply a tracking pixel ampimage component with a click through url to the message body |
| assign-values-to-standard-email-fields-such-as-from-to-subject-and-others-when-generating-an-msg-file.cs | assign values to standard email fields such as from to subject and others when generating an msg file |
| build-an-ampcarousel-component-containing-three-slides-each-with-an-image-and-caption-and-attach-it-to-ampmessage.cs | build an ampcarousel component containing three slides each with an image and caption and attach it to ampmessage |
| combine-ampimage-ampcarousel-ampaccordion-and-ampform-components-within-a-single-ampmessage-to-create-mixed-content.cs | combine ampimage ampcarousel ampaccordion and ampform components within a single ampmessage to create mixed content |
| configure-the-smtp-client-with-authentication-credentials-before-sending-the-amp-email.cs | configure the smtp client with authentication credentials before sending the amp email |
| create-a-second-ampmessage-add-an-ampimage-component-and-serialize-it-to-a-string.cs | create a second ampmessage add an ampimage component and serialize it to a string |
| create-an-ampimage-component-specify-source-url-alt-text-and-dimensions-then-add-it-to-the-message.cs | create an ampimage component specify source url alt text and dimensions then add it to the message |
| delete-an-ampaccordion-section-from-the-message-to-test-component-removal.cs | delete an ampaccordion section from the message to test component removal |
| during-msg-file-parsing-examine-each-alternateview-for-mime-type-text-x-amp-html-to-extract-the-amp-content.cs | during msg file parsing examine each alternateview for mime type text x amp html to extract the amp content |
| embed-amp-html-content-into-an-msg-email-message-to-enable-dynamic-interactive-email-rendering.cs | embed amp html content into an msg email message to enable dynamic interactive email rendering |
| enumerate-all-supported-capabilities-and-functionalities-available-for-handling-the-msg-file-format-within-the-library.cs | enumerate all supported capabilities and functionalities available for handling the msg file format within the library |
| examine-the-principles-for-handling-amp-html-email-content-stored-in-msg-files-using-the-available-api.cs | examine the principles for handling amp html email content stored in msg files using the available api |
| extract-all-image-urls-from-ampimage-components-within-the-message-for-external-caching-purposes.cs | extract all image urls from ampimage components within the message for external caching purposes |
| extract-and-parse-the-amp-body-from-an-msg-email-file-to-retrieve-its-dynamic-content.cs | extract and parse the amp body from an msg email file to retrieve its dynamic content |
| generate-additional-ampaccordion-sections-using-a-loop-to-add-ten-dynamic-sections-to-the-message.cs | generate additional ampaccordion sections using a loop to add ten dynamic sections to the message |
| generate-an-alternateview-containing-amp-content-and-assign-the-mime-type-text-x-amp-html-for-msg-files.cs | generate an alternateview containing amp content and assign the mime type text x amp html for msg files |
| generate-an-amp-html-string-and-embed-it-within-a-standard-msg-file-representation-for-email-messages.cs | generate an amp html string and embed it within a standard msg file representation for email messages |
| include-an-optional-plain-text-or-html-alternateview-to-ensure-fallback-rendering-when-generating-msg-files.cs | include an optional plain text or html alternateview to ensure fallback rendering when generating msg files |
| insert-an-alternateview-of-msg-format-into-the-mailmessage-alternateviews-collection-to-ensure-proper-multipart-rendering.cs | insert an alternateview of msg format into the mailmessage alternateviews collection to ensure proper multipart rendering |
| instantiate-a-mailmessage-object-and-serialize-it-to-the-msg-file-format-for-email-storage.cs | instantiate a mailmessage object and serialize it to the msg file format for email storage |
| instantiate-an-ampmessage-object-and-set-its-subject-and-sender-details-programmatically.cs | instantiate an ampmessage object and set its subject and sender details programmatically |
| load-an-existing-amp-email-from-a-eml-file-path-and-deserialize-it-into-an-ampmessage-instance.cs | load an existing amp email from a eml file path and deserialize it into an ampmessage instance |
| load-each-saved-eml-file-validate-its-structure-and-log-any-validation-issues-found.cs | load each saved eml file validate its structure and log any validation issues found |
| log-the-total-number-of-components-in-the-ampmessage-before-serialization-for-monitoring.cs | log the total number of components in the ampmessage before serialization for monitoring |
| modify-the-caption-text-of-a-specific-slide-in-the-ampcarousel-component.cs | modify the caption text of a specific slide in the ampcarousel component |
| parse-an-amp-email-contained-in-an-msg-file-to-access-its-structured-content.cs | parse an amp email contained in an msg file to access its structured content |
| programmatically-generate-an-amp-email-message-and-serialize-it-into-an-msg-file-for-outlook-compatibility.cs | programmatically generate an amp email message and serialize it into an msg file for outlook compatibility |
| provide-a-comprehensive-list-of-all-amp-components-supported-for-processing-email-messages-saved-in-msg-format.cs | provide a comprehensive list of all amp components supported for processing email messages saved in msg format |
| re-serialize-the-modified-ampmessage-to-a-string-after-component-updates.cs | re serialize the modified ampmessage to a string after component updates |
| remove-a-particular-ampcarousel-slide-by-its-index-from-the-ampmessage.cs | remove a particular ampcarousel slide by its index from the ampmessage |
| retrieve-the-list-of-all-components-contained-in-the-ampmessage-and-log-each-component-type.cs | retrieve the list of all components contained in the ampmessage and log each component type |
| save-each-generated-amp-email-to-a-separate-eml-file-in-a-designated-output-folder.cs | save each generated amp email to a separate eml file in a designated output folder |
| save-the-constructed-ampmessage-to-a-eml-file-on-disk-for-later-retrieval.cs | save the constructed ampmessage to a eml file on disk for later retrieval |
| send-the-serialized-amp-email-using-the-smtp-client-with-tls-encryption-and-authentication.cs | send the serialized amp email using the smtp client with tls encryption and authentication |
| serialize-the-final-ampmessage-to-a-string-suitable-for-smtp-transmission-with-appropriate-headers.cs | serialize the final ampmessage to a string suitable for smtp transmission with appropriate headers |
| set-the-amp-html-body-of-the-message-using-a-custom-template-string-containing-placeholders.cs | set the amp html body of the message using a custom template string containing placeholders |
| transmit-an-amp-email-message-saved-as-an-msg-file-using-the-library-s-messaging-api.cs | transmit an amp email message saved as an msg file using the library s messaging api |
| transmit-an-amp-formatted-email-as-a-msg-file-using-the-smtpclient-class-with-appropriate-authentication.cs | transmit an amp formatted email as a msg file using the smtpclient class with appropriate authentication |
| update-the-source-url-and-dimensions-of-an-existing-ampimage-component-inside-the-loaded-ampmessage.cs | update the source url and dimensions of an existing ampimage component inside the loaded ampmessage |
| update-the-subject-line-of-the-loaded-ampmessage-to-reflect-a-new-campaign.cs | update the subject line of the loaded ampmessage to reflect a new campaign |
| utilize-smtpclient-to-transmit-an-email-message-saved-in-msg-format-via-the-configured-smtp-server.cs | utilize smtpclient to transmit an email message saved in msg format via the configured smtp server |
| validate-the-amp-email-structure-against-the-official-amp-specification-and-capture-any-validation-errors.cs | validate the amp email structure against the official amp specification and capture any validation errors |
Category Statistics
- Total examples: 44
General Tips
- Follow root boundaries and testing guide.
- Dispose client objects; avoid hardcoded secrets; prefer explicit types.
<!-- AUTOGENERATED:START -->| Date | Run ID | Branch/Commit |
| 2026-09-14 | auto | examples/batch-auto |
<!-- AUTOGENERATED:END -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

