muquit / mailsend

A program to send mail via SMTP from command line
Other
294 stars 68 forks source link

How to compile a portable version #138

Open DamienDessagne opened 5 years ago

DamienDessagne commented 5 years ago

Hi, and first of all thanks for the hard work.

What I try to achieve looked kinda simple to me but I'm struggling against some OpenSSL inclusion when trying to make a "portable" version of mailsend.

I want to have what you offer on Windows : a simple executable to download (that can handle SSL) that works out of the box.

On my machine, I can compile mailsend 1.20 against OpenSSL 1.1.0 and install mailsend in a custom directory without any problem. But when I copy the mailsend executable on another machine that doesn't have OpenSSL installed, obviously, it complains about not finding OpenSSL installed.

Any idea on how this can be fixed without having to install OpenSSL manually on every machine?

Thanks a lot in advance for the help!

Best.

muquit commented 5 years ago

You have to build OpenSSL as static library. I did not try to build OpenSSL 1.1.x on Windows. However, OpenSSL 1.0.2 can be built statically as per instruction in INSTALL.W32.

Thanks.

DamienDessagne commented 5 years ago

Thanks, it worked like a charm ! 😉