Nick9500 / ministocks

Android Stocks Widget
http://niteshpatel.github.io/ministocks
MIT License
1 stars 2 forks source link

As a User, I want to be able to send email notifications #19

Closed GurkomalSRao closed 6 years ago

GurkomalSRao commented 6 years ago

As a User, I want to be able to send email notifications [SP: 12] [Priority: 2] [Risk: High]

Demo Scenario 1: User selects "send email notification" button Scenario 2: User receives email of notification/porfolio

Task Estimation (Hours) Task 1: Research how to implement email notification on widget (1h) Task 2: Discuss with assignee's (.5h) Task 3: Implement emailing feature (2h) Task 4: Validate potential flaws i.e email never received (2h) Task 5: Modify and review with assignee's (1.5h)

Testing Template

Test # Input Expected Output Status
1 None None Pass/Fail
2 None None Pass/Fail
3 None None Pass/Fail
GurkomalSRao commented 6 years ago

Possible code for sending email

Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(
            "mailto","email@email.com", null));
intent.putExtra(Intent.EXTRA_SUBJECT, subject);
intent.putExtra(Intent.EXTRA_TEXT, message);
startActivity(Intent.createChooser(intent, "Choose an Email client :"));
GurkomalSRao commented 6 years ago

Demo: sad

GurkomalSRao commented 6 years ago
Test # Input Expected Output Status
1 Select Export Ability to Choose email address Pass
2 Send Email Receive Email Pass
3 Open CSV View Correct Portfolio Pass

Changes to be implemented

jeffersoncasimir commented 6 years ago

We have opted to using the javax.mail library to send e-mails on behalf of a gmail account created for this app. When the user clicks the option in the Preferences menu, they are prompted with a dialog in which they enter the destination address.

This feature/issue is separate from importing and is now completed.