bulletboards/ImageBoardServerApp/Util/Postman.cs
limited_dev 7049eac400 feat: added Email connectivity
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
2023-06-08 23:29:35 +02:00

25 lines
No EOL
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);
}
}