I have a WCF 4 REST service which does some processing and then returns back immediately. Now there is a need to send an email asynchronously every time this service is called. Is there some way I can achieve this without needing to queue the email in a DB and then use a Windows service to send out the email?
Share
I never used it, but
SmtpClient.SendAsyncseems to be the right tool for the job.From MSDN, emphasis mine:
This way your service can return immediately after posting the request to send the email and you can even register a callback to know when the send email operation completes.