Api ini dibuat untuk kebutuhan pribadi. Karena kebanyak website cv tidak memilik feature contact me. Jadi kalian bisa menggunakan codingan ini. Jika ada pertanyaan bisa contact me.
- Post message from contact me
To report issues with the API or its documentation, please use the Github Issues tab for this repo. We appreciate your feedback!
- Clone this repo
- Instal dependenciess
- Running locally
Pastikan anda membuat env di local mengikuti format env file.
Dan email yang kamu gunakan harus :
- Memberikan acces kepada aplikasi yang kurang dipercaya
- Not enable 2 authentikasi
Mengirim pesan balasan dari contact me
-
URL
-
Method:
POST -
Request Headers
none
-
URL Params
none
-
Data Params
key value required to STRING true name STRING false subject STRING true text STRING true -
Success Response:
- Code: 200 OK
Content:{ "message": "Success sending message!", "description": "250 2.0.0 OK 1629632652 x19sm14937905pgk.37 - gsmtp" }
- Code: 200 OK
-
Error Response:
- Code: 500 Wrong Password Email di ENV
Content:{ "message": "Failed sending message!", "description": "535-5.7.8 Username and password not accepted. Learn more at\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials c64sm10936922pfc.8 - gsmtp" }
- Code: 500 Wrong Password Email di ENV
