Skip to content

Commit

Permalink
Email Funciton
Browse files Browse the repository at this point in the history
added a blank email
  • Loading branch information
watzausername committed Dec 6, 2018
1 parent 0b0b28b commit 93133e1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Squeal.kt
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,20 @@ fun changeEnd(endDate: String, appID: Int): String {
// Remove appointment from database using appID
fun removeAppointment(appID: Int): String {
return "DELETE FROM Appointments WHERE appointment_id = $appID;"
}

//Sends email to address
//Returns true for email sent
//Returns false for email not sent
fun sendEmail(emailAddress: String, appointmentName: String, startDate: String, username: String): Boolean{

val emailSent = false;//Set to true if email is sent
val emailMSG = " Hello, $username \nYou have a/an $appointmentName @ $startDate "//Message String


//TODO actually send message emailMSG and update emailSent



return emailSent;
}

0 comments on commit 93133e1

Please sign in to comment.