PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, September 6, 2022

[FIXED] How to send instant email with mail chimp in Swift?

 September 06, 2022     ios, mailchimp-api-v3.0, swift     No comments   

Issue

I am trying to find MailChimp documentation for implementing iOS app that sends instant email to user just like SendGrid. But I can't details about send instant email using email templates via MailChimp even I don't know was it possible or not. How to send instant email to receiver through mail chimp email templates? Any link or suggestion. Thanking you!

For reference I added Sample code sending email via SendGrid:

let dictionary: [String: Any] = [

            "personalizations" :[
                [
                    "to":[
                        [
                            "email": Constants.feedbackEmail,
                            "name": Constants.feedbackEmailUser
                        ]
                    ],

                    "dynamic_template_data": [ //Dynamic data to apply email body

                        "sender_name": name,
                        "subject":subject,
                        "content":content,
                        "type":type
                    ]
                ]
            ],

            "from" :[
                "email": Constants.feedbackEmail,
                "name": Constants.feedbackEmailUser
            ],

            "reply_to":[
                "email": Constants.feedbackEmail,
                "name": Constants.feedbackEmailUser
            ],
             "template_id": "d-7336fe13346e82434596ed08b023529"
        ]

//TODO:- Calling POST method URL with body data of this JSON object.

Solution

To send instant transactional emails to your users you have to use Mandrill, which is the transactional tool of Mailchimp made exactly for your use case.
You will be able to create your templates in Mailchimp and use them in Mandrill.



Answered By - Quentin Hayot
Answer Checked By - David Goodson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing