mailchimp

Unable To Connect Laravel to MailChimp (laravel 5.4)

删除回忆录丶 提交于 2019-12-01 13:21:47
问题 I have to define List ID and MailChimp API Key in my .env file. I'm sure both are fine even I am not getting any error but email in not inserting in my List I installed https://github.com/spatie/laravel-newsletter ( spatie/laravel-newsletter ) Package. Here is my method public function subscribe(Request $request) { $email = request('email'); Newsletter::subscribe($email); Session::flash('subscribed', 'Successfully subscribed.'); return redirect()->back(); } Then I check subscribe Method in

100% table width for html email

…衆ロ難τιáo~ 提交于 2019-12-01 11:34:43
I am building an HTML email campaign using Mailchimp and my own HTML. I have heard that to build a successful HTML email you must focus on using tables, and use inline CSS. I have removed all padding from my styles and added in 0 measure to margin, padding, border and outline tags. Any suggestions guys? Really stuck with this. <body style="background:blue; margin:0; padding:0; border:0; outline:0;"> <div id="wrap" style="background:green; width:100%;"> <table width="100%"> <tr> <td style=" width:100%; margin:0; padding:0; border:0; outline:0; height:100px; background:#4b86fc; background-size

Using cURL to POST form to two places

二次信任 提交于 2019-12-01 11:11:28
Yesterday I asked a question about how I could go about hijacking my MailChimp contact form to send an additional email (when certain conditions are met). I wrote changed the action="... from the MailChimp URL to my own process_email.php with code resembling the following: extract($_POST); $url = 'http://myMailchimpUser.us2.list-manage.com/subscribe/post'; $fields = array( 'u' => urlencode($u), 'id' => urlencode($id), 'group' => http_build_query ($group), 'MERGE1' => urlencode($MERGE1), 'MERGE2' => urlencode($MERGE2), 'MERGE3' => http_build_query($MERGE3), 'other_more_info_text' => urlencode(

100% table width for html email

流过昼夜 提交于 2019-12-01 08:04:55
问题 I am building an HTML email campaign using Mailchimp and my own HTML. I have heard that to build a successful HTML email you must focus on using tables, and use inline CSS. I have removed all padding from my styles and added in 0 measure to margin, padding, border and outline tags. Any suggestions guys? Really stuck with this. <body style="background:blue; margin:0; padding:0; border:0; outline:0;"> <div id="wrap" style="background:green; width:100%;"> <table width="100%"> <tr> <td style="

Integrating Mailchimp embeded form with an SSL website

懵懂的女人 提交于 2019-12-01 02:45:27
问题 I am trying to integrate a Mailchimp sign up form with my website. I generated the form in Mailchimp and copied the embed code to my site. The problem is that my site has an SSL certificate and when my potential clients try to sign up to my mailing list it gives them a security warning (in firefox) saying: "Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party. Are you sure you want to continue

Updating subscribers in a list using cURL and Mailchimp API v3

不羁的心 提交于 2019-12-01 01:15:56
问题 I have this code below that adds a user to a pre-existing list in Mailchimp. $apikey = '<api_key>'; $auth = base64_encode( 'user:'.$apikey ); $data = array( 'apikey' => $apikey, 'email_address' => $email, 'status' => 'subscribed', 'merge_fields' => array( 'FNAME' => $name ) ); $json_data = json_encode($data); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://us2.api.mailchimp.com/3.0/lists/<list_id>/members/'); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json

mc:edit do not work in Mailchimp template with Mandrill Javascript API

馋奶兔 提交于 2019-12-01 00:42:48
I'm trying to send emails through the Mandrill API with Mailchimp templates. I am doing this in the cloud code with Parse.com, see here https://www.parse.com/docs/cloud_modules_guide#mandrill . The emails are sent just fine, however, the mc:edit fields are never updated. This is the only content in the template now: <span mc:edit="ship_id">ship_id</span> This is what my call in Javascript looks like, hope somebody sees my mistake. I'm running this in Parse.com cloud code if that makes any difference. Thanks a lot! var Mandrill = require('mandrill'); Mandrill.initialize('api-key'); Mandrill

How to create a campaign using mailchimp v3.0

我只是一个虾纸丫 提交于 2019-12-01 00:13:11
I am trying to create a new campaign using MailChimp API v3.0 but I do not see any method that allows me to make this in the resources of the API. Does anyone know how I can do this? This was not possible when I originally answered this question, but the API has been updated to include campaign creation . PHP solution using POST request: //Sample Data $data = array("recipients" => array("list_id" => "205d96e6b4"), "type" => "regular", "settings" => array("subject_line" => "Subject", "title" => "Title", "reply_to" => "test@gmail.com", "from_name" => "Test", "folder_id" => "8888969b77")); $data

mc:edit do not work in Mailchimp template with Mandrill Javascript API

心已入冬 提交于 2019-11-30 20:35:00
问题 I'm trying to send emails through the Mandrill API with Mailchimp templates. I am doing this in the cloud code with Parse.com, see here https://www.parse.com/docs/cloud_modules_guide#mandrill. The emails are sent just fine, however, the mc:edit fields are never updated. This is the only content in the template now: <span mc:edit="ship_id">ship_id</span> This is what my call in Javascript looks like, hope somebody sees my mistake. I'm running this in Parse.com cloud code if that makes any

How to create a campaign using mailchimp v3.0

梦想的初衷 提交于 2019-11-30 18:04:28
问题 I am trying to create a new campaign using MailChimp API v3.0 but I do not see any method that allows me to make this in the resources of the API. Does anyone know how I can do this? 回答1: This was not possible when I originally answered this question, but the API has been updated to include campaign creation. 回答2: PHP solution using POST request: //Sample Data $data = array("recipients" => array("list_id" => "205d96e6b4"), "type" => "regular", "settings" => array("subject_line" => "Subject",