How can I use Twilio sms notifcations in a web form? - html

Can anyone tell me how I can us Twilio sms notifications in a web form so when someone fills out the form with their phone number I receive a sms which includes the phone number?

Twilio Evangelist here. You probably want to do this on the server side, otherwise you will have your Twilio credentials exposed to the world and his dog in the page source, which would be bad.
Then, when the page is submitted you just need to use your language of choice to make a call to the Twilio REST API with a helper library. Or, you can make a request without a helper library, this example shows how to send an SMS.
The SMS you send yourself can include anything you want, including the phone number submitted on the website.
Hope this helps!

Related

E-mail templates with Json

Working on a project for my employer. They are searching for a solution to connect JSON to a email template.
For now, I look for a solution where the system who has the JSON, loads the JSON script on a server. Then, we connect that server with a marketing automation system, for example Marketo. We like to create an email template which loads the JSON.
The developer we found, says it is not possible and it will not work in gmail, outlook or any other client. For what I know, it is possible to create a email template with JSON right? Just to be sure, because when it is possible, our problem is not the system, but the developer.
Like to hear your thoughts on this subject. Suggestions are welcome.
So, this can be done, but you're going to need to do some custom development.
Marketo's API includes a request campaign endpoint for triggering Smart Campaigns, including those which send emails. As part of the request campaign payload, you can send {{my.token}} values for the campaign.
If you can set up some middleware between your JSON output that renders the HTML for your email, you can push that rendered HTML as a token in the campaign request, allowing for on-demand email creation based on your JSON content.
There are two caveats with this approach:
You will have to dynamically send the email using Request Campaign. That means if you need to send unique content to multiple folks, you'll be using one API call per email.
Due to the nature of Request Campaign triggers, you will not be able to batch and send using Marketo's controls; however, this should be straightforward to set up on the API side.
You can build an email using dynamic data, e.g. from an API that sends JSON.
However, you cannot send an email that calls dynamic data. The final email that gets sent must be static. That may be what your developer is getting at. Email software will strip out scripts.

email service for send an email with nodejs in angular 4.x?

I want to send an email activation code for users who sign up on the website. If possible, I would like to use an Angular service so I can use it later in other projects.
... I think you CAN NOT send an email only with Angular4 .. .but you need also a Back End implementation .. like node.js or Asp.NET or what you prefer...
example :
http://tphangout.com/angular-2-sending-mails-from-your-app/
I suppose you need to send from client side(not using a server side like node.js, web api, wcf etc..).
You can not send directly but using external javascript libraries, apis you might able to send. Take a look here, there are pretty much discussions about sending email with javascript.
How to send an email from JavaScript

send SMS from my application Wp8

Hi I am developing a Wp8 application and I want to know can I send an SMS message without having to go into the native messaging application or does it have to go in to it. Cud i use a webservice to send the message from my app or is their better way to send it.
If you want to send an SMS, in about 5 lines of code, you should look into Twilio. Incredibly easy to get started, only pay for what you use, nicely document rest api and best of all its is a proven/mature technology.
https://www.twilio.com/sms

How we can send small form in Email using AS3

I create small form (Name, email, Subject, Message) in Flash. Want to send this by email using AS3 code.
Can we use this offline? Like, we fill all the detail and after submit then its go online and receive the detail in email
as #esimov said, security is not major concern then you have to use SMTPMailer, because your mail send in pure text form to the e-mail server. but if you want to use SMTPMailer then you can use some encryption and decryption method in it. This encryption packet with key are traceable. so If security is major concern then you must use airxmail written in actionscript so you can send and receive mail with SMTP, POP3, IMAP4 protocol. best example are given to send and recieve a mail.
May this will help you.
If you want to use an email client directly using Flash technology you need to stick with Flex. It has a robust backend interaction and even more it allows to do some cross scripting interactions.
However if you wish to use Flash and not Flex, actually there is an email sending application called SMTPMailer which sends attached files through emails with the Socket class available in the Player 9 and AS3. Please note, that for security reason is always better to send emails from the server side of the application. So another possibility would be to integrate the email sending part in a server side script.

Html / Email / Distribution list problem from a noob

I need to create a feature for a website that will allow a user to enter their email in order to receive a free promotion (which will be emailed immediately) and be added to an announcement list. I haven't done any web programming and am wondering where I should start?
Should I just create a database and everytime an email is entered, add the email to the database, then when I want to send out an announcement just write a script that will send an email to every address?
Thanks!
Sites like Campaigner do all of this for you. Why re-invent the wheel.
You could use emailing list software; on a Linux box, that would be Mailman, http://www.list.org/.
Use ASP.NET express. Configure send e-mail and sore whatever you need in the database.
http://www.orcsweb.com/blog/brad/sending-email-from-asp-net-4-c-sample-code/