<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: Edit Autoresponder message</title>
		<link>http://www.kriesi.at/support/topic/edit-autoresponder-message</link>
		<description>Support Forum - Topic: Edit Autoresponder message</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 18:01:01 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/edit-autoresponder-message" rel="self" type="application/rss+xml" />

		<item>
			<title>Ismael on "Edit Autoresponder message"</title>
			<link>http://www.kriesi.at/support/topic/edit-autoresponder-message#post-78486</link>
			<pubDate>Thu, 04 Oct 2012 05:25:27 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">78486@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi Jeff,&#60;/p&#62;
&#60;p&#62;Replace this code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;/**
         * Send the form
         *
         * The send method tries to send the form. It builds the necessary email and submits it via wp_mail
         */
		function send()
		{
			$new_post = array();
			foreach ($_POST as $key =&#38;gt; $post)
			{
				$new_post[str_replace(&#38;#39;avia_&#38;#39;,&#38;#39;&#38;#39;,$key)] = $post;
			}

			$mymail 	= empty($this-&#38;gt;form_paramas[&#38;#39;myemail&#38;#39;]) ? $new_post[&#38;#39;myemail&#38;#39;] : $this-&#38;gt;form_paramas[&#38;#39;myemail&#38;#39;];
			$myblogname = empty($this-&#38;gt;form_paramas[&#38;#39;myblogname&#38;#39;]) ? $new_post[&#38;#39;myblogname&#38;#39;] : $this-&#38;gt;form_paramas[&#38;#39;myblogname&#38;#39;];
			$subject 	= empty($new_post[&#38;#39;subject&#38;#39;]) ? __(&#38;quot;New Message&#38;quot;, &#38;#39;avia_framework&#38;#39;) : $new_post[&#38;#39;subject&#38;#39;];

			$default_from = parse_url(get_option(&#38;#39;home&#38;#39;));

			//set the email adress
			$from = &#38;quot;no-reply@wp-message.com&#38;quot;;
			$usermail = false;

			if(!empty($default_from[&#38;#39;host&#38;#39;])) $from = &#38;quot;no-reply@&#38;quot;.$default_from[&#38;#39;host&#38;#39;];

			if(!empty($this-&#38;gt;autoresponder[0]))
			{
				$from = $_POST[$this-&#38;gt;autoresponder[0]];
				$usermail = true;
			}
			else
			{
				$email_variations = array( &#38;#39;e-mail&#38;#39;, &#38;#39;email&#38;#39;, &#38;#39;mail&#38;#39; );

				foreach($email_variations as $key)
				{
					foreach ($new_post as $current_key =&#38;gt; $current_post)
					{
						if( strpos($current_key, $key) !== false)
						{
							$from = $new_post[$current_key];
							$usermail = true;
							break;
						}

					}

					if($usermail == true) break;
				}
			}

			$to = urldecode( $mymail );
			$from = urldecode( $from );
			$subject = urldecode( $subject  . &#38;quot; (&#38;quot;.__(&#38;#39;sent by contact form at &#38;#39;,&#38;#39;avia_framework&#38;#39;).$myblogname.&#38;quot;)&#38;quot; );
			$message = &#38;quot;&#38;quot;;

			foreach($this-&#38;gt;form_elements as $key =&#38;gt; $element)
			{
				$key = avia_backend_safe_string($key);
				if(!empty($new_post[$key]))
				{
					if($element[&#38;#39;type&#38;#39;] != &#38;#39;hidden&#38;#39; &#38;amp;&#38;amp; $element[&#38;#39;type&#38;#39;] != &#38;#39;decoy&#38;#39;)
					{
						if($element[&#38;#39;type&#38;#39;] == &#38;#39;textarea&#38;#39;) $message .= &#38;quot;&#38;lt;br/&#38;gt;&#38;quot;;
						$message .= $element[&#38;#39;label&#38;#39;].&#38;quot;: &#38;quot;.nl2br(urldecode($new_post[$key])).&#38;quot;&#38;lt;br/&#38;gt;&#38;quot;;
						if($element[&#38;#39;type&#38;#39;] == &#38;#39;textarea&#38;#39;) $message .= &#38;quot;&#38;lt;br/&#38;gt;&#38;quot;;
					}
				}
			}

			$header  = &#38;#39;MIME-Version: 1.0&#38;#39; . &#38;quot;\r\n&#38;quot;;
			$header .= &#38;#39;Content-type: text/html; charset=utf-8&#38;#39; . &#38;quot;\r\n&#38;quot;;
			$header .= &#38;#39;From:&#38;#39;. $from . &#38;quot; \r\n&#38;quot;;
			mail($to, $subject, $message, $header);

			//autoresponder?
			if($usermail &#38;amp;&#38;amp; !empty($this-&#38;gt;form_paramas[&#38;#39;autoresponder&#38;#39;]))
			{
				$header  = &#38;#39;MIME-Version: 1.0&#38;#39; . &#38;quot;\r\n&#38;quot;;
				$header .= &#38;#39;Content-type: text/html; charset=utf-8&#38;#39; . &#38;quot;\r\n&#38;quot;;
				$header .= &#38;#39;From:&#38;#39;. urldecode( $this-&#38;gt;form_paramas[&#38;#39;autoresponder_email&#38;#39;]) . &#38;quot; \r\n&#38;quot;;
				$message = nl2br($this-&#38;gt;form_paramas[&#38;#39;autoresponder&#38;#39;]).&#38;quot;&#38;lt;br/&#38;gt;&#38;lt;br/&#38;gt;&#38;lt;br/&#38;gt;&#38;lt;strong&#38;gt;Your Message:&#38;lt;/strong&#38;gt;&#38;lt;br/&#38;gt;&#38;lt;br/&#38;gt;&#38;quot;.$message;
				mail($from, $this-&#38;gt;form_paramas[&#38;#39;autoresponder_subject&#38;#39;], $message, $header);
			}

			return true;
			//return wp_mail( $to, $subject, $message , $header);

		}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;With this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;/**
         * Send the form
         *
         * The send method tries to send the form. It builds the necessary email and submits it via wp_mail
         */
		function send()
		{
			$new_post = array();
			foreach ($_POST as $key =&#38;gt; $post)
			{
				$new_post[str_replace(&#38;#39;avia_&#38;#39;,&#38;#39;&#38;#39;,$key)] = $post;
			}

			$mymail 	= empty($this-&#38;gt;form_paramas[&#38;#39;myemail&#38;#39;]) ? $new_post[&#38;#39;myemail&#38;#39;] : $this-&#38;gt;form_paramas[&#38;#39;myemail&#38;#39;];
			$myblogname = empty($this-&#38;gt;form_paramas[&#38;#39;myblogname&#38;#39;]) ? $new_post[&#38;#39;myblogname&#38;#39;] : $this-&#38;gt;form_paramas[&#38;#39;myblogname&#38;#39;];
			$subject 	= empty($new_post[&#38;#39;subject&#38;#39;]) ? __(&#38;quot;New Message&#38;quot;, &#38;#39;avia_framework&#38;#39;) : $new_post[&#38;#39;subject&#38;#39;];

			$default_from = parse_url(get_option(&#38;#39;home&#38;#39;));

			//set the email adress
			$from = &#38;quot;no-reply@wp-message.com&#38;quot;;
			$usermail = false;

			if(!empty($default_from[&#38;#39;host&#38;#39;])) $from = &#38;quot;no-reply@&#38;quot;.$default_from[&#38;#39;host&#38;#39;];

			if(!empty($this-&#38;gt;autoresponder[0]))
			{
				$from = $_POST[$this-&#38;gt;autoresponder[0]];
				$usermail = true;
			}
			else
			{
				$email_variations = array( &#38;#39;e-mail&#38;#39;, &#38;#39;email&#38;#39;, &#38;#39;mail&#38;#39; );

				foreach($email_variations as $key)
				{
					foreach ($new_post as $current_key =&#38;gt; $current_post)
					{
						if( strpos($current_key, $key) !== false)
						{
							$from = $new_post[$current_key];
							$usermail = true;
							break;
						}

					}

					if($usermail == true) break;
				}
			}

			$to = urldecode( $mymail );
			$from = urldecode( $from );
			$subject = urldecode( $subject  . &#38;quot; (&#38;quot;.__(&#38;#39;sent by contact form at &#38;#39;,&#38;#39;avia_framework&#38;#39;).$myblogname.&#38;quot;)&#38;quot; );
			$message = &#38;quot;Thank you for your interest in College &#38;amp; Career Fitness. We look forward to getting back to you.\n\n&#38;quot;;

			foreach($this-&#38;gt;form_elements as $key =&#38;gt; $element)
			{
				$key = avia_backend_safe_string($key);
				if(!empty($new_post[$key]))
				{
					if($element[&#38;#39;type&#38;#39;] != &#38;#39;hidden&#38;#39; &#38;amp;&#38;amp; $element[&#38;#39;type&#38;#39;] != &#38;#39;decoy&#38;#39;)
					{
						if($element[&#38;#39;type&#38;#39;] == &#38;#39;textarea&#38;#39;) $message .= &#38;quot;&#38;lt;br/&#38;gt;&#38;quot;;
						$message .= $element[&#38;#39;label&#38;#39;].&#38;quot;: &#38;quot;.nl2br(urldecode($new_post[$key])).&#38;quot;&#38;lt;br/&#38;gt;&#38;quot;;
						if($element[&#38;#39;type&#38;#39;] == &#38;#39;textarea&#38;#39;) $message .= &#38;quot;&#38;lt;br/&#38;gt;&#38;quot;;
					}
				}
			}

			$header  = &#38;#39;MIME-Version: 1.0&#38;#39; . &#38;quot;\r\n&#38;quot;;
			$header .= &#38;#39;Content-type: text/html; charset=utf-8&#38;#39; . &#38;quot;\r\n&#38;quot;;
			$header .= &#38;#39;From:&#38;#39;. $from . &#38;quot; \r\n&#38;quot;;
			mail($to, $subject, $message, $header);

			//autoresponder?
			if($usermail &#38;amp;&#38;amp; !empty($this-&#38;gt;form_paramas[&#38;#39;autoresponder&#38;#39;]))
			{
				$header  = &#38;#39;MIME-Version: 1.0&#38;#39; . &#38;quot;\r\n&#38;quot;;
				$header .= &#38;#39;Content-type: text/html; charset=utf-8&#38;#39; . &#38;quot;\r\n&#38;quot;;
				$header .= &#38;#39;From:&#38;#39;. urldecode( $this-&#38;gt;form_paramas[&#38;#39;autoresponder_email&#38;#39;]) . &#38;quot; \r\n&#38;quot;;
				$message = nl2br($this-&#38;gt;form_paramas[&#38;#39;autoresponder&#38;#39;]).&#38;quot;&#38;lt;br/&#38;gt;&#38;lt;br/&#38;gt;&#38;lt;br/&#38;gt;&#38;lt;strong&#38;gt;Your Message:&#38;lt;/strong&#38;gt;&#38;lt;br/&#38;gt;&#38;lt;br/&#38;gt;&#38;quot;.$message;
				mail($from, $this-&#38;gt;form_paramas[&#38;#39;autoresponder_subject&#38;#39;], $message, $header);
			}

			return true;
			return wp_mail( $to, $subject, $message , $header);

		}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Hope this helps.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Ismael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>steelmillstudio on "Edit Autoresponder message"</title>
			<link>http://www.kriesi.at/support/topic/edit-autoresponder-message#post-78426</link>
			<pubDate>Wed, 03 Oct 2012 16:54:34 +0000</pubDate>
			<dc:creator>steelmillstudio</dc:creator>
			<guid isPermaLink="false">78426@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Man, I'm just not getting it. . . I don't see where to add or edit the text I want to change. . . only code. . . I'm not a programmer.&#60;/p&#62;
&#60;p&#62;No solution for me yet here. . .
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ismael on "Edit Autoresponder message"</title>
			<link>http://www.kriesi.at/support/topic/edit-autoresponder-message#post-77374</link>
			<pubDate>Wed, 26 Sep 2012 03:48:23 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">77374@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi steelmillstudio,&#60;/p&#62;
&#60;p&#62;Instead of writing:&#60;br /&#62;
&#34;Thank you for your interest in College \&#38;amp; Career Fitness. We look forward to getting back to you.&#34;&#60;br /&#62;
Use this one instead:&#60;br /&#62;
&#34;Thank you for your interest in College &#38;amp;amp: Career Fitness. We look forward to getting back to you.&#34;&#60;br /&#62;
Just replace : with ;&#60;/p&#62;
&#60;p&#62;For the last question, Yes, you will edit this file.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Ismael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>steelmillstudio on "Edit Autoresponder message"</title>
			<link>http://www.kriesi.at/support/topic/edit-autoresponder-message#post-77317</link>
			<pubDate>Tue, 25 Sep 2012 20:01:38 +0000</pubDate>
			<dc:creator>steelmillstudio</dc:creator>
			<guid isPermaLink="false">77317@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Ok, so in my case, the auto-reply email message contains:&#60;/p&#62;
&#60;p&#62;&#34;Thank you for your interest in College \&#38;amp; Career Fitness.  We look forward to getting back to you.&#34;&#60;/p&#62;
&#60;p&#62;If I want to remove the &#34;\&#34; before the &#34;&#38;amp; Career Fitness&#34;&#60;/p&#62;
&#60;p&#62;PLUS change the 2nd sentence in the auto-reply to read, &#34;We look forward to learning more about you and will respond to your message as soon as we are able.&#34;&#60;/p&#62;
&#60;p&#62;I would edit this file?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ismael on "Edit Autoresponder message"</title>
			<link>http://www.kriesi.at/support/topic/edit-autoresponder-message#post-75520</link>
			<pubDate>Wed, 12 Sep 2012 05:59:44 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">75520@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi Jeff,&#60;/p&#62;
&#60;p&#62;In the same file you can find this code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;/**
         * Send the form
         *
         * The send method tries to send the form. It builds the necessary email and submits it via wp_mail
         */
		function send()
		{
			$new_post = array();
			foreach ($_POST as $key =&#38;gt; $post)
			{
				$new_post[str_replace(&#38;#39;avia_&#38;#39;,&#38;#39;&#38;#39;,$key)] = $post;
			}

			$mymail 	= empty($this-&#38;gt;form_paramas[&#38;#39;myemail&#38;#39;]) ? $new_post[&#38;#39;myemail&#38;#39;] : $this-&#38;gt;form_paramas[&#38;#39;myemail&#38;#39;];
			$myblogname = empty($this-&#38;gt;form_paramas[&#38;#39;myblogname&#38;#39;]) ? $new_post[&#38;#39;myblogname&#38;#39;] : $this-&#38;gt;form_paramas[&#38;#39;myblogname&#38;#39;];
			$subject 	= empty($new_post[&#38;#39;subject&#38;#39;]) ? __(&#38;quot;New Message&#38;quot;, &#38;#39;avia_framework&#38;#39;) : $new_post[&#38;#39;subject&#38;#39;];

			$default_from = parse_url(get_option(&#38;#39;home&#38;#39;));

			//set the email adress
			$from = &#38;quot;no-reply@wp-message.com&#38;quot;;
			$usermail = false;

			if(!empty($default_from[&#38;#39;host&#38;#39;])) $from = &#38;quot;no-reply@&#38;quot;.$default_from[&#38;#39;host&#38;#39;];

			if(!empty($this-&#38;gt;autoresponder[0]))
			{
				$from = $_POST[$this-&#38;gt;autoresponder[0]];
				$usermail = true;
			}
			else
			{
				$email_variations = array( &#38;#39;e-mail&#38;#39;, &#38;#39;email&#38;#39;, &#38;#39;mail&#38;#39; );

				foreach($email_variations as $key)
				{
					foreach ($new_post as $current_key =&#38;gt; $current_post)
					{
						if( strpos($current_key, $key) !== false)
						{
							$from = $new_post[$current_key];
							$usermail = true;
							break;
						}

					}

					if($usermail == true) break;
				}
			}

			$to = urldecode( $mymail );
			$from = urldecode( $from );
			$subject = urldecode( $subject  . &#38;quot; (&#38;quot;.__(&#38;#39;sent by contact form at &#38;#39;,&#38;#39;avia_framework&#38;#39;).$myblogname.&#38;quot;)&#38;quot; );
			$message = &#38;quot;&#38;quot;;

			foreach($this-&#38;gt;form_elements as $key =&#38;gt; $element)
			{
				$key = avia_backend_safe_string($key);
				if(!empty($new_post[$key]))
				{
					if($element[&#38;#39;type&#38;#39;] != &#38;#39;hidden&#38;#39; &#38;amp;&#38;amp; $element[&#38;#39;type&#38;#39;] != &#38;#39;decoy&#38;#39;)
					{
						if($element[&#38;#39;type&#38;#39;] == &#38;#39;textarea&#38;#39;) $message .= &#38;quot;&#38;lt;br/&#38;gt;&#38;quot;;
						$message .= $element[&#38;#39;label&#38;#39;].&#38;quot;: &#38;quot;.nl2br(urldecode($new_post[$key])).&#38;quot;&#38;lt;br/&#38;gt;&#38;quot;;
						if($element[&#38;#39;type&#38;#39;] == &#38;#39;textarea&#38;#39;) $message .= &#38;quot;&#38;lt;br/&#38;gt;&#38;quot;;
					}
				}
			}

			$header  = &#38;#39;MIME-Version: 1.0&#38;#39; . &#38;quot;\r\n&#38;quot;;
			$header .= &#38;#39;Content-type: text/html; charset=utf-8&#38;#39; . &#38;quot;\r\n&#38;quot;;
			$header .= &#38;#39;From:&#38;#39;. $from . &#38;quot; \r\n&#38;quot;;
			mail($to, $subject, $message, $header);

			//autoresponder?
			if($usermail &#38;amp;&#38;amp; !empty($this-&#38;gt;form_paramas[&#38;#39;autoresponder&#38;#39;]))
			{
				$header  = &#38;#39;MIME-Version: 1.0&#38;#39; . &#38;quot;\r\n&#38;quot;;
				$header .= &#38;#39;Content-type: text/html; charset=utf-8&#38;#39; . &#38;quot;\r\n&#38;quot;;
				$header .= &#38;#39;From:&#38;#39;. urldecode( $this-&#38;gt;form_paramas[&#38;#39;autoresponder_email&#38;#39;]) . &#38;quot; \r\n&#38;quot;;
				$message = nl2br($this-&#38;gt;form_paramas[&#38;#39;autoresponder&#38;#39;]).&#38;quot;&#38;lt;br/&#38;gt;&#38;lt;br/&#38;gt;&#38;lt;br/&#38;gt;&#38;lt;strong&#38;gt;Your Message:&#38;lt;/strong&#38;gt;&#38;lt;br/&#38;gt;&#38;lt;br/&#38;gt;&#38;quot;.$message;
				mail($from, $this-&#38;gt;form_paramas[&#38;#39;autoresponder_subject&#38;#39;], $message, $header);
			}

			return true;
			//return wp_mail( $to, $subject, $message , $header);

		}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;In this code block, the $message variable controls what appears on the body of the email that will be sent.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Ismael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>steelmillstudio on "Edit Autoresponder message"</title>
			<link>http://www.kriesi.at/support/topic/edit-autoresponder-message#post-75473</link>
			<pubDate>Tue, 11 Sep 2012 21:40:42 +0000</pubDate>
			<dc:creator>steelmillstudio</dc:creator>
			<guid isPermaLink="false">75473@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks Devin, however, I'm unfortunately not a programmer.  I've located the file, opened it up and found the autoresponder? you pointed out but am unable to move forward.  Any other information  you can share or lead me to?&#60;/p&#62;
&#60;p&#62;Best, -Jeff
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Devin on "Edit Autoresponder message"</title>
			<link>http://www.kriesi.at/support/topic/edit-autoresponder-message#post-75432</link>
			<pubDate>Tue, 11 Sep 2012 16:00:56 +0000</pubDate>
			<dc:creator>Devin</dc:creator>
			<guid isPermaLink="false">75432@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi steelmillstudio,&#60;/p&#62;
&#60;p&#62;You'll need to edit the framework file that creates the form generator and email. In your theme files open framework&#38;gt;php&#38;gt;class-form-generator.php&#60;/p&#62;
&#60;p&#62;Search for:&#60;br /&#62;
&#60;code&#62;//autoresponder?&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Regards,&#60;/p&#62;
&#60;p&#62;Devin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>steelmillstudio on "Edit Autoresponder message"</title>
			<link>http://www.kriesi.at/support/topic/edit-autoresponder-message#post-75427</link>
			<pubDate>Tue, 11 Sep 2012 15:34:55 +0000</pubDate>
			<dc:creator>steelmillstudio</dc:creator>
			<guid isPermaLink="false">75427@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;How do I edit the text emailed from the contact form?&#60;/p&#62;
&#60;p&#62;Thanks in advance, -Jeff
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
