Send Regular Email using MailChimp in Laravel - php

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.

Related

How to receive email GMAIL with LARAVEL?

I want to receive my mail (INBOX GMAIL) in my laravel application (5.x).
But I don't know how to do this.
I think I need to use a listener : when a mail arrives in my INBOX, I want a laravel event to read the email and save automatically the fields in my database (Subject, Message, Attachments...).
Then the mail in my INBOX will be in status "read".
Can you help me ?
Thank you :)
Interesting way to look at this but why not just have it send messages to the ticketing system and completely manage it there?
You would need to take a look at https://developers.google.com/gmail/api/v1/reference/
Basically you would just be managing emails in a different application. There are also rate limits to be aware of depending on the scope of this system.
It would be safer in that event to have gmail forward the emails to the ticketing system and 100% manage it there and use SMTP to just reply from the system.

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.

Using Mandrill for sending notification mails in 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?

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.

Best way to send email to clients from e-commerce website?

I'm building e-commerce website that will sell all kind of items,
what is the best way to send emails to clients?
Our selling department will send a lot of emails to customers, emails like delivery, newsletters, coupons, and etc..
I don't want to use mail() function because the customers will receive emails to spam box, what is the right way to do it?
There is a companies like benchmarkemail, icontact, mailchimp, do i need to use them?
It's important that you understand the difference between "transactional" and "non-transactional" email.
Sending a order invoice, password-reset or welcome aboard email is transactional. It is send from you (your website) to one specific email address.
A news letter is usually non-transactional in that the same email is send to multiple people at the same time and many countries have strict laws about how these emails can be send and how people should be able to unsubscribe from them.
For transactional email I would suggest to use a third party service such as Mandrill or Postmark. They will make it easy for you to make sure that email arrives in your customers inbox.
For news letters I would suggest you use a third party service such as Campaign Monitor or Mailchimp. They allow you to set up sophisticated campaigns and see reports on how well your marketing email performs.
I would suggest using SendGrid and they also have PHP libraries. They have a free plan which you can try out. They also support creating email templates on your account which really simplifies the mails you send. All your mail formatting and related code is no longer in your application. I've used it and been quite satisfied so far.
Edit and disclaimer :-) I don't work for SendGrid, just had a good experience using it that is all.
It wont go to the spam box if you use mail(), you just need to make sure you send your emails from a registered domain. You should also sign each email and make sure the SPF records are set up.
Links:
http://www.emailquestions.com/help-desk/2418-why-do-my-own-emails-go-into-spam.html http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=spf+records http://www.techtalkpoint.com/articles/setting-up-spf-records-in-cpanel-whm-and-namecheap/

Categories