Giter Site home page Giter Site logo

enable sasl authentification about postal HOT 7 OPEN

samirnext avatar samirnext commented on July 30, 2024
enable sasl authentification

from postal.

Comments (7)

phantomtypist avatar phantomtypist commented on July 30, 2024

Hi @samirnext!

Can you help me out? Would you be able to provide some example code or even create a throw-away repo or a GitHub Gist with a sample app containing the pertinent code that isn't working? Don't include anything sensitive like credentials for your SMTP account. The gist is, do you have a reproduction case for me that I can use and go off of?

Also, would you be able to tell me what SMTP provider you are trying to authenticate against? (e.g. Google, Amazon SES, etc.)

from postal.

phantomtypist avatar phantomtypist commented on July 30, 2024

I'm just going to leave a little more information here for you to see if you covered your bases.

At my work all of the SmtpClient configuration is done in the web.config/app.config files. We don't actually hard-code anything in the code. If you have the correct authentication and SmtpClient configuration settings in your web.config/app.config file, then Postal should just work out of the box, especially with let's say Gmail and Sasl.

References:

So in the "network" element, you need to make sure:

  • defaultCredentials = false
  • enableSsl = true
  • Set the host, username, and password properties.

If you haven't tried those things go ahead and play around with that and let me know if that fixes your issue or not. If I don't hear back from you by the end of February I'll consider the issue closed.

from postal.

samirnext avatar samirnext commented on July 30, 2024

Hi,
when i use dotnet smtp (without postal ) it work by adding this lines :

            ServicePointManager.ServerCertificateValidationCallback = (object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) => true;
            SmtpConexiune.DeliveryMethod = SmtpDeliveryMethod.Network;
            mail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure;
            SecurityProtocolType oldSecurityProtocol = ServicePointManager.SecurityProtocol;
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;
            SmtpConexiune.Send(mail);
            ServicePointManager.SecurityProtocol = oldSecurityProtocol;

how i can enable the tls security protocole in tha app.config ?

thanks

from postal.

samirnext avatar samirnext commented on July 30, 2024

hi,
i resolve this issue but adding this line before Send() methode
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;
thanks

from postal.

josephflyer917 avatar josephflyer917 commented on July 30, 2024

Hi there! It sounds like you need to configure SASL authentication for sending email in your C# MVC laser application using Postal. You might want to check your SMTP settings and credentials. Ensure they match your email provider's requirements. If you still face issues, consider providing more details for specific help. Good luck.

from postal.

Fredricksonjustin39 avatar Fredricksonjustin39 commented on July 30, 2024

Sure, I'd be happy to help with enabling SASL authentication. Could you please provide more specific details about the system or platform you are referring to? This will allow me to provide you with accurate instructions movers.

from postal.

Justinhandrickson123 avatar Justinhandrickson123 commented on July 30, 2024

Enabling SASL authentication is a crucial step for enhancing security in various systems and applications. If you have any specific questions or need guidance on how to enable SASL authentication in a particular context Investement Visa, please provide more details, and I'd be happy to assist further.

from postal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.