Using Mandrill for sending notification mails in PHP - php

Iam planning to send daily notification mails to my website users using Mandrill with PHP. I have some list of users in mailchimp lists and my database also. Now Iam following the method as sail in this link : http://lvsclasses.blogspot.in/2013/12/mandrill-api-to-send-mails-with.html. I tried to send mails as prescribed and it is working fine. But Iam not able to implement for loop based conditions for displaying the contents and also dont know hoow to send this mail to mailchimp lists.
The documentations given by Mailchimp and Mandrill is not giving me an idea. Can you please help me to implement this requirement : sending notification mails to users(content is taking from website) and send to users in mailchimp list?

Related

Send Regular Email using MailChimp in Laravel

I'm using "spatie/laravel-newsletter" to subscribe users on signup. That is working fine. But now we need to send email to users when they purchase anything from our website.
I'm not able to find a way how can we send emails like we are currently sending from Laravel code using Gmail account from MailChimp.
Any lead would be helpful, what needs to be done on MailChimp dashboard side, what package of laravel might be useful and how we can send emails with it. Thanks!
Please find the below link for and E-commerce store trigger email, which show mailchimp will automatically sends an email when customer purchases a product.
https://mailchimp.com/help/all-the-classic-automation-triggers/#heading+e-commerce
It also has all sorts of trigger, which will automatically send email. Choose which best suits your requirement.
The spatie/newsletter package is only to send marketing emails from your laravel application. Mailchimp offers a separate PHP library https://github.com/mailchimp/mailchimp-transactional-php that can be used to send transactional emails using Mailchimp.
The documentation on this package should show you exactly what you need to do on the Mailchimp Dashboard and how you configure your app to send an email through Mailchimp
Transactional Emails are emails that you send that are event based (purchases, user registrations, etc).
Promotional emails like Newsletters are part of marketing emails.
I hope that clarifies and helps with your email configuration on your Laravel application.

Gmail API with PubSub PUSH notification, time issue

I am developing a ticket system, where customer can ask their queries or questions about services, When customer send mail to SUPPORT email id, then an automatic mail will be sent to customer with an unique #TicketId,
For this scenario, I am using Gmail API with PubSub PUSH type notification, When I got notification by PubSub that a new mail is arrived, then from PHP by Gmail API I will send mail to customer with #TicketId,
Everything is working fine, but there are timing issue when I check mails on Gmail, it is showing time of sent mail earlier than receive mail, same I got in my db also,
I am using internalDate key of mail(message) for save datetime in Database,
Am I doing something wrong? Please help me or suggest the correct way,
Thanks

Store Gmail mails in MySQL and email reply is post on my website. is it possible

I am trying to store mail with IMAP and i think this is really complex and slow method. Is there any API from google which can help me store email and reply in MYSQL and post on my website

Sending single mail using mailchimp API V3

We need to send single mail using MailChimp. Is there any provision in MailChimp to send mail without creating list.
According to my understanding we need to :
Create campaign
create list
Map list to campaign
So in case of say successful registration, do we need to follow these steps to send single mail or is there some workaround to avoid these many api calls.
Any help appreciated.
The Mandrill product (part of MailChimp) is intended for those kinds of one off emails. They call them "transactional" emails since they are based on the user's action.

how to send transactional emails using constant contact in php

Present I am using Sendgrid for sending transnational emails after donating/ registering the user. and Constant Contact for sending news letters to subscribed users in my website.
I want to use only one server for both.
Is there any possibility to send transnational emails using Constant Contact.
I have already searched in developer.constantcontact website. But there is no exact solution. In that they given api for adding emails to list in campaign. and creating campaign and sending email to all users in that list.
Is there any possibility to send email notification to registered/donated user immedieately without creating Campaign.
Please hemp me.
No.
You'll need to use something like Mandrill by MailChimp for transactional emails. Maybe CC will add support at some point, but I wouldn't count on it.

Categories