There is no problem not worth solving, and no technology not worth learning!

Configure domain names in MailTrap to use mail in development and test environments

在开发环境中使用邮件发送。最后在 发件箱 中可以查看已经发送的邮件内容

1. Email testing test emails on staging. Click Start Testing. as shown in Figure 1

Email Testing Test Emails on Staging。点击 Start Testing
Figure 1

2. Click Show Credentials to display the corresponding vouchers. The corresponding credentials can then be copied to the configuration of the development environment. as shown in Figure 2

点击 Show Credentials,显示相应的凭证。然后可将相应的凭证复制到开发环境的配置中
Figure 2

3. Copy the sample code in the curl, and then paste it in the Linux terminal to test the sending of the email. as shown in Figure 3

复制 cURL 中的示例代码,然后在 Linux 终端中粘贴,以测试邮件的发送
Figure 3

4. Then you can see in the outbox that you have received an email. as shown in Figure 4

然后在发件箱中可看见已经收到了一封邮件
Figure 4

5. Use mail to send in the development environment. Finally, in the Outbox, you can view the content of the emails that have been sent. as shown in Figure 5

在开发环境中使用邮件发送。最后在 发件箱 中可以查看已经发送的邮件内容
Figure 5

Need long-term technical maintenance or remote troubleshooting?

I am a PHP / Go backend engineer with 15+ years of experience, focused on existing system maintenance, bug fixing, performance optimization, server troubleshooting, WordPress maintenance, and small feature iterations.

If your project is facing any of the following issues, we can start with a small troubleshooting task first:

  • ✅ PHP / Laravel / Yii2 legacy systems without active maintenance
  • ✅ Go / Gin backend APIs that need troubleshooting or optimization
  • ✅ Slow, broken, or unstable WordPress websites
  • ✅ Nginx / MySQL / Redis / Linux server issues
  • ✅ CDN / Cloudflare / DNS / HTTPS configuration problems
  • ✅ Long-term remote technical support or part-time maintenance

More details: About Me & Collaboration

WeChat: 13980074657
Email: shuijingwanwq@gmail.com
Telegram: @shuijingwan
GitHub: https://github.com/shuijingwan

评论

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.