tests OK
This commit is contained in:
parent
5620213cf5
commit
6cc0c519d2
15 changed files with 81 additions and 187 deletions
|
|
@ -47,9 +47,9 @@ namespace Yavsc.Services
|
|||
/// <returns>a MessageWithPayloadResponse,
|
||||
/// <c>bool somethingsent = (response.failure == 0 && response.success > 0)</c>
|
||||
/// </returns>
|
||||
public async Task SendEmailAsync(string email, string subject, string htmlMessage)
|
||||
public Task SendEmailAsync(string email, string subject, string htmlMessage)
|
||||
{
|
||||
await SendEmailAsync("", email, subject, htmlMessage);
|
||||
return SendEmailAsync("", email, subject, htmlMessage);
|
||||
}
|
||||
|
||||
public async Task<string> SendEmailAsync(string name, string email, string subject, string htmlMessage)
|
||||
|
|
@ -71,8 +71,9 @@ namespace Yavsc.Services
|
|||
);
|
||||
using (SmtpClient sc = new())
|
||||
{
|
||||
sc.Timeout = 30000;
|
||||
sc.Connect(
|
||||
smtpSettings.Server,
|
||||
smtpSettings.Host,
|
||||
smtpSettings.Port,
|
||||
SecureSocketOptions.Auto
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue