fus-marcom / bulletin-react

React/Redux version of the University Bulletin
MIT License
42 stars 18 forks source link

Backend for announcement form using email #39

Closed pantharshit00 closed 7 years ago

pantharshit00 commented 7 years ago

(Closes #29 )

Hey @JesseRWeigel , I have created a email backend for announcement forms using nodemailer so that you can use it with any email provider.

screenshot from 2017-10-20 01-48-43

IMPORTANT VERY IMPORTANT DONT IGNORE

RENAME .env.sample to .env and PUT YOU API KEYS IN THERE PROVIDED BY SENDGRID, MAILTRAP, AMAZON SES ETC

RUN YARN

IN DEV ENVIRONMENT I RECOMMEND TO USE http://mailtrap.io for email client. THEY GIVE YOU ONE FREE INBOX

HOPE THIS HELPS YOU,

          HARSHIT
JesseRWeigel commented 7 years ago

I am having trouble getting the form to submit. I have set up mailtrap.io and put in the correct auth creds, but I keep getting this response: image

Any idea what it could be?

pantharshit00 commented 7 years ago

@JesseRWeigel Can you the environment variables file. It is surely a connection error. Might check you internet LOL.

TRY CREATING ANOTHER INBOX IN MAILTRAP

YOUR FIREWALL MIGHT BE BLOCKING THE CONNECTION. TRY DIFFERENT PORT FOR MAILTRAP. TRY PORT 2525, 25, 465

IT IS VERY IMPORTANT THAT YOU RENAME .env.sample to .env file. TRY console loggin process.env to see env are set or not

SHOULD GET THIS screenshot from 2017-10-20 21-48-19 screenshot from 2017-10-20 21-48-52