Skip to content

Instantly share code, notes, and snippets.

View Kaylen-Travis-Pillay's full-sized avatar

Kaylen Travis Pillay Kaylen-Travis-Pillay

View GitHub Profile
package com.softwareological.obsidian_robot.TPC;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.Scanner;
/**
'Sir, please not that they will have to enable unknown application management on the senders gmail account
'The port number and host uset here are for gmail accounts
Try
Dim Smtp_Server As New SmtpClient
Dim e_mail As New MailMessage()
Smtp_Server.UseDefaultCredentials = False
Smtp_Server.Credentials = New Net.NetworkCredential("senders_username", "senders_password")
Smtp_Server.Port = 587
Smtp_Server.EnableSsl = True
####################################################################
# Assignment 1 Solution #
# #
# Author: Kaylen Travis Pillay #
# Date: 2017/06/24 #
# #
# NB: #
# Please note that this is a SUGGESTED solution. Therefore #
# if your our output is the same, you should take the coding #
# style from this suggestion. #