Sample Data for Testing Sending Email Function
Bài đăng này đã không được cập nhật trong 6 năm
Intro
Unfortunately, we cannot avoid incidents during testing process.
Sending email to general users is one of major incidents.
It causes financial loss as damages and, more importantly, we lose user's/customer's TRUST.
To avoid this incident, we use service like https://mailcatcher.me/ or https://mailtrap.io/ .
But still, it doesn't mean we can prevent the incident.
So, I made sample email data for testing.
Hope it will help you (and also me).
Sample Email Data
Sample Data 1 (Just text)
Title
【テスト】暑中お見舞い申し上げます。
Contents
※現在送信テスト中です。ご迷惑をおかけしますが、ご理解のほどよろしくお願いします。※<br><br>
○○株式会社<br>
営業部 ○○様<br><br>
暑中お見舞い申し上げます。<br><br>
平素は格別のご高配を賜り厚くお礼申し上げます。<br>
株式会社○○の佐藤です。<br><br>
先日はお忙しい中、<br>
お時間を頂戴しましてありがとうございました。<br>
現在、要点ごとに課題となるポイントを精査し<br>
改めて検討および微調整をいたしております。<br>
少しお時間を頂戴いたしますが、<br>
宜しくお願い申し上げます。<br><br>
これからきびしい炎暑の日々が続きますが、<br>
○○様におかれましても、<br>
どうぞお体大切にお元気にてお過ごしください。<br>
また、変わらぬご愛顧・お付合いのほど<br>
よろしくお願い申し上げます。<br><br>
※現在送信テスト中です。ご迷惑をおかけしますが、ご理解のほどよろしくお願いします。※
Sample Data 2 (With URL)
Title
【テスト】アンケートのお知らせ
Content
※現在送信テスト中です。ご迷惑をおかけしますが、ご理解のほどよろしくお願いします。※<br><br>
お世話になります。〇〇商事の鈴木です。 <br>
いつも、〇〇をご愛用頂き、誠にありがとうございます。<br><br>
さて、この度弊社ではお客様満足度向上を目指してアンケートを実施することになりました。(1)<br>
そこで、〇〇をご利用頂いている皆様にはぜひご協力いただきたくお願い申し上げます。<br>
なお、ご協力いただいたました方にはもれなく、<br>
〇〇ポイントを1000ポイント、進呈させていただきます。<br><br>
アンケートに回答する場合には、下記のURLをクリックしていただくか<br>
アドレス全体をご利用のブラウザにコピーしてください。<br><br>
http://example.com/<br><br>
※ アンケートの所要時間は1分程度です。 <br>
※ アンケート回答期限は〇月〇日までとさせていただきます。<br><br>
なお、いただいた回答および個人情報につきましては、<br>
弊社のプライバシーポリシーに従い、厳重に管理いたします。<br><br>
皆様の貴重なご意見をお待ちしております。<br><br>
※現在送信テスト中です。ご迷惑をおかけしますが、ご理解のほどよろしくお願いします。※
Sample Data 3 (With HTML)
Title
【テスト】メール送信テスト中です
Content
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Simple Transactional Email</title>
<style>
/* -------------------------------------
GLOBAL RESETS
------------------------------------- */
img {
border: none;
-ms-interpolation-mode: bicubic;
max-width: 100%; }
body {
background-color: #f6f6f6;
font-family: sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 14px;
line-height: 1.4;
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%; }
table {
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%; }
table td {
font-family: sans-serif;
font-size: 14px;
vertical-align: top; }
/* -------------------------------------
BODY & CONTAINER
------------------------------------- */
.body {
background-color: #f6f6f6;
width: 100%; }
/* Set a max-width, and make it display as block so it will automatically stretch to that width, but will also shrink down on a phone or something */
.container {
display: block;
Margin: 0 auto !important;
/* makes it centered */
max-width: 580px;
padding: 10px;
width: 580px; }
/* This should also be a block element, so that it will fill 100% of the .container */
.content {
box-sizing: border-box;
display: block;
Margin: 0 auto;
max-width: 580px;
padding: 10px; }
/* -------------------------------------
HEADER, FOOTER, MAIN
------------------------------------- */
.main {
background: #ffffff;
border-radius: 3px;
width: 100%; }
.wrapper {
box-sizing: border-box;
padding: 20px; }
.content-block {
padding-bottom: 10px;
padding-top: 10px;
}
.footer {
clear: both;
Margin-top: 10px;
text-align: center;
width: 100%; }
.footer td,
.footer p,
.footer span,
.footer a {
color: #999999;
font-size: 12px;
text-align: center; }
/* -------------------------------------
TYPOGRAPHY
------------------------------------- */
h1,
h2,
h3,
h4 {
color: #000000;
font-family: sans-serif;
font-weight: 400;
line-height: 1.4;
margin: 0;
Margin-bottom: 30px; }
h1 {
font-size: 35px;
font-weight: 300;
text-align: center;
text-transform: capitalize; }
p,
ul,
ol {
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
Margin-bottom: 15px; }
p li,
ul li,
ol li {
list-style-position: inside;
margin-left: 5px; }
a {
color: #3498db;
text-decoration: underline; }
/* -------------------------------------
BUTTONS
------------------------------------- */
.btn {
box-sizing: border-box;
width: 100%; }
.btn > tbody > tr > td {
padding-bottom: 15px; }
.btn table {
width: auto; }
.btn table td {
background-color: #ffffff;
border-radius: 5px;
text-align: center; }
.btn a {
background-color: #ffffff;
border: solid 1px #3498db;
border-radius: 5px;
box-sizing: border-box;
color: #3498db;
cursor: pointer;
display: inline-block;
font-size: 14px;
font-weight: bold;
margin: 0;
padding: 12px 25px;
text-decoration: none;
text-transform: capitalize; }
.btn-primary table td {
background-color: #3498db; }
.btn-primary a {
background-color: #3498db;
border-color: #3498db;
color: #ffffff; }
/* -------------------------------------
OTHER STYLES THAT MIGHT BE USEFUL
------------------------------------- */
.last {
margin-bottom: 0; }
.first {
margin-top: 0; }
.align-center {
text-align: center; }
.align-right {
text-align: right; }
.align-left {
text-align: left; }
.clear {
clear: both; }
.mt0 {
margin-top: 0; }
.mb0 {
margin-bottom: 0; }
.preheader {
color: transparent;
display: none;
height: 0;
max-height: 0;
max-width: 0;
opacity: 0;
overflow: hidden;
mso-hide: all;
visibility: hidden;
width: 0; }
.powered-by a {
text-decoration: none; }
hr {
border: 0;
border-bottom: 1px solid #f6f6f6;
Margin: 20px 0; }
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 620px) {
table[class=body] h1 {
font-size: 28px !important;
margin-bottom: 10px !important; }
table[class=body] p,
table[class=body] ul,
table[class=body] ol,
table[class=body] td,
table[class=body] span,
table[class=body] a {
font-size: 16px !important; }
table[class=body] .wrapper,
table[class=body] .article {
padding: 10px !important; }
table[class=body] .content {
padding: 0 !important; }
table[class=body] .container {
padding: 0 !important;
width: 100% !important; }
table[class=body] .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important; }
table[class=body] .btn table {
width: 100% !important; }
table[class=body] .btn a {
width: 100% !important; }
table[class=body] .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important; }}
/* -------------------------------------
PRESERVE THESE STYLES IN THE HEAD
------------------------------------- */
@media all {
.ExternalClass {
width: 100%; }
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%; }
.apple-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important; }
.btn-primary table td:hover {
background-color: #34495e !important; }
.btn-primary a:hover {
background-color: #34495e !important;
border-color: #34495e !important; } }
</style>
</head>
<body class="">
<table border="0" cellpadding="0" cellspacing="0" class="body">
<tr>
<td> </td>
<td class="container">
<div class="content">
<!-- START CENTERED WHITE CONTAINER -->
<span class="preheader">※現在送信テスト中です。ご迷惑をおかけしますが、ご理解のほどよろしくお願いします。※</span>
<table class="main">
<!-- START MAIN CONTENT AREA -->
<tr>
<td class="wrapper">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<p>Hi there,</p>
<p>Sometimes you just want to send a simple HTML email with a simple design and clear call to action. This is it.</p>
<table border="0" cellpadding="0" cellspacing="0" class="btn btn-primary">
<tbody>
<tr>
<td align="left">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td> <a href="http://htmlemail.io" target="_blank">Call To Action</a> </td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p>This is a really simple email template. Its sole purpose is to get the recipient to click the button with no distractions.</p>
<p>Good luck! Hope it works.</p>
</td>
</tr>
</table>
</td>
</tr>
<!-- END MAIN CONTENT AREA -->
</table>
<!-- START FOOTER -->
<div class="footer">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="content-block">
<span class="apple-link">Company Inc, 3 Abbey Road, San Francisco CA 94102</span>
<br> Don't like these emails? <a href="http://i.imgur.com/CScmqnj.gif">Unsubscribe</a>.
</td>
</tr>
<tr>
<td class="content-block powered-by">
Powered by <a href="http://htmlemail.io">HTMLemail</a>.
</td>
</tr>
</table>
</div>
<!-- END FOOTER -->
<!-- END CENTERED WHITE CONTAINER -->
</div>
</td>
<td> </td>
</tr>
</table>
</body>
</html>
*This template is from https://github.com/leemunroe/responsive-html-email-template/blob/master/email.html
Conclusion
Thanks for checking my post!
If you need another sample data for other cases, please let me know. I will update.
I will post more sample data for testing with other situations.
Bye!
All rights reserved