vaibhavpandeyvpz/phemail

View on GitHub
sample/multipart.eml

Summary

Maintainability
Test Coverage
Mime-Version: 1.0
Message-Id: <9169D984-4E0B-45EF-82D4-8F5E53AD7012@vaibhavpandey.com>
From: Vaibhav Pandey <contact@vaibhavpandey.com>
To: Vaibhav Pandey <me@vaibhavpandey.com>
Subject: Testing multipart email
Date: Mon, 6 Jun 2005 22:21:22 +0200
Content-Type: multipart/mixed; boundary="652b8c4dcb00cdcdda1e16af36781caf"


--652b8c4dcb00cdcdda1e16af36781caf
Content-Type: text/plain;
        charset=US-ASCII;
        delsp=yes;
        format=flowed
Content-Transfer-Encoding: 7bit

This is the first part.
The last part contains a ruby file.

--652b8c4dcb00cdcdda1e16af36781caf
Content-Type: text/html; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

This is the first part with some HTML formatting.
The last part contains a <strong>ruby</strong> file.

--652b8c4dcb00cdcdda1e16af36781caf
Content-Type: text/x-ruby-script; name="hello.rb"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
        filename="api.rb"

puts "Hello, world!"
gets

--652b8c4dcb00cdcdda1e16af36781caf--