Web Service to Send Email
$30-5000 USD
Pagado a la entrega
Create a web service that validates a key code against a database and if it matches, send out an email.
## Deliverables
Create a web service that accepts the following parameters: string KeyCode string Destination int MessageTypeID string Message The web service returns the following paramter: string Result The web service will verify that the key code exists in the database table Key (see attached). If it does not, the web service should return Result = "200 - Invalid Key" and exit. The web service should check to see if the current date time is past the Expires date time in the Key table. If the Key has expired, the web service should return Results = "300 - Key Expired" and exit. If the MessageTypeID does not exist in table MessageType, the web service should return Result = "400 - Invalid MessageTypeID" and exit. Otherwise, if the MessageTypeID = 1, the web service should send an email with the Message to the Destination (the inputs to the webservice). Leave subject empty for now. Future MessageTypeIDs will be added in the next round of development of this project (for instance MessageTypeID = 2 may represent SMS/Text message. The web service should then save message, messagetypeid, keyid, and the date/time the message was sent in table MessageLog. If everything was successfull, return Results = "100 - Success". Database code and message sending code should be wrapped in try/catch blocks. Any exceptions should case the web service to exit with Results = "500 - Internal Error".
Nº del proyecto: #3104939