You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
765 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Mail;
using System.Net;
namespace AlabusTransfer.Helper
{
internal class clsMailClient
{
public void CreateTestMessage(string Betreff, string Nachricht)
{
var smtpClient = new SmtpClient(Properties.Settings.Default.mailserver)
{
Port = 587,
Credentials = new NetworkCredential(Properties.Settings.Default.sender, Properties.Settings.Default.cred),
EnableSsl = true,
};
smtpClient.Send(Properties.Settings.Default.sender, Properties.Settings.Default.empfaenger, Betreff, Nachricht);
}
}
}