How can I set up email functionality like Craigslist? - php

I want a button that when pressed brings up a list of possible email providers (similar to the one that can be found on Craigslist). Then a user can choose the email provider that suits their needs and the "To" and "Subject" get automatically populated. I understand that I can set up a link that automatically populates using Outlook, but that isn't what I am looking for. If anyone could point me in the right direction I would really appreciate it.
Here is a Craigslist ad where the functionality can be viewed. Thanks.

First of all you'd need to program a popup dialog box. I'd recommend using jQuery UI's addon dialog for that. Then you'll need to look at the API docs for each email provider and figure out exactly what parameters you need to pass them in a $_GET string to display what you want on their page. All the custom From, To, Subject, etc is handled by the API, unique to each email provider.
Start here for the Google Dev API: https://developers.google.com/google-apps/email-migration/v1/auth

Related

Using Mailchimp API with Shopify

I am attempting to use the Mailchimp API to allow site visitors to subscribe to my newsletter. Currently, any signups with the default form action that Mailchimp provides sends an Opt-In email and opens a new email to say thanks for subscribing, which I want to avoid. Instead, if I use the API, I can set those options to false. The problem is that it doesn't look like Shopify allows PHP or Ruby in their shop code. I've been looking for weeks for a solution, but I'm at a loss.
Here is a turnaround for this:
1.- Create a Wufoo form with one only field: email address.
2.- Paste this Wufoo form at your Shopify store. We'd recommed pasting the JavaScript version.
It can look like this
3.- On your notifications tab at your Wufoo form, choose to Send notifications to Another Aplication. On the dropdown, choose MailChimp click on Add integration and follow steps. You will be sending all email addresses to your desired MailChimp list.
Tiny problem is that placeholders on Wufoo forms, don't disappear on click, so the user needs to go inside the field and delete all the placeholder. (This might be a good point because robots can't do this, and you make sure the user is really involved in the process of typig his/her email address.)

how to send an sms after a user registers on a website using php

Hello I have a registration form, that carries fields such as name, phone number and email. These details are sent to a database, I am trying to implement a system whereby after registration, an SMS is sent to the user who filled the form as a form of confirmation, instead of emails, I know I need a provider to do this, but from the region where I come from i haven't seen a reliable company that can do this, so I am asking for the best suggestions, I am building with PHP programming language.
We do a similar thing. We personally use TextMagic but most proviers are the similar. You are generally given a few options, the most common being an email proxy or a web page call. For instance, to send messages we use:
mail('07123456789#textmagic.com', 'SECRET_CODE', 'Our message');
Here, there mobile number before the #textmagic.com is the number we're sending to, the SECRET_CODE is our pass key and Our message whatever we want to send.
The web version would be similar, something like:
https://www.textmagic.com/app/api?username=xxxx&password=yyyy& cmd=send&text=Our%20message&phone=447123456789
Really what you want to do is find a service like this then check the API documentation. It's a very simple thing to do, but your question is a little too general to give anything more specific.

How to write a code that automatically get the respodent's mail id using forms..(like google forms but not using it) ...?

In Google forms, we have an option collecting the user_name (i.e mail id) of the respondents.
What is the code for having the same feature but using other form developed using HTML, etc..
You'll have to ask them for it. There is no universal, automatic way to get a user's email address — it's only possible on Google Forms because the user is logged into Google with their account (which has an email address associated with it).

Adding a Button that Sends an Email in an Email

So I have customers that go to my site and request quotes for moving their cars. I get this form emailed to me and then I reply in an email with their quote. In this email I ask them to reply saying that they are ready to move their cars so that I can begin working on setting up their move.
However I feel I can make this step more streamlined. I'd like to have a button in my email that just says something like "Click here if you are ready to move your car!" Is this possible?
I would need this button to let me know which customer it is. I have a unique ID for every job and I could manually configure it before I send the email with the quote. Any help would be appreciated.
The only way to do this is with URL parameters. Something like:
Click Here to Confirm
That could be an image/button if you prefer. You would then use $_GET('account') on your page to access the query/parameter values.
You would have to dynamically insert the custome values before you send the email, as you can't change any of the code once it is sent. There are plenty of transactional email services that can help streamline this for you, all of which are designed to integrate with API's. A couple of good ones that come to mind are SendGrid, Mandrill and Mailjet.
Best thing to do would be to insert a link to a page on your website passing the unique ID as a query string. Then your page can display some sort of confirmation message to the customer and send you a message saying that the customer is ready.

mailchimp php integration

I am trying to find a simple bare bones example/demo that shows me how I can build a trivial/proof of concept website that will collect user email (and maybe first name), and add this name to a list created on mailchimp.
To clarify, I am not merely asking how to create a PHP/mySQl website - I already know how to do that, and I already know how to place a form on a page etc.
Assuming I already have the following:
- A php/MySQL site with a registration form
- A newly created list on mailchimp
More specifically, I want a user to be able to register on a page on my site, and then I want the following sequence of events to happen:
When a user clicks the 'submit' button on my page, their details gets sent to mailchimp and added to a specific list created on mailchimp
They are sent a confirmation email by mailchimp
Once they confirm subscription, they are directed back to a page on my site, with a token from mailchimp
I store their details (provided by mailchimp) into my MySQL database
I send the confirmed subscriber an email with an attachment
When the user unsubscribes from the list, I get notified by mailchimp and I can flag the user as unsubscribed in my database.
I have not been able to find a simple demo (or tutorial) that shows how to implement the required functionality listed above. Can anyone recommend a link (or links) to get me started with implementing these specific "bare bone" functionality?
The documentation is rather good I thought?
Just checkout the API-docs: http://apidocs.mailchimp.com/api/how-to/basic-subscribe.php
And if for some reason you do not want to read docs but just want to see code (please, don't do this, but hey, what do I know): click on the exmples listed here: http://apidocs.mailchimp.com/api/downloads/#examples
Start with the example code and if it doesn't do exactly everything, you can find it at the docs easily enough.

Categories