top of page
Aw Joey's Site
Always ready to learn more...
Week 3-
Learning How to use Anaconda
Lab 3-3:
Sending Emails(Part I)
In this exercise, we had to allow our email accounts to be accessible by less secure applications. Hence, we decided to set up a dummy email account so that the security of our real account will not be constricted.
The images below show how to send an email message via python programming, and the results.
Sending Emails(Part II)
For the next part of the exercise, I created another dummy email, "ongpatrick51@gmail.com".
The code is similar to the one above, apart from the eaddresses and names list.
The result for sending emails (Part II)
My thoughts
By using this program, it makes it more efficient to send emails to a group of people. It is very helpful, especially for companies that send mass emails to their customers. They can use a similar program rather than saving time and manpower to send it one by one. Furthermore, it is much easier to style the text via CSS.
Screen Scraping
Screen scraping is a quick way to gather and collate data. In this exercise, we are scraping email addresses from a webpage. This can be applied in the previous exercise, where we can scrape these emails and send all of them the same message within minutes. I am fond of this idea as it is hassle-free, and efficient!
Accessing Web Services
Accessing web services allows various applications to share data. This makes it easy to create, read, update, and delete the data obtained.
An example would be to access a currency web service to get the latest interbank exchange rates. The program(as shown below) will prompt the user to input the rates of any currency.
Output:
Another example is to access a weather web service. This program displays the temperature in Degree Celsius.
My thoughts
This program can be implemented in an application to get real-time information. This may be very practical and cost-saving for startup companies that do not have the resources to obtain the data yet.
bottom of page