<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hant-TW">
	<id>http://tskds213.synology.me/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Phpmailer</id>
	<title>Phpmailer - 修訂紀錄</title>
	<link rel="self" type="application/atom+xml" href="http://tskds213.synology.me/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Phpmailer"/>
	<link rel="alternate" type="text/html" href="http://tskds213.synology.me/mediawiki/index.php?title=Phpmailer&amp;action=history"/>
	<updated>2026-11-16T22:56:59Z</updated>
	<subtitle>本 wiki 上此頁面的修訂紀錄</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>http://tskds213.synology.me/mediawiki/index.php?title=Phpmailer&amp;diff=2712&amp;oldid=prev</id>
		<title>Root：​/* PHP mailer multiple address */</title>
		<link rel="alternate" type="text/html" href="http://tskds213.synology.me/mediawiki/index.php?title=Phpmailer&amp;diff=2712&amp;oldid=prev"/>
		<updated>2017-02-14T02:46:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;PHP mailer multiple address&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hant-TW&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上個修訂&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;於 2017年2月14日 (二) 10:46 的修訂&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;第10行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第10行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//To make things easy, you should loop through an array to do this.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//To make things easy, you should loop through an array to do this.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;//$mail-&amp;gt;AddAttachment(&quot;filename&quot;); // 設定附件檔檔名&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$recipients = array(&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$recipients = array(&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    &amp;#039;person1@domain.com&amp;#039; =&amp;gt; &amp;#039;Person One&amp;#039;,&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    &amp;#039;person1@domain.com&amp;#039; =&amp;gt; &amp;#039;Person One&amp;#039;,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Root</name></author>
	</entry>
	<entry>
		<id>http://tskds213.synology.me/mediawiki/index.php?title=Phpmailer&amp;diff=2700&amp;oldid=prev</id>
		<title>Root：​新頁面: ==PHP mailer multiple address== &lt;php&gt; $mail-&gt;AddAddress(&#039;person1@domain.com&#039;, &#039;Person One&#039;); $mail-&gt;AddAddress(&#039;person2@domain.com&#039;, &#039;Person Two&#039;);  //Better yet, add them as Carbon Co...</title>
		<link rel="alternate" type="text/html" href="http://tskds213.synology.me/mediawiki/index.php?title=Phpmailer&amp;diff=2700&amp;oldid=prev"/>
		<updated>2017-01-25T02:41:26Z</updated>

		<summary type="html">&lt;p&gt;新頁面: ==PHP mailer multiple address== &amp;lt;php&amp;gt; $mail-&amp;gt;AddAddress(&amp;#039;person1@domain.com&amp;#039;, &amp;#039;Person One&amp;#039;); $mail-&amp;gt;AddAddress(&amp;#039;person2@domain.com&amp;#039;, &amp;#039;Person Two&amp;#039;);  //Better yet, add them as Carbon Co...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新頁面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==PHP mailer multiple address==&lt;br /&gt;
&amp;lt;php&amp;gt;&lt;br /&gt;
$mail-&amp;gt;AddAddress(&amp;#039;person1@domain.com&amp;#039;, &amp;#039;Person One&amp;#039;);&lt;br /&gt;
$mail-&amp;gt;AddAddress(&amp;#039;person2@domain.com&amp;#039;, &amp;#039;Person Two&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
//Better yet, add them as Carbon Copy recipients.&lt;br /&gt;
&lt;br /&gt;
$mail-&amp;gt;AddCC(&amp;#039;person1@domain.com&amp;#039;, &amp;#039;Person One&amp;#039;);&lt;br /&gt;
$mail-&amp;gt;AddCC(&amp;#039;person2@domain.com&amp;#039;, &amp;#039;Person Two&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
//To make things easy, you should loop through an array to do this.&lt;br /&gt;
&lt;br /&gt;
$recipients = array(&lt;br /&gt;
   &amp;#039;person1@domain.com&amp;#039; =&amp;gt; &amp;#039;Person One&amp;#039;,&lt;br /&gt;
   &amp;#039;person2@domain.com&amp;#039; =&amp;gt; &amp;#039;Person Two&amp;#039;,&lt;br /&gt;
   // ..&lt;br /&gt;
);&lt;br /&gt;
foreach($recipients as $email =&amp;gt; $name)&lt;br /&gt;
{&lt;br /&gt;
   $mail-&amp;gt;AddCC($email, $name);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/php&amp;gt;&lt;/div&gt;</summary>
		<author><name>Root</name></author>
	</entry>
</feed>