Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

coffezilla/react-bhx-php-email

Repository files navigation

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:

// 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

Languages

AltStyle によって変換されたページ (->オリジナル) /