Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable SSL on SMTP? #68

Closed
biapar opened this issue Oct 14, 2017 · 2 comments
Closed

How to disable SSL on SMTP? #68

biapar opened this issue Oct 14, 2017 · 2 comments

Comments

@biapar
Copy link

biapar commented Oct 14, 2017

ERROR U4HDRedSpaceBusinessLogic.Controllers.HDManagerAppController - failed to send password notification
System.Net.Mail.SmtpException: SSL non deve essere abilitato per i metodi di invio tramite directory di prelievo.
in System.Net.Mail.SmtpClient.SendAsync(MailMessage message, Object userToken)
in System.Net.Mail.SmtpClient.SendMailAsync(MailMessage message)
in FluentEmail.Smtp.SmtpSender.d__8.MoveNext()

@ThisNoName
Copy link

This should work

var sender = new SmtpSender(new SmtpClient("localhost"))
{
    UseSsl = false
};
Email.DefaultSender = sender;

@bjcull
Copy link
Collaborator

bjcull commented Apr 26, 2018

Smtp package now lets you supply a SmtpClient factory to customise your SmtpClient.

@bjcull bjcull closed this as completed Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants