# symfony-7-4-mime > Symfony 7.4 Mime component reference for creating and manipulating MIME messages. Use when working with email messages, MIME types, file attachments, embedded images, or email content. Triggers on: Mime, MIME types, email messages, Email class, multipart, attachments, MimeTypes, Address, TemplatedEmail, RawMessage, Message, Headers, embedded images, DataPart, TextPart, multipart/mixed, multipart/alternative. - Author: Guillaume Delré - Repository: guillaumedelre/claude-skills - Version: 20260209074016 - Stars: 3 - Forks: 0 - Last Updated: 2026-02-09 - Source: https://github.com/guillaumedelre/claude-skills - Web: https://mule.run/skillshub/@@guillaumedelre/claude-skills~symfony-7-4-mime:20260209074016 --- --- name: "symfony-7-4-mime" description: "Symfony 7.4 Mime component reference for creating and manipulating MIME messages. Use when working with email messages, MIME types, file attachments, embedded images, or email content. Triggers on: Mime, MIME types, email messages, Email class, multipart, attachments, MimeTypes, Address, TemplatedEmail, RawMessage, Message, Headers, embedded images, DataPart, TextPart, multipart/mixed, multipart/alternative." --- # Symfony 7.4 Mime Component GitHub: https://github.com/symfony/mime Docs: https://symfony.com/doc/7.4/components/mime.html ## Quick Reference ### Creating Email Messages (High-Level API) ```php use Symfony\Component\Mime\Email; $email = (new Email()) ->from('fabien@symfony.com') ->to('foo@example.com') ->cc('bar@example.com') ->bcc('baz@example.com') ->replyTo('fabien@symfony.com') ->priority(Email::PRIORITY_HIGH) ->subject('Important Notification') ->text('Lorem ipsum...') ->html('
...
') ; ``` ### File Attachments ```php $email = (new Email()) ->from('fabien@symfony.com') ->to('foo@example.com') ->subject('Document') ->text('Please find attached.') ->attachFromPath('/path/to/documents/terms.pdf') ->attachFromPath('/path/to/documents/privacy.pdf', 'Privacy Policy') ; ``` ### Embedded Images ```php $email = (new Email()) ->from('fabien@symfony.com') ->to('foo@example.com') ->subject('Newsletter') ->embedFromPath('/path/to/images/logo.png', 'logo') ->html('