0
|
1 <macro name="post_by_email_page" requires="servlet">
|
|
2 <n.node_page.>
|
|
3 <n.if.is_submitted_form>
|
|
4 <then>
|
|
5 <n.catch_exception. id="send-email-block">
|
|
6 <n.send_email_address/>
|
|
7 </n.catch_exception.>
|
|
8 </then>
|
|
9 </n.if.is_submitted_form>
|
|
10 <n.html>
|
|
11 <head>
|
|
12 <n.title.><t>Post by Email</t></n.title.>
|
|
13 </head>
|
|
14 <body>
|
|
15 <n.edit_header first_text="[t]Post by Email[/t]" second_text="[n.page_node.subject/]" />
|
|
16
|
|
17 <n.if.is_submitted_form>
|
|
18 <then>
|
|
19 <n.if.has_exception for="send-email-block">
|
|
20 <then>
|
|
21 <n.show_email_error/>
|
|
22 </then>
|
|
23 <else>
|
|
24 <table class="info-message" style="width:100%;padding:.5em">
|
|
25 <tr>
|
|
26 <td><img src="/images/success.png"/></td>
|
|
27 <td style="width:100%;font-weight:bold"><t>An email has been sent to you.</t></td>
|
|
28 </tr>
|
|
29 </table>
|
|
30 </else>
|
|
31 </n.if.has_exception>
|
|
32 </then>
|
|
33 </n.if.is_submitted_form>
|
|
34
|
|
35 <div style="margin:1em 0 2em">
|
|
36 <n.if.visitor.is_anonymous>
|
|
37 <then>
|
|
38 <t>To prevent spam, the email address to use when posting by email is <b>unique</b> for each user.</t>
|
|
39 <t>To see which email address you should use to post, please <n.login_link.>login</n.login_link.> or <n.register_link.>register</n.register_link.>.</t>
|
|
40 <n.if.page_node.only_members_can_create_topics>
|
|
41 <then>
|
|
42 <t>You will need authorization to post new topics in <t.location.page_node.subject/>, so in addition to registering you will have to be
|
|
43 approved by the administrators.</t>
|
|
44 </then>
|
|
45 <else>
|
|
46 <t>If you don't want to register yet, just enter the email address from which you intend to post,
|
|
47 and your personal address will be emailed to you.</t>
|
|
48 <div class="second-font big-title" style="margin:1.2em 0 .2em">
|
|
49 <t>Enter your email address</t>
|
|
50 </div>
|
|
51 <n.form.>
|
|
52 <input type="hidden" name="node" value="[n.page_node.id/]"/>
|
|
53 <input type="hidden" name="action" value="send"/>
|
|
54 <input type="text" size="40" maxlength="80" name="email"/><br/>
|
|
55 <input type="submit" value="[t]Send email to me[/t]" style="margin-top:.5em"/>
|
|
56 </n.form.>
|
|
57 </else>
|
|
58 </n.if.page_node.only_members_can_create_topics>
|
|
59 </then>
|
|
60 <else>
|
|
61 <n.if.either condition1="[n.not.page_node.only_members_can_create_topics/]" condition2="[n.visitor.can_create_topic_in.page_node/]">
|
|
62 <then>
|
|
63 <t>Instead of posting via the web interface, you can also post new topics by sending emails to the following email address:</t>
|
|
64 <div style="padding:1em">
|
|
65 <span class="info-message rounded bold" style="padding:.4em .3em">
|
|
66 <n.page_node.subject/>
|
|
67 <<span class="weak-color" style="font-weight:bold"><n.page_node.user_address email="[n.visitor.user_email/]"/></span>>
|
|
68 </span>
|
|
69 </div>
|
|
70 <table style="width:60em">
|
|
71 <tr valign="top">
|
|
72 <td><img src="/images/icon_alert_sm.png"/></td>
|
|
73 <td>
|
|
74 <t>Note that this address is unique to you and only accepts emails sent from <t.address><b><n.visitor.user_email/></b></t.address>.
|
|
75 The purpose of this design is to help prevent spam.</t>
|
|
76 </td>
|
|
77 </tr>
|
|
78 </table>
|
|
79 </then>
|
|
80 <else>
|
|
81 <t>Sorry, but only members can post messages under <t.app.page_node.subject/>.</t><br/>
|
|
82 <t>Please contact the administrators if you need help.</t>
|
|
83 </else>
|
|
84 </n.if.either>
|
|
85 </else>
|
|
86 </n.if.visitor.is_anonymous>
|
|
87 </div>
|
|
88 « <n.page_node.node_link text="[t]Go back[/t]"/>
|
|
89 </body>
|
|
90 </n.html>
|
|
91 </n.node_page.>
|
|
92 </macro>
|
|
93
|
|
94 <macro name="show_email_error">
|
|
95 <n.format_error.handle_exception. for="send-email-block">
|
|
96 <n.exception. name="invalid_email">
|
|
97 <t>Enter a valid email address.</t>
|
|
98 </n.exception.>
|
|
99 </n.format_error.handle_exception.>
|
|
100 </macro>
|
|
101
|
|
102 <macro name="send_email_address" requires="node_page,servlet" unindent="true">
|
|
103 <n.new_email.>
|
|
104 <n.send>
|
|
105 <to><n.get_parameter name="email"/></to>
|
|
106 <subject><t>Email for <t.app.page_node.subject/></t></subject>
|
|
107 <text_part>
|
|
108 <t>Dear user,</t>
|
|
109
|
|
110 <t>As you requested, the email address to post new topics under <t.app.page_node.subject/> is:</t>
|
|
111
|
|
112 <n.page_node.subject/> <<n.page_node.user_address email="[n.get_parameter name='email'/]"/>>
|
|
113
|
|
114 <t>Note that this address is unique to you and only accepts emails sent from <t.address.get_parameter name="email"/>.
|
|
115 The purpose of this design is to help prevent spam.</t>
|
|
116
|
|
117 <t>Visit <t.app.page_node.subject/> at:</t>
|
|
118 <n.page_node.url/>
|
|
119
|
|
120 <t>If you didn't request this email or have no idea why you received it, please ignore it. It might have been a mistake from someone else.</t>
|
|
121
|
|
122 <t>Sincerely,</t>
|
|
123 <t>The Nabble team</t>
|
|
124 ________________________________________
|
|
125 <t>Free Embeddable <t.app.page_node.view_name/></t> powered by Nabble
|
|
126 <n.nabble_homepage/>
|
|
127 </text_part>
|
|
128 <html_part>
|
|
129 <t>Dear user,</t><br/>
|
|
130 <br/>
|
|
131 <t>As you requested, the email address to post new topics under <t.app><b><n.page_node.subject/></b></t.app> is:</t>
|
|
132 <div style="background-color:#FFFADB;border:#EDDD79 solid 1px;margin:1.2em 0;padding:.5em">
|
|
133 <n.page_node.subject/> <<n.page_node.user_address email="[n.get_parameter name='email'/]"/>>
|
|
134 </div>
|
|
135 <t>Note that this address is unique to you and only accepts emails sent from <t.address.get_parameter name="email"/>.
|
|
136 The purpose of this design is to help prevent spam.</t><br/>
|
|
137 <br/>
|
|
138 <t>Visit <t.app.page_node.subject/> at:</t><br/>
|
|
139 <n.page_node.url/><br/>
|
|
140 <br/>
|
|
141 <t>If you didn't request this email or have no idea why you received it, please ignore it. It might have been a mistake from someone else.</t>
|
|
142 <br/>
|
|
143 <br/>
|
|
144 <t>Sincerely,</t><br/>
|
|
145 <t>The Nabble team</t><br/>
|
|
146 ________________________________________<br/>
|
|
147 <t>Free Embeddable <t.app.page_node.view_name/></t> powered by Nabble<br/>
|
|
148 <n.nabble_homepage/><br/><br/>
|
|
149 </html_part>
|
|
150 </n.send>
|
|
151 </n.new_email.>
|
|
152 </macro>
|