agentleFS
aspose-emailaspose-email/agentic-net-examples/working-with-amp-html-emails/AGENTS.md

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

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
  1. Distinctive:

    Follow root boundaries and testing guide.

    line 91

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 .cs examples 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

FileDescription
add-a-new-ampform-component-with-additional-input-fields-to-the-loaded-message.csadd 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.csadd 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.csapply 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.csassign 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.csbuild 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.cscombine 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.csconfigure 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.cscreate 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.cscreate 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.csdelete 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.csduring 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.csembed 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.csenumerate 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.csexamine 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.csextract 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.csextract 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.csgenerate 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.csgenerate 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.csgenerate 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.csinclude 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.csinsert 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.csinstantiate 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.csinstantiate 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.csload 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.csload 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.cslog the total number of components in the ampmessage before serialization for monitoring
modify-the-caption-text-of-a-specific-slide-in-the-ampcarousel-component.csmodify 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.csparse 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.csprogrammatically 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.csprovide 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.csre serialize the modified ampmessage to a string after component updates
remove-a-particular-ampcarousel-slide-by-its-index-from-the-ampmessage.csremove 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.csretrieve 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.cssave 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.cssave 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.cssend 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.csserialize 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.csset 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.cstransmit 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.cstransmit 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.csupdate 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.csupdate 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.csutilize 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.csvalidate 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 -->
DateRun IDBranch/Commit
2026-09-14autoexamples/batch-auto
<!-- AUTOGENERATED:END -->

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.