Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm currently working on a PHP application. In order for me to post data to the website, I create a simple form, nothing trivial. However, I would like to incorporate a functionality of posting data in the form of email. So I have a webserver, I have an email set up, and what I would like to do is to send a message to that email, then the sent data is stored. I'm trying to find resources how to do this one and to no avail. Any kind of help is appreciated, thanks in advance.
Mailgun has an inbound email API, which will post incoming email messages to your application. See http://www.mailgun.com/inbound-routing. Sendgrid also offers a similar service: https://sendgrid.com/blog/sendgrids-parse-api-parsing-incoming-email-is-now-faster-and-easier/
It's called email piping, and its a bit hands on so far as configuring it with your email server. If you're comfortable, here's a decent quick rundown: http://www.phpshare.org/articles/Piping-Incoming-Mail-with-PHP
I believe the above is what you're looking for, however an alternative would be having a specific subject / attachment name, and having a cron job periodically check your email account looking for that specific string. ( Option A is a much better / easier fit, but thought it was worth mentioning).
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
in short: building a website form so the user can enter his information including his phone number, and i need a way to verify his phone number. Am using PHP. any simple code/widget that i could add to the page without any installation or SDKs?
been looking for a server who can help me add a widget/code to my live website so the user verifies his phone number before signing in up.
I have found a lot of servers, some can't understand their docs; they required installing SDKs, and I can't finger out how to do that on the host server! if that what it means!
others add other options with the SMS, like call or email and I don't want that.
the last one I found firebase way, but I also couldn't understand how!
OK, my question is: is there a server or a way that is only to send SMS with code and check the code? i mean even if just send SMS and i could add the code to it and verify it with the function I could write.
i think it is so easy to do, but been looking for couple days and i don't why i couldn't find what i need!
If you want to autheticate the user with a phone number you can take a look on firebase
here is the documentation:
https://firebase.google.com/docs/web/setup
Also you can watch firebase tutorials series on youtube
This question too specific and there is no exac answer.
Mostly SMS depends to local providers (for simple cases). If you get SMS plan your provider and if supporting REST API or SOAP you can use simply. This info should be in docs.
In the worst case scenario, if there is not any info you can check SDK source code and extract SMS parts then create your function or class. After all if, else, basic CRUD operations.
When you need all services (SMS, Call etc.) SDK best way doing this. Yes SDK may has a lot of dependencies and complex but you can trust.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm writing up my first website and I am down to the last part; the contact form. Everything has been just HTML5 and CSS so far. From the searches I've done online it would seem that PHP is necessary to make contact forms. Is that true? If not what are some other ways? I'm guess making a contact form with just HTML5 and CSS isn't possible.
Is PHP absolutely necessary to make a contact form?
PHP, no. A server side scripting language of some description, yes.
PHP is generally used because it's common and is shipped with most standard web servers.
You could also use ASP, Python, node.js, whatever you want.
I'm guess making a contact form with just HTML5 and CSS isn't possible.
Making the form is, you just won't be able to send any emails without it.
The only way you could achieve this without using your own server side validation is to use someone else's (i.e. a third party to send your email for you). You'll still be exposing your connection to them, which isn't ideal.
Just add it with PHP if your web server has it installed already! See the documentation for examples. Otherwise there's plenty of tutorials online if you search "[language here] contact form tutorial".
No, PHP is not necessary. To make a contact form which a user can send you'll need some kind of a server-side implementation, and PHP is one of the easiest ways to go.
But you are correct in that HTML and CSS wont be enough.
You could send an email directly from the user's device to your email address using javascript like this
window.open('mailto:oliver#example.com?subject=subject&body=body');
the subject and body could be made from the form content. When you receive the email, you do what you want with it.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am working on a login system that will comply with COPPA regulations by sending an email to a parent's email account a day after registration.
I was wondering about the best way to do this.
I have the sign up time stored in a database column.
I'm using SMTP and PHP Mailer.
Do I need to create a cronjob on the server, or is there a better way
to automate the process of sending a delayed email, preferably using PHP?
If you want to do this all yourself then a cron job is probably going to be the best bet.
However, if you want to move onto a third party email service, I'd just mailchimp. You can then work with the Mandril PHP API which allows you to send messages (I assume emails) with a send_at parameter.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I am creating a form that users will use to register for an event. However, I just discovered that there are some really tight security limitations due to policies due to the site's hosting and also policies the organization has about external-facing scripts (such as PHP) that are seen as an unneeded vulnerability.
I haven't been told flat-out that all PHP is completely banned, but I think that I won't be able to create a file and send email with it. However, I do want to be able to have an online registration form that can be filled out and emailed in as low-tech a way as possible.
I'm aware that you can use mailto: to prepopulate the subject and body of an email sent through the users normal email client:
mailto:my#addy.com?subject=subject+here&body=body+of+email
This is not the best solution because not everyone will be able to use mailto in this way, and for those that do, they must be relied upon not to mess up the formatting of the email. It isn't very consistent. Is there anything better than mailto: but which is still less of a security risk than PHP?
If you don't have the ability to run server side code, then sending an email is pretty much out of the question. Unless of course, you can make javascript calls to some other website that emails or store the form information for you.
Your best bet might be outsourcing it entirely, and using a Google Doc form or something.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have a website and I want to be able to post things through my email, just like in many big social networks. (like Facebook, Flickr)
Like: I would send a message to 'post#domain.com'
the title would be saved to a MySQL db and attachment is saved to a directory.
or something similar to this.
I'm more focused on the attachment,but I'll take anything that will get me started
I heard that it is possible through a "Cron Job", but I'm not familiar with how that works. So please link to a tutorial or some code that I can learn from.
-Thank you
That would be a bigger and more complex system than a simple tutorial.
Conceptually, you'd have a mail exchanger that would accept incoming mail and store it somewhere. Then, you'd have a separate system that would connect to the mail exchanger (through POP, IMAP or filesystem) and get the mails since its last run. It would then parse the mail and run whatever action you specified.