mailchimp

TabError: inconsistent use of tabs and spaces in indentation - Integration MailChimp Django

橙三吉。 提交于 2019-12-11 11:45:12
问题 I have just integrated Mailchimp to my Django Project using Ajax . The email address field is working properly and I'm able to get the email in both my Mailchimp list and my database. Now when I try to add a field that let a user add his first name to the form, I keep getting errors like this one for example: from .utils import SendSubscribeMail File "C:\Users\locq\Desktop\Coding\SEARCH_APP\venv\src\search\utils.py", line 8 self.fname = fname ^ TabError: inconsistent use of tabs and spaces in

How to send dynamic content email without cron job

早过忘川 提交于 2019-12-11 11:08:48
问题 I have a site where many user registered.There is some activities for each registered user I want to sent them a weekly stats email for their each week activity. Each weekly mail have weekly stats for user registered How I can sent them weekly mail without cron job. Is it possible to send weekly dynamic mail using mail chaimp or if not why ? Or any suggestion How i can implement that 回答1: You could use an online cron service to do that. Simply set it to fire your script every week....

How can I display the response of a MailChimp form submit in a modal box instead of redirecting?

匆匆过客 提交于 2019-12-11 10:03:49
问题 I currently have a standard form for users on my site to signup for our mailing list: <form class="form-stacked" action="http://coworkDF.us2.list-manage.com/subscribe/post" method="post"> <input class="span3" id="MERGE0" name="MERGE0" type="email" autocapitalize="off" autocorrect="off" placeholder="e-mail"> <input type="submit" class="btn float-right mail-send" value="Enviar"> </form> Instead of redirecting them to the confirmation page, I'd love to display that confirmation in a modal box

check if user is in a list with mailchimp API V2.0

纵然是瞬间 提交于 2019-12-11 09:57:48
问题 How can I check if a user (email address) is in a specific list with mailchimp api V2.0? If is not I want to subscribe the use. Im using codeigniter but this is irelevant, I'm searching for specific 2.0api function which can do the trick. 回答1: here is somthing i use in laravel, this will search the list for the member ,if found it will update his info (in this case his email) else it will create a new one. public function update_subscribe($old_email, $new_email, $user) { $found =

Extract email addresses list from inbox using PHP and IMAP

旧城冷巷雨未停 提交于 2019-12-11 07:58:27
问题 Has anyone had this task ?? It should be common. I need to extract all the email addresses from a specific inbox accessible through imap. It's for marketing purposes (SMB, mailchimp). The addresses can be either in "from" or somewhere in the body. Strange but I have not found anything similar except these ones: Extract body text from Email PHP https://gist.github.com/AikChun/8305789 This link is also useful for the task http://www.php.net/manual/en/function.imap-headerinfo.php#98809 So I am

How to format $email array for mailchimp

丶灬走出姿态 提交于 2019-12-11 06:52:29
问题 So, I'm trying to send an email via the mailchimp api... the documentation regarding the MCAPI class and its methods seems fairly straight-forward, so far. I'm having a hard time figuring out what mailchimp is expecting for the email array.... I know it needs header info, to, from, body etc... but what is the format that it wants? Does anyone know off hand - or have a link to the proper docs? Much thanks in advance! 回答1: Ah, you can see a previous chunk of code (with its associated

Subscribe to newsletter, mailchimp

自作多情 提交于 2019-12-11 06:47:10
问题 Is it possible to have single button on website that leads user to MailChimp subscribe form that is not physically on that website? Like for example MailChimp "Thank you" page. 回答1: Go to MailChimp Dashboard. Select the list that you want to setup the subscriber form. Go to 'Signup forms' Select 'General forms' Build the form and copy 'Signup form URL' Use the URL in your website, which leads anyone to the subscription form of your MailChimp list. 来源: https://stackoverflow.com/questions

Mailchimp API /lists date type parameter formatting for merge_fields

谁说胖子不能爱 提交于 2019-12-11 06:06:01
问题 I have a date merge_field that I need to populate in the v3 version of the Mailchimp API. Lots of google searching on this before I found my answer... hopefully this saves someone time. 回答1: The format expected is: mm/dd/yyyy . It appears that single digits in month and day work just fine so don't sweat making it strict. If you're in Javascript passing a date object into this function should work for you (assuming you're okay with using the local timezone): function mailchimpDateFormat(date)

Add subscrber to mailchimp API v3

徘徊边缘 提交于 2019-12-11 04:47:19
问题 I write this function: public function mailchimp() { $email = 'testing123@test.com'; $first_name = 'Test'; $last_name = 'Test'; $api_key = 'dfrgergredgdfgdfgdfgdfg-us9'; // YOUR API KEY // server name followed by a dot. // We use us13 because us13 is present in API KEY $server = 'us9.'; $list_id = '718943'; // YOUR LIST ID $auth = base64_encode( 'user:'.$api_key ); $data = array( 'apikey' => $api_key, 'email_address' => $email, 'status' => 'subscribed', 'merge_fields' => array( 'FNAME' =>

Mailchimp API for Rails - list.subscribe(:double_optin => false) not working

房东的猫 提交于 2019-12-11 03:15:01
问题 I am using the mailchimp-api gem and can get the submitted email to work by submitting an email and having a confirmation email sent to that email that signed up but I want to disable the double_optin flag. I am trying to do it with: @mc = Mailchimp::API.new('my api key here') @mc.list.subscribe('list_id', {'email' => params[:email]}, :double_optin => false) This is still sending a confirmation email to that email address. I really don't like how it redirects to a mailchimp page to have you