Testing SMTP with .net

后端 未结 17 1288
[愿得一人]
[愿得一人] 2020-12-04 09:54

I need to configure a SMTP server for testing my website which sends emails (for registration confirmation etc).

I dont actually want the email to be sent, I just w

17条回答
  •  旧巷少年郎
    2020-12-04 10:54

    If you've got Python installed, you can run the following one liner to run a debug smtp server in the console that'll dump messages to stdout:

    sudo python -m smtpd -n -c DebuggingServer localhost:25

    snagged from here: http://muffinresearch.co.uk/archives/2010/10/15/fake-smtp-server-with-python/

提交回复
热议问题