-
Notifications
You must be signed in to change notification settings - Fork 42
SMTP Server Account and Usage
jhsi517 edited this page Mar 19, 2020
·
3 revisions
This SMTP server was set up so that the application can send an unique link that contains a reset token to user's e-mail address.
It is NOT recommended to log in to this email directly and make any account modifications.
- UserName = se701uoa2020@gmail.com
- Password = flatmate2020!
Because this account is sending emails via Gmail's server, the client should be defined as smtp.gmail.com. And using port 587. Gmail also works on SSL so when used, please ensure the client's SSL property is enabled.
When configuring in C#, make sure System.Net.Mail is included. Below is an example of how an email can be sent:
MailMessage mailMessage = new MailMessage("se701uoa2020@gmail.com", destination email address);
mailMessage.Body = Insert email content here as string;
mailMessage.Subject = Insert email subject here as string;
SmtpClient smtpClient = new SmtpClient("smtp.gmail.com", 587);
smtpClient.UseDefaultCredentials = false;
smtpClient.Credentials = new System.Net.NetworkCredential()
{
UserName = "se701uoa2020@gmail.com"
Password = "flatmate2020!"
};
smtpClient.EnableSsl = true;
smtpClient.Send(mailMessage);
- Home
- Data Model
- Architecture
- API Documentation
- Front End Documentation
- Testing
- Prototyping
- Other
- Contributing Guidelines and Etiquitte
- Labels
- License
- Admin