diff src/nabble/view/naml/mailing_list.naml @ 0:7ecd1a4ef557

add content
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 21 Mar 2019 19:15:52 -0600
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/nabble/view/naml/mailing_list.naml	Thu Mar 21 19:15:52 2019 -0600
@@ -0,0 +1,28 @@
+<macro name="send_mail_to_list" unindent="true">
+	<n.new_node.get_associated_mailing_list_archive.>
+		<n.new_email.>
+			<n.send>
+				<from><n.new_node.owner.user_email/></from>
+				<from_name><n.new_node.owner.name/></from_name>
+				<to><n.mailing_list_address/></to>
+				<subject><n.new_node.subject/></subject>
+				<text_part>
+					<n.new_node.text_email_message_with_signature />
+					--
+					Sent from: <n.mailing_list_node.url/>
+				</text_part>
+				<html_part>
+					<n.if.either condition1="[n.plain_text_only/]" condition2="[n.new_node.message.is_text_format/]">
+						<then.null/>
+						<else>
+							<n.new_node.html_email_message_with_signature />
+							<br/><hr align="left" width="300" />
+							Sent from the <a href="[n.mailing_list_node.url/]"><n.mailing_list_node.subject/> mailing list archive</a> at Nabble.com.<br/>
+						</else>
+					</n.if.either>
+				</html_part>
+				<set_headers_for.new_node/>
+			</n.send>
+		</n.new_email.>
+	</n.new_node.get_associated_mailing_list_archive.>
+</macro>