Click here to Skip to main content
15,911,315 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Using WebService, till now i dealed with how to raise a popup or alert message when a particular user logins, that means based on a user ID, i solved that problem, whenever user logins the system, according to UID, it will call webservice, but now i need a webservice at a particular time, whether user logins or not also, email should go to user at a particular time.
Posted

1 solution

  1. Sending and delivering of e-mail has nothing to do with logins, whatsorever.
  2. Sending of e-mail can be done at any scheduled time; this is not a problem at all. Your service can do scheduling or rely on some scheduling service, depending on the platform; please see my past answer: Problem a Window Services[^].
  3. E-mail delivery is quite quick this days, only nothing can guarantee exact delivery time.


[EDIT]

To send mail, you need an appropriate server. .NET FCL provides a client for SMTP server, for anything else, it's pretty easy to find some other, open-source solutions. Here is what you need:
https://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient%28v=vs.110%29.aspx[^],
https://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage%28v=vs.110%29.aspx[^].

That's all.

—SA
 
Share this answer
 
v3
Comments
Member 11021189 13-Mar-15 1:57am    
Thank you for your solution, but i needed detailed clarification...
Sergey Alexandrovich Kryukov 13-Mar-15 1:58am    
Then please ask some more questions; I'll try to answer. What exactly is not clear?
—SA
Member 11021189 13-Mar-15 2:07am    
Thank u, actually in my previous webservice, i wrote a method in webservice page, i added that webservice in my application, using proxy server i called that webservice whenever the user logins the application, because based in webservice i wrote a method using userid's, but now whether that user logins or not also, my server should send email based on database data, so for this i want clear clarification

Member 11021189 13-Mar-15 7:39am    
any body will u help regarding the above issue ?
Sergey Alexandrovich Kryukov 13-Mar-15 8:40am    
As I say, all you need is to ask. Please see the update to my answer, after [EDIT].
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900