Skip to content
Menu
Open World News Open World News
  • Privacy Policy
Open World News Open World News

Category: News

PreviousNext: Handling Emails Asynchronously: Integrating Symfony Mailer and Messenger

Posted on February 8, 2024 by Michael G

Take advantage of Symfony Mailer’s first-class integration with Symfony Messenger brought to Drupal via the SM project, allowing your site to send emails asynchronously.

by
daniel.phin
/ 8 February 2024

This post is part 6 in a series about Symfony Messenger.

  1. Introducing Symfony Messenger integrations with Drupal
  2. Symfony Messenger’ message and message handlers, and comparison with @QueueWorker
  3. Real-time: Symfony Messenger’ Consume command and prioritised messages
  4. Automatic message scheduling and replacing hook_cron
  5. Adding real-time processing to QueueWorker plugins
  6. Making Symfony Mailer asynchronous: integration with Symfony Messenger
  7. Displaying notifications when Symfony Messenger messages are processed
  8. Future of Symfony Messenger in Drupal

Since Swift Mailer and its Drupal contrib integration were recently deprecated, many projects have naturally switched to its replacement: Symfony Mailer, either via Drupal Symfony Mailer or Drupal Symfony Mailer Lite.

This post outlines how you can take advantage of Symfony Mailer’s first class integration with Symfony Messenger brought to Drupal via the SM project. This integration allows for dispatching emails off-thread, potentially improving performance of the dispatching (usually web-) thread by offloading email-related tasks to dedicated Symfony Messenger workers. This setup can be considered an alternative to using Queue Mail.

Setup

As of writing, of the two Symfony Mailer implementations in contrib, Drupal Symfony Mailer Lite has built in support for Symfony Messenger. Drupal Symfony Mailer does not yet support it, an issue and merge request exist to add it. Apply a patch until the changes are merged.

Symfony Messenger itself does not require any special configuration, other than installing SM.

To run asynchronously, the SymfonyComponentMailerMessengerSendEmailMessage message must have routing configuration to a transport. Or at least the fallback transport must be configured. Without transport configuration, Emails will still be dispatched through Messenger, however they will be executed synchronously in the same thread they were dispatched.

Opting out

If you happen to have both Symfony Mailer and Symfony Messenger installed but do not want emails to be sent asynchronously, you can configure routing for the SymfonyComponentMailerMessengerSendEmailMessage message to instead use the synchronous transport.

If you’re using the SM Config submodule:

PreviousNext: Handling Emails Asynchronously: Integrating Symfony Mailer and Messenger

Sending emails and dispatching emails

Emails may be dispatched using the usual Drupal mechanism, or you can dispatch using Symfony Mailer directly by constructing an email object:

$email = (new SymfonyComponentMimeEmail())
  ->to('jane@example.com')
  ->from('john@example.com')
  ->subject('Hello world!')
  ->text('Some sample text.')
  ->html('<p>some <strong>sample</strong> text.</p>');
/** @var SymfonyComponentMailerMailerInterface $mailer */
$mailer = Drupal::service(SymfonyComponentMailerMailerInterface::class);
$mailer->send($email);

After the send method is executed, Mailer checks Messenger is available, creates a new SendEmailMessage message to wrap the SymfonyComponentMimeEmail object. Then dispatches SendEmailMessage to the messenger bus.

As is typical with Symfony Messenger, email messages must be serialisable. Avoid including any Drupal entities or service references in an email object, and render email contents before sending it.

Processing emails

To process email messages, run the worker with sm messenger:consume. This command will either listen or poll for messages and execute them in a dedicated thread, ensuring quick processing after they are dispatched. For more information on the worker, please refer to post 3 of this series.


In the next post, we’ll explore how to add a user interface to notify users when relevant tasks have been processed.

Tagged

Symfony, Symfony Messenger, Symfony Mailer, Email

MissionControl::Servers (Resource monitor)

Posted on February 8, 2024 by Michael G
Taking the idea from MissionControl::Job, I’ve made MissionControl::Servers which is a simple monitoring of server resources. The general idea is that we may not want a separate system or service to monitor the CPU, Memory, and Disk Space of our Rails applications. This is especially true for hobby projects. So, if you have a VM, this will give you an easy way to set up monitoring of your system resources. The source can be found at Github Project along with a demo running on an AWS EC2 instance.

Python 3.12.2 and 3.11.8 are now available.

Posted on February 8, 2024 by Michael G

Python 3.12.2 and 3.11.8 are now available. In addition to all the usual bugfixes, these releases contain a small security fix: hidden .pth files are no longer automatically read and executed as part of Python startup. (New releases of 3.8, 3.9 and 3.10 containing the same fix are expected next week.)
 

Python 3.12.2

https://www.python.org/downloads/release/python-3122/

Python 3.12’s second bugfix release. In addition to the mentioned
security fix and the usual slew of bug fixes, build changes and
documentation updates (more than 350 commits), this is also the first
release to include a Software Bill-of-Materials for the source packages (Python-3.12.2.tgz and Python-3.12.2.tar.xz). Full changelog.
 

Python 3.11.8

https://www.python.org/downloads/release/python-3118/

More than 300 commits of bug fixes, build changes and documentation updates. Full changelog.

 

We hope you enjoy the new releases!

 
Thanks to all of the many volunteers who help make Python Development
and these releases possible! Please consider supporting our efforts by
volunteering yourself, or through contributions to the Python Software Foundation or CPython itself.
 
Thomas Wouters
on behalf of your release team,
 
Ned Deily
Steve Dower
Pablo Galindo Salgado
Łukasz Langa

At FOSDEM

Posted on February 8, 2024 by Michael G

FOSDEM (Free and Open source Software Developers’ European Meeting) is a
non-commercial, volunteer-organized meeting where almost ten thousand people
come together around free and open-source software development. It is aimed
at developers and anyone interested in the free and open-source software
movement. It really is totally open, anyone can just walk up and attend
anything. There is no registration even. And yet, it is full of people who
are central to so many key free software projects that power the world we
live in.

For me personally, FOSDEM was good and intense as usual. I went to FOSDEM
for the first time about five years ago. At that time, when I told people I
worked on F-Droid, they asked, “What’s that?”. I went last year, and when I
said F-Droid, people mostly responded, “oh yeah, nice project!” This year,
it felt like most people’s response was to show me F-Droid installed on
their phone then to thank me. It was really a wonderful confirmation to
receive, especially in person, and was a great reminder that we are
positively affecting people’s lives, although our day-to-day experience is
mostly dealing with the problems that people report.

I’ve been doing free software so long (30 years this year!) that it was hard
for me to walk 50m without running into someone that I should discuss
something with. I talked with people from Debian,
Codeberg, CalyxOS, Clean
Insights
, Weblate, The
European Commission, Tella,
Replicant, LineageOS,
OpenJDK, /e/ foundation,
FSFE, EDRi,
Guix, Reproducible
Builds
,
Huridocs, WolfSSL,
Internews
SUSTAIN
,
OpenWISP, OnionShare,
Mailvelope, Butter,
Thunderbird, Eclipse Foundation and more.
One thing that is particularly impressive is the project
stands. Basically every one of them was
staffed by core contributors. Many founders and project leaders were even at
the stands answering questions from whoever walked up (Mastodon, Calyx,
NLnet, ISRG/Let’s Encrypt, Open Source Design, Codeberg, Thunderbird,
Matrix and more).

EU Legislation and Free Software

For me, the biggest part was the Open Source In The European Legislative
Landscape
devroom.
There were a number of people from the European Commission actively engaging
with the hackers like me to understand free software in the context of the
Digital Markets Act, the Cyber Resiliency Act, and the Product Liability
Directive. It was great to see that they are generally supportive of our
point of view. The Digital Markets Act is shaping up to be a powerful tool
for opening up things for free software. The key question now is whether
the European Commission will step up to strongly enforce it in the face of
well-funded attacks from Big Tech.

From that experience, I now feel that the current state of the EU’s Cyber
Resiliency Act (CRA) and the Product Liability Directive (PLD) should not
negatively affect F-Droid or its contributors. I am not a lawyer, so this is
based on my understanding after lots of discussions with people who know a
lot of about it. This is my current understanding of why F-Droid and anyone
who contributes to it should not have to change what they are doing:

  • The F-Droid legal entity makes the “product” so it would be liable.
  • F-Droid is currently entirely non-commercial, handles no money, and only
    commercial activity is regulated by CRA and PLD.
  • Volunteer contributors are very clearly exempt since all their activity is
    non-commercial.
  • Donation-funded contributions like our
    Liberapay
    should also not be affected
    since donations are not paying for a product.
  • Contracted contributors are helping build the regulated product, so the
    legal entities of the contractors would not be liable for F-Droid’s
    “product”.

All in all, I enjoyed FOSDEM very much and found it an amazing place to
exchange with other free software projects. The only downside were the
crowds when trying to get food and drink, and the Wi-Fi and cellular
networks being overwhelmed. I can recommend bringing a spare sandwich and a
water bottle. I hope that the F-Droid community can be better represented
there in the future, and I’ll work on that myself to help make it happen.
Hope to see you at FOSDEM!

What is B-right/V release 4.5?

Posted on February 8, 2024 by Michael G
What if I told you there is an immensely popular operating system that you likely used it at least once, but did not realise what it was? In fact, it is so popular and important there is an IEEE standard based on it. It is uncanny how immensely popular AND immensely obscure this system is. It is scary that until today I have never even heard of its reference desktop implementation. The system is called “TRON”. ↫ Nina Kalinina This Mastodon thread is OSNews bait. Delicious.

Open Source AI Definition: Where it stands and what’s ahead

Posted on February 8, 2024 by Michael G
Open Source AI Definition: Where it stands and what’s ahead

A review of the actions taken toward establishing an Open Source AI Definition and a roadmap of the work to be done in 2024 to get to v. 1.0. Read this recap to stay in the know.

The post <span class=’p-name’>Open Source AI Definition: Where it stands and what’s ahead</span> appeared first on Voices of Open Source.

Flight to You Hindi Dubbed Episode 01 Chinese Drama

Posted on February 7, 2024 by Michael G

Author: Source Read more

Fernando Haddad prega harmonia entre os Três Poderes

Posted on February 7, 2024 by Michael G
O ministro da Fazenda, Fernando Haddad (PT), defendeu o diálogo entre os Três Poderes para que a agenda econômica do país prospere e garanta um crescimento sustentável nos próximos anos. Assista ao Jornal da Manhã completo: https://youtube.com/live/athsUQylGhw

Baixe o app Panflix: https://www.panflix.com.br/

Baixe o AppNews Jovem Pan na Google Play
https://bit.ly/2KRm8OJ

Baixe o AppNews Jovem Pan na App Store
https://apple.co/3rSwBdh

Inscreva-se no nosso canal:
https://www.youtube.com/c/jovempannews

Siga o canal “Jovem Pan News” no WhatsApp: https://whatsapp.com/channel/0029VaAxUvrGJP8Fz9QZH93S

Entre no nosso site:
http://jovempan.com.br/

Facebook:
https://www.facebook.com/jovempannews

Siga no Twitter:
https://twitter.com/JovemPanNews

Instagram:
https://www.instagram.com/jovempannews/

TikTok:
https://www.tiktok.com/@jovempannews

#JovemPan
#JornalDaManhã

“I’ve opened my own beauty salon aged 17 – now I’m making thousands”

Posted on February 7, 2024 by Michael G
A 17-year-old eyelash technician has opened her own salon after she launched a business from her bedroom – and quickly made £4k.

Phoebe Taylor qualified last year and has already built up a lengthy client list.

She does the treatments alongside a part-time university degree, a college course AND another job as an embroidery and vinyl specialist.

Busy Phoebe says she often works seven days a week and has earned enough to rent her own treatment room at a local salon on the high street.

She was previously working out of a spare room at her family home in Redcar, North Yorks,. where she racked up profits of £4,000 – enough to rent her salon.

She was inspired after she saw how much the lash tech she visited earned – and thought ‘I’ll give that a go’.

Phoebe said: “It is so rewarding. I don’t like just sitting back and doing nothing.

“I always have to be doing something – people call me ambitious.

“I see all my clients and it’s brilliant. I love it. I’ll be working some nights until 11pm and starting at 8am seven days a week.

“I always wanted to work for myself, that’s where the money is – I love eyelashes and all my beauty. I’m a proper girls’ beauty girl.

“I could see how much my lash tech earns and thought I’d give it a go and I was quite good. So I decided to go through all my training.

“Now I have my own products out, I’ve got a brilliant client base and I’m turning over thousands at 17.

“Some of my friends don’t even know what they want to do when they leave college, they say they don’t know how I do it.”

Phoebe first launched her business in April 2023 aged just 16.

She used a spare box room in her mum’s house to offer eyelash treatments but says her client base built up quickly and too many people were coming in and out of the house.

She moved into a small room being let outside the house and began offering treatments there – and now has her own room at a local beauty studio.

Phoebe says she’s keen to hire staff in the future to offer a wider range of beauty treatments.

And despite some people saying she wouldn’t make any money and would be closed within a month, Phoebe has now made over £4k and says she’s never lost money in the business.

“I started getting my clients in a tiny box room in my mum’s house and then built up my clients and moved into my own beauty room,” said Phoebe.

“Mum’s really proud – she loves it, she goes into her work and tells everyone, it’s the first thing she says to people when they meet me.

“I’ve had so much good feedback, when I first opened people said it was daft but now they can see I’m getting somewhere.

“So far, I’ve made £4k but along with everything else with college and everything it’s hard for me to make more.

“I’d love to just drop everything and do beauty full-time, but I need my qualifications just in case so it’s just a waiting game.

“I am so proud of myself, I’ve had such a hard year and then to look back and go you’ve done that at 16 and 17, it’s brilliant, I can’t believe it.”

Mum Victoria Taylor is proud of her daughter’s entrepreneurial spirit – and has helped her plan and budget to expand in the future.

Phoebe’s business is called Seventeen Lashes and Brows, or @seventeenlashesandbrows on social media.

ACTION CLASSIC MOVIE ONE NIGHT

Posted on February 7, 2024 by Michael G
ACTION CLASSIC MOVIE ONE NIGHT

WordPress Themes by HermesThemes
https://www.hermesthemes.com/members/aff/go/jofransisca?i=25

The Ambassador WordPress Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=2

Arcadia Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=19

Aurora Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=23

Avignon Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=28

Belafonte WordPress Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=12

Bordeaux WordPress Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=15

Boutique Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=26

Caballero WordPress Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=18

Castello WordPress Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=9

Fortuna WordPress Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=13

Gasthaus Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=21

HomeRent WordPress Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=17

Imperial WordPress Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=14

Kingfisher Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=27

Leonardo WordPress Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=10

Majestic WordPress Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=7

Mammoth Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=22

Metropolis WordPress Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=8

Palazio WordPress Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=4

Paramount Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=29

Pinotage WordPress Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=16

Prestige Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=20

Royal Chateau WordPress Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=3

Victoria WordPress Theme
https://www.hermesthemes.com/members/aff/go/jofransisca?i=11

  • Previous
  • 1
  • …
  • 322
  • 323
  • 324
  • 325
  • 326
  • 327
  • 328
  • …
  • 821
  • Next

Recent Posts

  • [TUT] LoRa & LoRaWAN – MikroTik wAP LR8 kit mit The Things Network verbinden [4K | DE]
  • Mercado aguarda Powell e olha Trump, dados e Haddad | MINUTO TOURO DE OURO – 11/02/25
  • Dan Levy Gets Candid About Learning How To Act Differently After Schitt’s Creek: ‘It’s Physically…
  • Building a Rock Shelter & Overnight Stay in Heavy Snow 🏕️⛰️
  • Les milliardaires Elon Musk et Xavier Niel s’insultent copieusement

Categories

  • Android
  • Linux
  • News
  • Open Source
©2025 Open World News | Powered by Superb Themes
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT