Community-Website icon indicating copy to clipboard operation
Community-Website copied to clipboard

added functionality of sending mail when new user is created and when…

Open PRANJALJAVIA opened this issue 1 year ago β€’ 2 comments

… any new broadcast is added then also mail sent to the registered users only backend part is completed

Issue that this pull request solves

Closes: #870

Proposed changes

when new user is registered in the website using email and password then welcome mail is sent to the user and every time when new podcast is generated then mail is send to the registered user

Backend part is added

Put an x in the boxes that apply

  • [ ] Bugfix (non-breaking change which fixes an issue)
  • [ x ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] Documentation update (Documentation content changed)
  • [ ] Other (please describe):

Checklist

Put an x in the boxes that apply

  • [ x ] My code follows the style guidelines of this project
  • [ x ] I have performed a self-review of my own code
  • [ x ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ x ] My changes generate no new warnings
  • [ x ] My changes does not break the current system and it passes all the current test cases.

Screenshots

Please attach the screenshots of the changes made in case of change in user interface

Other information

enter mail id which is used to sent the mail to registered user in the .env file of backend enter passkey of that mail id in the EMAIL_ID_FOR_SENDING_MAIL in the .env file of backend

PRANJALJAVIA avatar Jul 03 '24 16:07 PRANJALJAVIA

Thank you and congratsπŸŽ‰ for opening this pull request!πŸ’–

Please make sure you have followed our Contributing Guidelines.πŸ™Œ We will test out your code and reply in a bit with some pointers and requests.πŸ’Ώ There may be some errors, but don't worry! We'll work through them with you! πŸ‘πŸŽ‰πŸ˜„ If you haven't filled the template out, Please do so!πŸš€ Feel free to join our Slack Community.πŸ’– We have different channels for active discussions.✨ Hope you have a great time there!πŸ˜„

welcome[bot] avatar Jul 03 '24 16:07 welcome[bot]

Frontend part is not done so I am not able to show any screen shot but I have tested in backend API in Thunder client

On Wed, 3 Jul 2024 at 23:16, kajol @.***> wrote:

@.**** requested changes on this pull request.

  • Please resolve the conflict
  • Can you attach any screenshot/recording showing the functionality?
  • Please address the below comments

In backend/.env https://github.com/HITK-TECH-Community/Community-Website/pull/1072#discussion_r1664549068 :

@@ -8,3 +9,7 @@ EMAIL_HOST=smtp.gmail.com CLUSTER=no JWT_RESET_PASSWORD_EXPIRES_IN=1h LOCAL_DEV_ENV=http://localhost:3500/

+EMAIL_PASS_FOR_NODEMAILER=

can't we reuse EMAIL_USER and EMAIL_PASS as those 2 are the community email and the email's password respectively

In backend/utility/emailTemplates.js https://github.com/HITK-TECH-Community/Community-Website/pull/1072#discussion_r1664551361 :

  •          </ul>
    
  •          <p>Welcome once again to the HITK Tech Community. We're glad to have you with us!</p>
    
  •          <p>Best regards,<br>The HITK Tech Team</p>
    
  •      </div>
    
  •      <div class="footer">
    
  •          <p>&copy; 2024 HITK Tech Community. All rights reserved.</p>
    
  •          <p><a href="[Unsubscribe Link]">Unsubscribe</a> | <a href="[Privacy Policy Link]">Privacy Policy</a></p>
    
  •      </div>
    
  •  </div>
    

+

PRANJALJAVIA avatar Jul 03 '24 18:07 PRANJALJAVIA