www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - D and MySQL and mail

reply Lars Johansson <lasse 11dim.se> writes:
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
next sibling parent Dejan Lekic <dejan.lekic gmail.com> writes:
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
prev sibling next sibling parent reply Kapendev <alexandroskapretsos gmail.com> writes:
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
parent Adam D. Ruppe <destructionator gmail.com> writes:
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
prev sibling next sibling parent apz28 <apz28 help.com> writes:
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
prev sibling next sibling parent 0xEAB <desisma heidel.beer> writes:
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
prev sibling parent reply Serg Gini <kornburn yandex.ru> writes:
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
parent reply Lars Johansson <lasse 11dim.se> writes:
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 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
Hi thank you. I it looks good, I will try it.
Jan 19
parent reply Lars Johansson <lasse 11dim.se> writes:
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:
 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
Hi thank you. I it looks good, I will try it.
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.
Jan 19
parent reply Serg Gini <kornburn yandex.ru> writes:
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
parent Lars Johansson <lasse 11dim.se> writes:
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:
 Thanks again.
welcome to D PS Thanks for your videos, if its yours =)
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.
Jan 21