Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to generate sms automatically when an email came in our mail server with high prority.i have set the priority of different contacts.when an email came then i take the address of sender and then match the sender address from the database if user exist and have high priority then automatically generate sms on the user mobile.these condition is based on when user is not login i have to inform the user that you have new mail please check it.i generate the sms.i fetch the email but how i can do that when user is not login.how my web application monitor the user mails when user not login.
please help me thanks
Posted
Comments
Garth J Lancaster 23-Jun-13 18:42pm    
Depending on what email server you are using, you need some sort of client/program to poll for (or be advised as in 'an event') of new emails - then you need to parse the emails, obtain the sender address, to match against the database etc - simple really

What you havnt done is provide any useful information on what email server you are using - if you said MS Exchange, then, why havnt you looked at the tons of examples out there on the net already ?

This site isnt really about providing people with all the code to solve their issues - its about helping people with issues in their code - a bit different to how you think it works
Member 9987026 23-Jun-13 19:56pm    
i simple use gmail.i fetch all email using pop3 client of gmail.now give me some idea how i can monitor email when new email came in gmail and generate sms when user not login.thanks for reply sir
Member 9987026 23-Jun-13 19:29pm    
i simple use gmail.i fetch all email using pop3 client of gmail.now give me some idea how i can monitor email when new email came in gmail and generate sms when user not login.thanks for reply sir

1 solution

I'd ditch using POP3 - its hard impossible to get a list/count of 'unread' messages in POP3 - you have to maintian some sort of track yourself

consider using IMAP - this might be a starting point for you http://briancaos.wordpress.com/2012/04/24/reading-mails-using-imap-and-mailsystem-net/[^]

'g'
 
Share this answer
 

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