当电子邮件具有最高优先级时,短信生成 [英] sms generation when an email come with highest priority
问题描述
我想在邮件进入我们的邮件服务器时自动生成短信。我们设置了不同联系人的优先级。当收到电子邮件时,我会收到发件人的地址,然后匹配数据库中的发件人地址如果用户存在且具有高优先级,则在用户手机上自动生成短信。这些条件基于用户何时未登录我必须通知用户您有新邮件请检查它。我生成sms.i获取电子邮件但是,当用户没有登录时,我怎么能做到这一点。当用户不登录时,我的网络应用程序监控用户邮件。
请帮助我谢谢
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
推荐答案
我会使用POP3 - 它的hard无法在POP3中获取未读消息的列表/数量 - 你必须自己主动某种跟踪
考虑使用IMAP - 这可能是你的起点 http://briancaos.wordpress.com/2012/04/24/reading-mails-using-imap-and-mailsystem-net/ [ ^ ]
'g'
I'd ditch using POP3 - itshardimpossible 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'
这篇关于当电子邮件具有最高优先级时,短信生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!