digitalmars.D.learn - D and MySQL and mail
- Lars Johansson (5/5) Jan 12 Hi I need an advice.
- Dejan Lekic (11/16) Jan 12 Frankly, I do not know the right answers, but I would start with
- Kapendev (5/10) Jan 12 You could try `mysql.d` from
- Adam D. Ruppe (2/3) Jan 12 there's an `email.d` in there too to help with sending emails.
- apz28 (3/8) Jan 12 This may help:
- 0xEAB (2/5) Jan 12 I’d recommend `mysql-native`.
- Serg Gini (4/9) Jan 19 Hey there
- Lars Johansson (2/12) Jan 19 Hi thank you. I it looks good, I will try it.
- Lars Johansson (5/19) Jan 19 Easy Peasy, once I figured out the SMTP address, and that ~
- Serg Gini (3/4) Jan 19 welcome to D
- Lars Johansson (8/13) Jan 21 Hi no the videos are not from me, I am not aware of those videos.
Hi I need an advice. I will write a program that use MySQL. But I'm a bit uncertain what is the best package to work with MySql? I also need to send mails; same question here, or rather what is the simplest way to send mails from D?
Jan 12
On Monday, 12 January 2026 at 15:28:47 UTC, Lars Johansson wrote:Hi I need an advice. I will write a program that use MySQL. But I'm a bit uncertain what is the best package to work with MySql? I also need to send mails; same question here, or rather what is the simplest way to send mails from D?Frankly, I do not know the right answers, but I would start with https://code.dlang.org/search?q=mysql and https://code.dlang.org/search?q=mail One of those packages are probably your best choice. Unfortunately dub registry does not go through the packages/modules inside DUB packages as there are probably MySQL or email modules out there that are in DUB packages with unrelated names. The way it currently works we will never have it, but until recently it could not even do a substring search, so we are making some progress...
Jan 12
On Monday, 12 January 2026 at 15:28:47 UTC, Lars Johansson wrote:Hi I need an advice. I will write a program that use MySQL. But I'm a bit uncertain what is the best package to work with MySql? I also need to send mails; same question here, or rather what is the simplest way to send mails from D?You could try `mysql.d` from [arsd](https://github.com/adamdruppe/arsd). The [awesome-d](https://github.com/dlang-community/awesome-d?tab=readme-ov-file#database-clients ) repo might have something too.
Jan 12
On Monday, 12 January 2026 at 16:43:42 UTC, Kapendev wrote:You could try `mysql.d`there's an `email.d` in there too to help with sending emails.
Jan 12
On Monday, 12 January 2026 at 15:28:47 UTC, Lars Johansson wrote:Hi I need an advice. I will write a program that use MySQL. But I'm a bit uncertain what is the best package to work with MySql? I also need to send mails; same question here, or rather what is the simplest way to send mails from D?This may help: https://code.dlang.org/?sort=updated&limit=20&category=library.database
Jan 12
On Monday, 12 January 2026 at 15:28:47 UTC, Lars Johansson wrote:Hi I need an advice. I will write a program that use MySQL. But I'm a bit uncertain what is the best package to work with MySql?I’d recommend `mysql-native`.
Jan 12
On Monday, 12 January 2026 at 15:28:47 UTC, Lars Johansson wrote:Hi I need an advice. I will write a program that use MySQL. But I'm a bit uncertain what is the best package to work with MySql? I also need to send mails; same question here, or rather what is the simplest way to send mails from D?Hey there For email I think this library looks very simple https://code.dlang.org/packages/postino
Jan 19
On Monday, 19 January 2026 at 08:51:47 UTC, Serg Gini wrote:On Monday, 12 January 2026 at 15:28:47 UTC, Lars Johansson wrote:Hi thank you. I it looks good, I will try it.Hi I need an advice. I will write a program that use MySQL. But I'm a bit uncertain what is the best package to work with MySql? I also need to send mails; same question here, or rather what is the simplest way to send mails from D?Hey there For email I think this library looks very simple https://code.dlang.org/packages/postino
Jan 19
On Monday, 19 January 2026 at 12:25:23 UTC, Lars Johansson wrote:On Monday, 19 January 2026 at 08:51:47 UTC, Serg Gini wrote:Easy Peasy, once I figured out the SMTP address, and that ~ (tilde) can be used to add contents to mailBody it was really simple to send mails. With a png picture. Thanks again.On Monday, 12 January 2026 at 15:28:47 UTC, Lars Johansson wrote:Hi thank you. I it looks good, I will try it.Hi I need an advice. I will write a program that use MySQL. But I'm a bit uncertain what is the best package to work with MySql? I also need to send mails; same question here, or rather what is the simplest way to send mails from D?Hey there For email I think this library looks very simple https://code.dlang.org/packages/postino
Jan 19
On Monday, 19 January 2026 at 14:26:37 UTC, Lars Johansson wrote:Thanks again.welcome to D PS Thanks for your videos, if its yours =)
Jan 19
On Monday, 19 January 2026 at 14:41:49 UTC, Serg Gini wrote:On Monday, 19 January 2026 at 14:26:37 UTC, Lars Johansson wrote:Hi no the videos are not from me, I am not aware of those videos. My D program (a simple monitor of stale/sleeping MySQL processes with mail alarms is now in production. For some reason MySQL tasks (seldom and randomly) are stuck in sleep state locking tables. This snowball and everything comes to a standstill. The idea behind the 'monitor' is to hunt these tasks down and kill'em.Thanks again.welcome to D PS Thanks for your videos, if its yours =)
Jan 21









Dejan Lekic <dejan.lekic gmail.com> 