Nilhcem / FakeSMTP

Dummy SMTP server with GUI for testing emails in applications easily.
http://nilhcem.github.com/FakeSMTP/
Other
990 stars 319 forks source link

[REQUEST] Auto-start server at launch #4

Closed IrregularShed closed 11 years ago

IrregularShed commented 11 years ago

Hi Nilhcem

FakeSMTP is excellent - really appreciate your work. I was wondering though, would it be possible (eg through a command line parameter) to get the server running as soon as the program is launched? I'd like to have it start when my Mac boots, which is fine, but I have to remember to find the window and start the server itself before running tests (which I inevitably forget to do).

:+1: Steve

Nilhcem commented 11 years ago

Hi,

Many thanks for your message and request. I've implemented this in b01c9e3dc1381fdc7c220d353fb0a6e9b09dfa61 and you can download it directly from http://nilhcem.github.io/FakeSMTP/download.html.

You can now use the -s argument to autostart the server. If you want to start it using a different port, you can use the -p argument too.

For example, the following command will autostart the SMTP server using the port 2525.

java -jar fakeSMTP.jar -s -p 2525
IrregularShed commented 11 years ago

Sir, you are brilliant.