25 lines
586 B
C#
25 lines
586 B
C#
|
using System.Net;
|
||
|
using System.Net.Mail;
|
||
|
|
||
|
namespace ImageBoardServerApp.Util;
|
||
|
|
||
|
public static class Postman
|
||
|
{
|
||
|
private static SmtpClient smtpClient;
|
||
|
|
||
|
public static void logon()
|
||
|
{
|
||
|
smtpClient = new SmtpClient("smtp.bulletboards.xyz")
|
||
|
{
|
||
|
Port = 587,
|
||
|
Credentials = new NetworkCredential("noreply@bulletboards.xyz", "frogARdI,97,#"),
|
||
|
EnableSsl = true,
|
||
|
};
|
||
|
}
|
||
|
|
||
|
public static void sendMail(string to, string subj, string body)
|
||
|
{
|
||
|
smtpClient.Send("noreply@bulletboards.xyz", to, subj, body);
|
||
|
}
|
||
|
|
||
|
}
|