https://github.com/anuradhawick/mailerapi
To allow others to make a simple contact-us form by using your php_mail()
https://github.com/anuradhawick/mailerapi
Last synced: about 2 months ago
JSON representation
To allow others to make a simple contact-us form by using your php_mail()
- Host: GitHub
- URL: https://github.com/anuradhawick/mailerapi
- Owner: anuradhawick
- Created: 2015-11-14T13:36:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-14T16:02:57.000Z (over 9 years ago)
- Last Synced: 2025-02-05T11:18:31.406Z (4 months ago)
- Language: PHP
- Size: 0 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mailerAPI
To allow others to make a simple contact-us form by using your php_mail()## How this works
* This should be initialized with the given relational schema
* Once created, the implementation allows two recipient email addresses per registered user
* The user once registered the user just have to send ger requests to the mailer.php
* It is advisable to use a server side get request technique since the loggin password for each user will have to be in cluded in the get request. Simply use http_get() or cURL :)
* The password is just to make sure nobody send mails from your domain, Incase, yet if anyonw wish they could.## Format of the request
* mailer.php?ty=send&un=<USERNAME>&pw=<PASSWORD>&msg=<MESSAGE FROM THE CLIENT>&sub=<SUBJECT>&name=<CLIENT NAME>&cli=<CLIENT EMAIL>## Response from the server, a JSON objects array of size <= 2
* [{"from":"[email protected]","to":"[email protected]","subject":"My Subject","message":"Hi, This is a test","messenger":"[email protected]"} ]