<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Development Blog &#187; mailing list</title>
	<atom:link href="http://www.web-development-blog.com/archives/tag/mailing-list/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.web-development-blog.com</link>
	<description>Web development tutorials, SEO articles and PHP script resources</description>
	<lastBuildDate>Sun, 25 Jul 2010 14:38:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>E-mail marketing software, which is the best for you?</title>
		<link>http://www.web-development-blog.com/archives/e-mail-marketing-software-which-is-the-best-for-you/</link>
		<comments>http://www.web-development-blog.com/archives/e-mail-marketing-software-which-is-the-best-for-you/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 05:21:16 +0000</pubDate>
		<dc:creator>Olaf</dc:creator>
				<category><![CDATA[Internet Marketing]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[affiliate]]></category>
		<category><![CDATA[campaign]]></category>
		<category><![CDATA[e-mail marketing]]></category>
		<category><![CDATA[mailchimp]]></category>
		<category><![CDATA[mailing list]]></category>

		<guid isPermaLink="false">http://www.web-development-blog.com/?p=1155</guid>
		<description><![CDATA[If you search Google for E-mail marketing software you will find a lot of services and I&#8217;m sure a lot of them have great features and are worth the money. The pricing for 1000 mail messages is often very similar and most of them offer a back-end which makes it easy to setup a mailing [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p>If you search Google for E-mail marketing software you will find a lot of services and I&#8217;m sure a lot of them have great features and are worth the money. The pricing for 1000 mail messages is often very similar and most of them offer a back-end which makes it easy to setup a mailing list and marketing campaigns. </p>
<blockquote><p>If all of them have similar features, how do choose the right one? </p></blockquote>
<h3>Some important features</h3>
<ul>
<li>Creating a mailing list takes a lot of time and might be essential for your e-mail marketing success. While collecting subscribers and sending e-mail messages, it&#8217;s important that as many messages as possible have to reach the subscribers mailbox. Bigger companies are more trusted and invest more time an money to prevent that their mail servers are getting black-listed.</li>
<li>If your list is not very big (~1000 subscriber) and you don&#8217;t have a lot of campaigns, your partner should offer pre-paid plans. If you take a monthly plan, check that the maximum amount of subscribers is not to big. </li>
<li>If you&#8217;re not able to create all the forms and templates, you need a service provider which offer these features out of the box. If you have an international list or campaigns, multiple languages should be supported.</li>
<li>A better service provider let you follow strict usage policies. If you need to create campaigns for your existing list, check if the list is fully accepted (before you start customizing forms and templates). On the other side, if the service provider accept any kind of mailing list and or campaign, it might be possible that their mail servers are black-listed frequently.</li>
<li>All services should offer double opt-in features for your subscriptions. Check if you are able to send an auto-respond message to your subscribers.</li>
</ul>
<p><span id="more-1155"></span><br />
In the past year I was able to try three of the bigger services; <strong>iContact</strong>, <strong>MailChimp</strong> and <strong>CampaignMonitor</strong>. <a href="http://www.aweber.com/" rel="nofollow">AWeber</a> looks pretty good and earns a lot of trust and I&#8217;m sure you will not waste your time if you try them as well. They don&#8217;t offer a free trial, but at the moment while I&#8217;m writing this review they offer the first month for only $1 ($19 for the following months). </p>
<h3>iContact &#8211; E-mail marketing simplified</h3>
<p>I tried <a href="http://www.icontact.com/" rel="nofollow">iContact</a> first a year ago and actually it works as they offer the service on their website. You can open a trial account to setup your mailing list and templates/forms. If you want to import a bigger list you need to pay first. They offer only monthly plans, &#8220;pay as you go&#8221; options are not possible. They have all the features like other professional companies, but it seems if their application is not updated the last 3 years (the WYSIWYG editor is very ugly). It doesn&#8217;t feel like a web application from these days. Every e-mail gets the iContact logo in the footer, which you can&#8217;t remove. I have the idea that they don&#8217;t have a strong usage policy because I got never complains for high percentage of un-subscriptions, bounce rates and complains. They offer a survey function and support several 3rd party plugins (WordPress, Joomla, Drupal, SalesForce&#8230;)</p>
<h3>MailChimp &#8211; Email Marketing and Email List Manager</h3>
<p><a href="http://www.mailchimp.com/" rel="nofollow">MailChimp</a> is the best service for a beginning mailing list, because they offer a free plan for lists with less than 500 subscribers. They offering great and easy to use tools for creating lists and campaigns. With a lot of 3rd party plugins (Facebook, SalesForce, Magento, Paypal and many <a href="http://www.mailchimp.com/features/extras" rel="nofollow">more</a>) they are one of the biggest email marketing partners. Using MailChimp you can go for monthly pricing or &#8220;pay as you go&#8221;. The last option is for people sending less frequently a newsletter to their members. Another features are: Custom responder messages, complete forms for your website, powerful API system (offering complete example code), Google Analytics integration, advanced reports and much <a href="http://www.mailchimp.com/features/full_list" rel="nofollow">more</a>. They have a very strict policy on abusing their system, will say don&#8217;t use them for a mailing list you have bought somewhere on the Internet. Very unique is their affiliate scheme, if someone has joined MailChimp via your affiliate link and the user has upgraded to a paid account, both parties getting a $30 bonus (new user and the affiliate). You can&#8217;t turn this bonus into cash, but maybe is an opportunity to run your (bigger) mailing list for free.</p>
<h3>CampaignMonitor &#8211; Email marketing software for web designers</h3>
<p>The first thing you will notice after free trial sign-up is that you login into some kind of reseller area. With <a href="http://www.campaignmonitor.com/" rel="nofollow">CampaignMonitor</a> it&#8217;s possible to create mailing lists completely white-label (even for the user of the back-end). Against MailChimp the back-end has less features, but you&#8217;re able to create your campaigns with custom templates or using the premium templates offered by CampaignMonitor. They offer monthly and &#8220;pay as you go&#8221; plans and their usage policy is somewhere between the one from iContact and the policy from MailChimp. While their back-end is very modern and functional, they don&#8217;t offer enough features for lists in languages other than English. If you need to setup your list in a different language, you should try the API which is powerful as well.</p>
<p>If you start a new mailing list, most of the products or services should work for you, but if you need a provider for your existing list you need to test them first.<br />
<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.web-development-blog.com/archives/running-a-mailing-list-for-increased-traffic-and-sales/" rel="bookmark" title="September 3, 2007">Running a mailing list for increased traffic and sales</a></li>
<li><a href="http://www.web-development-blog.com/archives/integrate-your-mailchimp-newsletter-subscription/" rel="bookmark" title="October 26, 2009">Integrate your MailChimp Newsletter Subscription</a></li>
<li><a href="http://www.web-development-blog.com/archives/create-surveys-with-google-forms/" rel="bookmark" title="April 6, 2010">Create surveys with Google Forms</a></li>
</ul>
<p><!-- Similar Posts took 3.374 ms --></p>
<div style="clear:both;">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.web-development-blog.com/archives/e-mail-marketing-software-which-is-the-best-for-you/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Integrate your MailChimp Newsletter Subscription</title>
		<link>http://www.web-development-blog.com/archives/integrate-your-mailchimp-newsletter-subscription/</link>
		<comments>http://www.web-development-blog.com/archives/integrate-your-mailchimp-newsletter-subscription/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 08:00:11 +0000</pubDate>
		<dc:creator>Olaf</dc:creator>
				<category><![CDATA[PHP scripts]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[jQuery Code]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[contact form]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mailchimp]]></category>
		<category><![CDATA[mailing list]]></category>

		<guid isPermaLink="false">http://www.web-development-blog.com/?p=536</guid>
		<description><![CDATA[MailChimp is a great mailing list provider with a powerful API system. This tutorial will guide you on how-to integrate the subscription process with other forms on your website.]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p>MailChimp is a great mailing list provider with a great control panel and many useful features like: campaign management, statistics, responders and complete set of List management tools. They offer also an small code snippet to place a subscription form on your website. This form powered by jQuery is good enough for most common cases, but what if you like to combine your newsletter subscription with a standard function like contact or registration form?</p>
<blockquote><p>The secret to make your list bigger is to integrate the opt-in function with often used functions like a registration or contact form. </p></blockquote>
<p>In our tutorial we showcase how-to create a contact form application which will send a message and subscribes the user to a mailing list hosted by <a href="http://eepurl.com/cHpm" rel="nofollow" target="_blank">MailChimp</a>.</p>
<h3>Preparations</h3>
<ul>
<li>If you don&#8217;t have a MailChimp account, register one at <a href="http://eepurl.com/cHpm" rel="nofollow" target="_blank">MailChimp</a>. They offer a free account for the first 500 mailing list members and for 3.000 messages a month. <strong>Sign-up now for free and get a $30 bonus if you upgrade your account after a while.</strong></li>
<li>Setup a mailing <strong>list</strong> via the MailChimp control panel and obtain the <strong>Unique list ID</strong> (via the list settings page, lower left corner).</li>
<p><span id="more-536"></span></p>
<li>Now we need an MailChimp API Key, create one from the control panel (Account -> API Keys &#038; Info)</li>
<li>As an option create a custom field (List settings -> List Fields and *|MERGE|* Tags) and name it <strong>subscription_via</strong>. Don&#8217;t change the other variables. We use this field to store the information that a subscription is done via the contact form we create.</li>
</ul>
<h3>The contact form (html)</h3>
<p>We need to have a simple contact form, with a field for name and e-mail address, a textarea for the message and a checkbox for the subscription. The following example is very basic for a better understanding. In real you might to use some Ajax/jQuery powered form (check the jQuery form plugin listed below).</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">form</span> <span style="color: #000066;">action</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;process.php&quot;</span> <span style="color: #000066;">method</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;post&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;name&quot;</span>&gt;</span>Name<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;name&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span>&gt;</span>E-mail<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;message&quot;</span>&gt;</span>Message<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">textarea</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;message&quot;</span> <span style="color: #000066;">cols</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;30&quot;</span> <span style="color: #000066;">rows</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;4&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">textarea</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;checkbox&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;newsletter&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;newsletter&quot;</span>&gt;</span>Subscribe to newsletter<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Register&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;subscribe&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">form</span>&gt;</span></pre></div></div>

<h3>Using the MailChimp API with cURL</h3>
<p>The MailChimp API has several modes on how-to communicate with the system. In this tutorial we use the simple HTTP GET/POST URL method. We request the data using cURL functions and we like to have a response  which is a JSON array.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$apikey</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Your API Key'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$listID</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Your List'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #990000;">sprintf</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'http://api.mailchimp.com/1.2/?method=listSubscribe&amp;apikey=%s&amp;id=%s&amp;email_address=%s&amp;merge_vars[OPTINIP]=%s&amp;merge_vars[MMERGE1]=webdev_tutorials&amp;output=json'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$apikey</span><span style="color: #339933;">,</span> <span style="color: #000088;">$listID</span><span style="color: #339933;">,</span> <span style="color: #000088;">$email</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REMOTE_ADDR'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$ch</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_init</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_exec</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> ID<span style="color: #0000ff;">';</span></pre></div></div>

<p>You can see that we created a string using the PHP function <strong>sprintf</strong> to add our variables. You need to use at least one <strong>merge</strong> variable, in this example we submit the users IP and a value for the custom field we created before. After the cURL request is done we get a response called $data, the JSON array.</p>
<p>This so far about the communication. Before we submit any data we need to check if the submitted email address is valid. I the email address is valid we send the message.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,})&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$email</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">//</span>
		<span style="color: #666666; font-style: italic;">// process here the contact form data like name and message</span>
		<span style="color: #990000;">mail</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'your@mail.com'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Subject: contact form'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'message'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// example</span>
		<span style="color: #666666; font-style: italic;">//</span></pre></div></div>

<p>Note this is just an e-mail example, nothing special because how-to create a safe contact or mail form is not part of this tutorial. We posted a few resources at the end from this article. </p>
<h3>Putting all stuff together</h3>
<p>After the e-mail address is validated and the message is send we check if the checkbox was checked to send the data to the <a href="http://www.mailchimp.com/api/rtfm/" rel="nofollow">MailChimp API</a>. Here is the complete script for the file <strong>process.php</strong>.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$apikey</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Your API Key'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$listID</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Your List'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'subscribe'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,})&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$email</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">//</span>
		<span style="color: #666666; font-style: italic;">// process here the contact form data like name and message</span>
		<span style="color: #990000;">mail</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'your@mail.com'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Subject: contact form'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'message'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// example</span>
		<span style="color: #666666; font-style: italic;">//</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'newsletter'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #990000;">sprintf</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'http://api.mailchimp.com/1.2/?method=listSubscribe&amp;apikey=%s&amp;id=%s&amp;email_address=%s&amp;merge_vars[OPTINIP]=%s&amp;merge_vars[MMERGE1]=webdev_tutorials&amp;output=json'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$apikey</span><span style="color: #339933;">,</span> <span style="color: #000088;">$listID</span><span style="color: #339933;">,</span> <span style="color: #000088;">$email</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REMOTE_ADDR'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$ch</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_init</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_exec</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #990000;">curl_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$arr</span> <span style="color: #339933;">=</span> <span style="color: #990000;">json_decode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$arr</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Check now your e-mail and confirm your subsciption.'</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #b1b100;">switch</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$arr</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'code'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">214</span><span style="color: #339933;">:</span>
					<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'You are already subscribed.'</span><span style="color: #339933;">;</span>
					<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
					<span style="color: #666666; font-style: italic;">// check the MailChimp API for more options</span>
					<span style="color: #b1b100;">default</span><span style="color: #339933;">:</span>
					<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Unkown error...'</span><span style="color: #339933;">;</span>
					<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>			
				<span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>We&#8217;re using the PHP function <strong>json_decode</strong> to convert the JSON array into a PHP array and <strong>echo</strong> different messages upon the result. We used the most common results:</p>
<ul>
<li>1 (not an array) = conformation mail is send</li>
<li>code 214 = the submitted email address already exists</li>
<li>By default we use a standard message</li>
</ul>
<p>Using the API this way it&#8217;s possible to have your own (translated) messages. If you like to use more different messages for different response codes, just add them into the switch statement.</p>
<h3>Additional resources</h3>
<ul>
<li><a href="http://www.finalwebsites.com/tutorials/php_ajax_contact_form.php">A (safe) contact form using Xajax and PHPmailer</a></li>
<li><a href="http://www.malsup.com/jquery/form/" rel="nofollow">jQuery plugin for forms</a></li>
</ul>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.web-development-blog.com/archives/jquery-contact-form-for-your-website/" rel="bookmark" title="January 11, 2010">jQuery Contact form for your website</a></li>
<li><a href="http://www.web-development-blog.com/archives/jquery-form-plugin-and-php-file-uploads/" rel="bookmark" title="November 2, 2009">jQuery form plugin and PHP file uploads</a></li>
<li><a href="http://www.web-development-blog.com/archives/your-e-mail-address-hidden-with-jquery/" rel="bookmark" title="February 25, 2010">Your e-mail address hidden with jQuery?</a></li>
</ul>
<p><!-- Similar Posts took 5.052 ms --></p>
<div style="clear:both;">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.web-development-blog.com/archives/integrate-your-mailchimp-newsletter-subscription/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Running a mailing list for increased traffic and sales</title>
		<link>http://www.web-development-blog.com/archives/running-a-mailing-list-for-increased-traffic-and-sales/</link>
		<comments>http://www.web-development-blog.com/archives/running-a-mailing-list-for-increased-traffic-and-sales/#comments</comments>
		<pubDate>Mon, 03 Sep 2007 02:23:53 +0000</pubDate>
		<dc:creator>Olaf</dc:creator>
				<category><![CDATA[Getting Traffic]]></category>
		<category><![CDATA[eCommerce]]></category>
		<category><![CDATA[mailing list]]></category>
		<category><![CDATA[marketing]]></category>
		<category><![CDATA[promote]]></category>
		<category><![CDATA[traffic]]></category>

		<guid isPermaLink="false">http://www.web-development-blog.com/archives/running-a-mailing-list-for-increased-traffic-and-sales/</guid>
		<description><![CDATA[Internet marketing Guru&#8217;s swear by them, and you&#8217;ve no doubt heard the phrase &#8220;the money&#8217;s in the list&#8221; more times than you care to acknowledge. Certainly running an email list can be lucrative, but why is it so lucrative, and how can you build a mailing list that not only increases sales, but increases your [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p>Internet marketing Guru&#8217;s swear by them, and you&#8217;ve no doubt heard the phrase &#8220;the money&#8217;s in the list&#8221; more times than you care to acknowledge. Certainly running an email list can be lucrative, but why is it so lucrative, and how can you build a mailing list that not only increases sales, but increases your website traffic as well?</p>
<h3>Why running a mailing list can increase sales</h3>
<p>It&#8217;s statistically proven that on average a person must be exposed to a website or offer 7 times before they&#8217;ll make a purchase.  While the underlying reason for this fact is not as clear as the &#8220;magic number&#8221; itself, running a mailing list allows you to keep your primary offer in front of perspective buyers until they purchase or they unsubscribe from your list.</p>
<p>Of course, a mailing list that is sent to potential consumers that is blatantly sales-focused will undoubtedly suffer from a high unsubscribe rate.  Giving your potential customers value amongst subtle recommendations is a much better practice than blasting advertisements with no real value to their email inbox every other day.  Get to know your subscribers and know what kind of questions that they are asking; if you cater to their needs with free information or free resources, over time they will learn to trust your insight and will be more likely to act (purchase a product or service)  based on your recommendation alone.<span id="more-110"></span></p>
<h3>Running an email list can increase website traffic</h3>
<p>This fact is directly related to what we shared above; giving your email list subscribers value.  You don&#8217;t have to give away the farm, so to speak, in order to give value to your email list, simply by knowing they type of information that your subscribers are looking for and providing the answers to their questions without coming across as trying to get into their wallets will undoubtedly help to increase trust in your relationship.</p>
<p>As your mailing list grows, you&#8217;ll see the positive effects of your relationship with your mailing list.  Not only will this help to increase sales for your personal products and products or services that you are promoting as an affiliate, you&#8217;ll notice that your subscribers will frequent your website more often, undoubtedly looking for more insight that you&#8217;ve proven that you can give.</p>
<h3>Creating a profitable mailing list</h3>
<p>People who initially subscribe to your email list do so with the assumption that you have something valuable to provide them.  They are looking for answers, and they think that you have the solution.  By catering to the needs of your mailing list subscribers, you are establishing a name for yourself where you are seen as helpful and trustworthy.  When you&#8217;ve established yourself as a helpful and trustworthy individual, people will naturally pay close attention to what you have to say.   When people are listening closely, they&#8217;ll receive your suggestions for a certain product or service as advice given from a trusted friend, thus much more likely to buy a product or service than if they&#8217;re casually browsing a website.</p>
<p>Running an email list is really like starting a relationship with somebody.  Successful relationships are not all about giving advice; they&#8217;re about listening to what your friend has to say.  Undoubtedly, if you take the time to listen to what your subscribers are asking, you&#8217;ll build a solid relationship with them, and at that point you will be able to say from firsthand knowledge that the money is, in fact, in the list.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.web-development-blog.com/archives/e-mail-marketing-software-which-is-the-best-for-you/" rel="bookmark" title="June 28, 2010">E-mail marketing software, which is the best for you?</a></li>
<li><a href="http://www.web-development-blog.com/archives/top-your-sales-with-google-commerce-search/" rel="bookmark" title="November 29, 2009">Top your sales with Google Commerce Search</a></li>
<li><a href="http://www.web-development-blog.com/archives/8-link-building-ideas-for-corporate-websites/" rel="bookmark" title="March 11, 2010">8 Link building ideas for corporate websites</a></li>
</ul>
<p><!-- Similar Posts took 3.595 ms --></p>
<div style="clear:both;">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.web-development-blog.com/archives/running-a-mailing-list-for-increased-traffic-and-sales/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->