How Do I Create an html email button that will send back to me an emailed response? - html

I have a small ecommerce business and from time to time a customer will say that they never ordered the item and I am forced to refund their money due to lack of any confirmation from the customer as to his actually placing the order.
I would like to add either an hmtl button or any sort of tool to the emails that i sent you with the customer's receipt. The customer will get the email with his receipt and also within the email will be a button ("I approve This Transaction") for him to click on that will send me back a confirmation email.
Please advise.
Thanks,
Don

There are 2 ways to do this.
With a mailto: link, this would open the users default email client where they would have to send the email as an extra step.
URL parameter in a normal href/button link (ie: www.yoursite.com/yourpage.php?email=their#email.com). You would link to a webpage (yourpage.php) that would pass that URL parameter (in this example "email", but can be any other info you pass through) you can then parse that URL parameter in your webpage and have it email you automatically based on that info.
Option 2 is the way to go, but requires some coding knowledge (PHP for example). Also, in order to set up unique URL parameters, you'll need a system that uses merge tags to create unique values for each email you send. I'd suggest you should use a transactional email service provider for this.

Related

Data sent to email on HTML form submit

I want to create a feedback form where the users input data and when they press submit button, all the data entered is received by the admin at an email address which has been predefined in the code.
i don't want to use "mailto" as it opens another service. Is there any way to send data to email through the HTML form itself?
Forms send data to the URL specified in the action attribute.
mailto: URLs, which you have sensibly ruled out, are highly unreliable.
The only other kind of URL which can be usefully used is an http(s) URL where it is then processed by server side code.
If you want to send the emails to a different address then you need to change the server side code so it doesn't use a single address.
After a lot of research, I have decided to use https://formsubmit.co for this purpose. The details are present in their documentation.
It was exactly what I wanted, and completes my requirements. Thank you to everyone for their help.

Mailto that autopopulates the To: field with original sender

I'd like to know if the following is actually possible:
A mailto link that does not contain an email address, but somehow auto populates the TO: field with the email of the original sender.
For example:
"a href="mailto:ORIGINALSENDER?subject=UNSUBSCRIBE&body=I would like to unsubscribe from future emails">Click here to send an unsubscribe email /a"
Is this possible without having to specify an email address in the link itself? Is there a class or function i can call to autopopulate the To: field?
The reason i ask is we send out curated email templates to individual customers and they are sent via a specific system. This system does not have an unsubscribe function, unfortunately. I am not able to use or suggest a system that does as i am but a lowly cog in the corporate machine.
In a word, no, not dynamically in an email that I'm aware of. Are you sending from the same email address each time? Can you set up an additional email address to handle unsubscribes and just have that hardcoded? (i.e. unsubscribe#yourdomain.com and have that monitored)
If you're using different email addresses, then consider replacing 'click here to unsubscribe' with something to the effect of 'to unsubscribe, reply to this email with unsubscribe in the subject line'
Lastly, making a recommendation and giving a good argument for using a system that better suits your requirements is a first step towards being more than a lowly cog in the corporate machine :)

Infusionsoft API Triggering a confirmation email

Right now I am working on creating a page that gathers details and creates my contacts, which it does fairly well overall. The problem I am having however is that the accounts are "non-marketable" This is because I can not get an email to fire off to allow them to "consent to further emails" does anyone know how to do this?
I mean I get why it needs to be done, I just do not know why its not
You need to set their marketing status with the email optin call. It takes two parameters: an email address and the opt-in reason.
This method only works the first time an email address opts-in.
PHP SDK:
$app = new iSDK();
// perform authorization tasks
$app->optIn($subscriberEmail,"Home page newsletter subscriber");
More information here:
https://developer.infusionsoft.com/docs/xml-rpc/#email-opt-in-an-email-address
The optin method you are referring is a double opt in where you send an email asking to confirm their address. This is not required to send emails with Infusionsoft.

Create a decent unsubscribe method

I've been asked to create a system to send newsletters. A HTML template has been created by an external company. I've got the sourcecode so i can alter it. One thing that was missing was an unsubscribe method. I would like to add a method so that when people click on the link they get an message that they can sent. I would like to process these unsubscriptions automatically but there lies my problem. How can i be sure which user this is? Because if i look at the sender emailadress i can't be 100% sure it is this person. So my question is whether i can incorporate a unique id in the mail and how can i get that unique id in the unsubscribe email?
I've got a system working that can upload the HTML page to a mail and send it. That part works. The email is send to whatever address is in the database in BCC.
Do I need to send each email separately?
Can anyone help me?
Here you can find the unsubscribe link:
Wenst u deze nieuwsbrief niet meer te ontvangen? Schrijf u hier uit <strong>info#odbeeck.be</strong>
Some where in this code i would like to have a unique id so that when i process the email i know which user in the database it represents.
Can anyone point me in the right direction?
Thnx,
If you process it automatically i would propose to add a http://yourdomain.com/unsubscribe?id=abcdef link to the newsletter for unsubscribing. It's mostly done like this, so the user expects it to work like this and it's easy to pass the id parameter.
Other topic: The id should not be passed directly, create a hash over it and use that one for identifying.
You need to send each mail separately. For adding the unique id to each mail you need some templating mechanism or some custom written script.
So my question is whether i can incorporate a unique id in the mail and how can i get that unique id in the unsubscribe email?
Yes.
The email is send to whatever address is in the database in BCC. Do I need to send each email separately?
Yes.
Generate the unique (preferably random and definitely not sequential) id. Store it in a database next to the email address. When the link is clicked look up the email address the id is associated with and unsubscribe using that information.
That said, you would probably be better off outsourcing this to a third party with experience in sending bulk emailing. That will minimise the load on your mail servers and reduce the chance of a screw up causing your mail servers being marked as a source of spam in the various RTBLs.

How do I store my site user's email addresses in both Aweber my MySQL database?

My web site has an opt-in form for user's email addresses. The form will have fields such as name, email and phone number.
Upon submission, I would like the data to also be inserted into my MySQL database.
However, I would also like the email address to be added to an AWeber email subscriber list.
Is this possible?
Yes, it is posible to store the data in a database.
Posting data via a 3rd party script is against Awebers Terms of Service. So it is necessary to take another route.
The way to do it is to allow your user to submit their information to Aweber via the JavaScript form, but choose the setting to request that Aweber send the user information back to you, via your thank you page.
You can use the thank you page to store the user data in your database.