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

Error: SMTP module compiled without SSL support #1

Open
Techno-Fox opened this issue Aug 17, 2020 · 6 comments
Open

Error: SMTP module compiled without SSL support #1

Techno-Fox opened this issue Aug 17, 2020 · 6 comments

Comments

@Techno-Fox
Copy link

Techno-Fox commented Aug 17, 2020

Example

    when defined DEBUG:
        debugEcho "Attempting to send information via email"
        let smtpConn = newSmtp(useSsl = false, debug = true)
    else:
        let smtpConn = newSmtp(useSsl = false, debug = false)

Current Output

 Error: SMTP module compiled without SSL support

Expected Output

A binary

Possible Solution

  • Don't require ssl if the programmer doesn't want to use ssl with smtp.
$ nim -v
Nim Compiler Version 1.3.5 [Linux: amd64]
Compiled at 2020-08-17
Copyright (c) 2006-2020 by Andreas Rumpf

git hash: e9df8ebcfd475a715756d24e1718a5c1455689d2
active boot switches: -d:release

I upgraded using choosenim devel --latest
@Araq
Copy link
Member

Araq commented Aug 26, 2020

Is this really a good idea?

@Techno-Fox
Copy link
Author

The security isssue. Without ssl, yes there is much less security as this can be easily be sniffed with wireshark. However, staticly compiling ssl seems to be an issue (from my research), and the project I'm working one doesn't really require ssl (though it would be nice). The real issue is staticly compiling ssl.

Is there a way to staticly compile ssl that I don't know of? Cause that we really help this project.

@capocasa
Copy link

Is this really a good idea?

Yes, if you want to send mail to localhost you shouldn't be forced to have an SSL dependency.

@Araq
Copy link
Member

Araq commented May 24, 2022

Fair enough.

@ringabout ringabout transferred this issue from nim-lang/Nim Dec 8, 2022
@SavSanta
Copy link

SavSanta commented Dec 28, 2023

Yes, if you want to send mail to localhost you shouldn't be forced to have an SSL dependency.

In addition to this. Other things such as quickly prototyping something in a testenv or interfacing with legacy systems/hardware. Im not bout to spin up a STARTTLS :D

Even if one wasnt doing that. I dont see why handicapping the prog is necessary friction. Anyway was this ever fixed in a particular nimlang version? I just ran into the issue on Nim Compiler Version 1.6.6 [Linux: amd64] Compiled at 2022-05-05 . In the interim I just removed the lib since im toying around with the language for a small reimplementation of GoLang program I have but would be good to know for/when future serious usage

@Araq
Copy link
Member

Araq commented Dec 28, 2023

Feel free to create a pull request.

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

4 participants