https://github.com/coffezilla/react-bhx-php-email
React sample for with PHP email sender as backend
https://github.com/coffezilla/react-bhx-php-email
react-email react-form react-js react-php rest-email sendmail typescript
Last synced: 5 months ago
JSON representation
React sample for with PHP email sender as backend
- Host: GitHub
- URL: https://github.com/coffezilla/react-bhx-php-email
- Owner: coffezilla
- Created: 2021-09-12T19:24:48.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-18T23:38:06.000Z (over 3 years ago)
- Last Synced: 2024-10-29T23:07:34.609Z (6 months ago)
- Topics: react-email, react-form, react-js, react-php, rest-email, sendmail, typescript
- Language: PHP
- Homepage: https://react-bhx-php-email.netlify.app/
- Size: 404 KB
- Stars: 10
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# E-mail sending
This is a very basic example of sending PHP emails (PHPMailer) using React and axios as dependence.
It's pretty much a simple form with name, email and message field to send email to some website admin as "Contact Form".
## Dependencies
- Axios## Feat
- PHP Mailer ( Backend sample included )
- React ( create-react-app )
- Typescript
- axios
- Basic form## Before use it
In order to use the backend from the sample, you have to put the e-mail:
```php
// sender
$senderName = "React E-mail Sender";
$senderEmail = "..."; // email of the website// receiver
$receiverName = "React E-mail Sender";
$receiverEmail = "..."; // email of the website or admin to receive the contact
```