Email Structure -- Building an Email Sender with SMTP

Using an SMTP library, you can build an app to send emails. However, it typically doesn’t support a function to simply pass the subject, content, and attachment as parameters. Format of Internet Message Bodies According to RFC2045, the MIME (Multipurpose Internet Mail Extensions) format is used. From: ocfox <[email protected]> To: Test <[email protected]> Subject: Test Email MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=_kuroneko_ This is a simple email header where I use a custom boundary _kuroneko_. The boundary is used to separate different parts of the email. ...

2024-07-26 · 1 min · ocfox

Tailscale with Headscale?

Last month, I got a Dell R730xd. And pay many time on Fight with ChinaTelecom. Finally, I lost in this war. But fortunately, Tailscale can effectively(maybe) address my issue. I used Tailscale past, but stopped by Chinese ‘Premium’ Network, high latency and loss make me crazy. And ’they’ provides services, just like Google. Haha, actually, I’m not sensitive to this at all. I’m not a privacy-paranoid person. “Why not selfhost it?”, a real man(character I made up) said. So I host it on a server with CN21 network. ...

2024-02-06 · 3 min · ocfox