## smtp4dev [https://github.com/rnwood/smtp4dev](https://github.com/rnwood/smtp4dev) > A dummy SMTP server for Windows, Linux, Mac OS-X (and maybe elsewhere where .NET Core is available). ## インストール [https://github.com/rnwood/smtp4dev/wiki/Installation](https://github.com/rnwood/smtp4dev/wiki/Installation) ## 起動方法(Windowsの場合) ZIPを解凍後、Rnwood.Smtp4dev.exeを実行する。 デフォルトの5000番ポートをregistryなどで使用している場合は、別のポートを指定する。 ``` C:\test\smtp4dev>Rnwood.Smtp4dev.exe --urls=http://localhost:5050 ``` 起動例(25番ポートでなく1025番ポートでListenしているので注意) ``` DataDir: C:\Users\CAST-A152\AppData\Roaming\smtp4dev Using Sqlite database at C:\Users\CAST-A152\AppData\Roaming\smtp4dev\database.db TLS mode: None SMTP Server is listening on port 1025. Keeping last 100 messages and 100 sessions. IMAP Server is listening on port 143 Hosting environment: Production Content root path: C:\test\smtp4dev Now listening on: http://localhost:5050 Application started. Press Ctrl+C to shut down. ``` ## 送信 localhost:1025 宛にメールを送信する。 Docker上のWebAPサーバからメール送信する場合、localhost はコンテナ自身を参照してしまう。 その場合は、メールサーバーに「host.docker.internal」を指定する。 > [コンテナからホスト上のサービスに対して接続したい](https://docs.docker.jp/desktop/networking.html#desktop-networking-i-want-to-connect-from-a-container-to-a-service-on-the-host) ## 受信 管理画面でメールを確認 http://localhost:5050/
2025/05/22
smtp4dev
登録:
コメントの投稿 (Atom)
人気の投稿
-
## 作業前確認 [Amazon Linux 2023 リリースノート](https://docs.aws.amazon.com/ja_jp/linux/al2023/release-notes/relnotes.html) ### インスタンスのネットワーク設定 ``` ...
-
rfc793 TCP Header Format 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 ...
-
SEに必要なスキル スキル分類 主なスキル 技術 ・プラットフォーム ・プログラミング言語 ・データベース ・セキュリティ ・ネットワーク メソドロジ ・オブジェクト指向 ・コンサルティング手法 ・アーキテクチャデザイン ・モデリン...
-
--- ## 地理構成・リージョン設計 | AWS | Azure | 説明 | |-----|-------|------| | - | ジオ | Azure独自の地理的分類単位 | | リージョン | リージョン | データセンター群の配置単位 | | - | リージョ...
0 件のコメント:
コメントを投稿