Use Asp.net to develop a weather forecast Program

Source: Internet
Author: User

Recently, I have been busy with the design, and I have no time to complete my own ideas. The question of Biji is disgusting. It is called software defect prediction. It is estimated that the graduate students will also need researchers to crack things. They are not in the mood to complete the research and want to relax, so I made my own one nightProgram.

Recently, Google has provided free weather forecast text messages, and it feels good. I want to develop something similar myself. First, I want to find a free text message Dongdong. The first thing I think of is fetion. Because fetion SDK is now available, it is easy to develop, but later I found that, this works well in application, but when used in Asp.net, the DLL loading failure error occurs, and the entire system is too large. Later, I thought of my 139 mailbox and provided a free email reminder. However, for common text messages, only a topic of less than 70 characters is supported. Text messages can contain up to 250 characters, but mobile phone support is required. Otherwise, information may be lost. For detailed settings, see:

That is to say, we now use Asp.net to get weather information at the specified time, and then send an email to the corresponding 139 mailbox on our mobile phone to get a free weather report, or if you want to watch the news, you can also regularly send RSS to your 139 mailbox.

Why use Asp.net? My main consideration is that if my machine is shut down, I will not receive a free weather forecast text message. Can I use Asp.net? Isn't there a lot of free Asp.net space? We can upload the program to the Asp.net space. As long as the Asp.net space continues to run, our program will continue to run for free.

For the Asp.net program, it generally runs during access and does not run when it is not accessed. Then how can we achieve one run? One way is to start a thread and run it on the backend. The method I used is to start a background thread in the program startup event in globle. ASX and send the email at the specified time.

The mail sending module is a DLL for sending mails implemented by smtpclient. It has also been used in previous programs.

Now the program is only a short test that can pass, and the long-term test is not carried out. I hope it is easy to use.

Source codeSome of the items are none, some are poor Chinese support in a foreign space application, and some are to prevent my mobile phone from being sent to a text bomb, so I deleted my 139 email address, and Xu used his 139 email address for testing. Rest assured that, after my test, the free 139 Mail version is free of charge and can be safely used. The source code may have many bugs. If any, please leave a message or send me an email. Thank you for your support.

Http://files.cnblogs.com/dlutwy/WeatherReport.zip

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.