<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.stephanschlegel.de/index.php?action=history&amp;feed=atom&amp;title=ProcessWire_-_Newsletter</id>
	<title>ProcessWire - Newsletter - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.stephanschlegel.de/index.php?action=history&amp;feed=atom&amp;title=ProcessWire_-_Newsletter"/>
	<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=ProcessWire_-_Newsletter&amp;action=history"/>
	<updated>2026-05-06T20:25:03Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Wikizone</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.stephanschlegel.de/index.php?title=ProcessWire_-_Newsletter&amp;diff=23537&amp;oldid=prev</id>
		<title>Steff: /* Links */</title>
		<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=ProcessWire_-_Newsletter&amp;diff=23537&amp;oldid=prev"/>
		<updated>2019-01-19T11:17:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Links&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&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;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 19. Januar 2019, 11:17 Uhr&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-l6&quot; &gt;Zeile 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;  https://modules.processwire.com/modules/wire-mail-swift-mailer/ Swift Mailer Integration&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;  https://modules.processwire.com/modules/wire-mail-swift-mailer/ Swift Mailer Integration&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;  https://github.com/pmarki/ProcessSendNewsletter Modul mit Backend WYSIWYG Editor -&amp;gt; mal anschauen&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;  https://github.com/pmarki/ProcessSendNewsletter Modul mit Backend WYSIWYG Editor -&amp;gt; mal anschauen&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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; [[Ghetto Mailer]] -&amp;gt; Ryans OldSchool Skript / evtl. nicht mehr zeitgemäß, aber gute Inspirationsquelle.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;== Allgemein ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;== Allgemein ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Steff</name></author>
	</entry>
	<entry>
		<id>https://wiki.stephanschlegel.de/index.php?title=ProcessWire_-_Newsletter&amp;diff=23536&amp;oldid=prev</id>
		<title>Steff: Die Seite wurde neu angelegt: „== Links ==  https://github.com/rolandtoth/pwnl Tutorial  https://modules.processwire.com/modules/wire-mail-swift-mailer/ Swiftmailer Integration  https://modu…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=ProcessWire_-_Newsletter&amp;diff=23536&amp;oldid=prev"/>
		<updated>2019-01-19T11:12:14Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „== Links ==  https://github.com/rolandtoth/pwnl Tutorial  https://modules.processwire.com/modules/wire-mail-swift-mailer/ Swiftmailer Integration  https://modu…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Links ==&lt;br /&gt;
 https://github.com/rolandtoth/pwnl Tutorial&lt;br /&gt;
 https://modules.processwire.com/modules/wire-mail-swift-mailer/ Swiftmailer Integration&lt;br /&gt;
 https://modules.processwire.com/modules/wire-mail-branding/ Modul für E-Mail Templates&lt;br /&gt;
 https://modules.processwire.com/modules/wire-mail-mandrill/ Mandrill Integration&lt;br /&gt;
 https://modules.processwire.com/modules/wire-mail-swift-mailer/ Swift Mailer Integration&lt;br /&gt;
 https://github.com/pmarki/ProcessSendNewsletter Modul mit Backend WYSIWYG Editor -&amp;gt; mal anschauen&lt;br /&gt;
&lt;br /&gt;
== Allgemein ==&lt;br /&gt;
Ryans Newsletter ist komplett in ProcessWire realisiert.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Snippets ==&lt;br /&gt;
=== Subscription über Hook für FormBuilder ===&lt;br /&gt;
Beispiel für Sendy&lt;br /&gt;
&lt;br /&gt;
Example usage: a checkbox on a contact form (using Form Builder) for the user to subscribe. &lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s used on https://ricardo-vargas.com/contact/&lt;br /&gt;
&lt;br /&gt;
EXAMPLE&lt;br /&gt;
&lt;br /&gt;
A method on _hooks.php. If you don&amp;#039;t use Form Builder, use this code on your form page.&lt;br /&gt;
&lt;br /&gt;
$forms-&amp;gt;addHookBefore(&amp;#039;FormBuilderProcessor::emailForm&amp;#039;, function($event) {&lt;br /&gt;
&lt;br /&gt;
    $processor = $event-&amp;gt;object;&lt;br /&gt;
&lt;br /&gt;
    if ($processor-&amp;gt;formName == &amp;#039;contact-form&amp;#039;) {&lt;br /&gt;
        $formData = $event-&amp;gt;arguments(1);&lt;br /&gt;
&lt;br /&gt;
        $contact_name = $event-&amp;gt;sanitizer-&amp;gt;text($formData[&amp;#039;contact_name&amp;#039;]);&lt;br /&gt;
        $contact_name = substr($contact_name, 0, 30); // limit length further&lt;br /&gt;
        $contact_name = $event-&amp;gt;sanitizer-&amp;gt;emailHeader($contact_name);&lt;br /&gt;
&lt;br /&gt;
        $contact_email = $event-&amp;gt;sanitizer-&amp;gt;text($formData[&amp;#039;contact_email&amp;#039;]);&lt;br /&gt;
        $contact_email = $event-&amp;gt;sanitizer-&amp;gt;emailHeader($contact_email);&lt;br /&gt;
&lt;br /&gt;
        $processor-&amp;gt;emailFrom = $contact_email; //reply to&lt;br /&gt;
        $processor-&amp;gt;emailSubject = &amp;#039;Message from &amp;#039;.$contact_name;&lt;br /&gt;
&lt;br /&gt;
        &lt;br /&gt;
        $form = $event-&amp;gt;object-&amp;gt;getInputfieldsForm();&lt;br /&gt;
        $subscribe = $form-&amp;gt;get(&amp;#039;receive_updates&amp;#039;);&lt;br /&gt;
        $list_id = $form-&amp;gt;get(&amp;#039;sendy_list_id&amp;#039;)-&amp;gt;attr(&amp;#039;value&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
        // check to see if they subscribed&lt;br /&gt;
        if ($subscribe-&amp;gt;attr(&amp;#039;checked&amp;#039;)) {&lt;br /&gt;
            &lt;br /&gt;
            $success_url = &amp;#039;/contact&amp;#039;;&lt;br /&gt;
            // $fail_url = &amp;#039;/contact?error=1&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
            $ProcessSendyAPI = wire(&amp;#039;modules&amp;#039;)-&amp;gt;getModule(&amp;#039;ProcessSendyAPI&amp;#039;);&lt;br /&gt;
            $ProcessSendyAPI-&amp;gt;subscribeInSendy($contact_name, $contact_email, $list_id, $success_url);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
});&lt;/div&gt;</summary>
		<author><name>Steff</name></author>
	</entry>
</feed>