Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1


Howto test email that's being send out? (local) 8 years 2 months ago #16501

  • Bluefox
  • Bluefox's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 4523
  • Thank you received: 493
as email is an important part you probably like to test it and to see what and when email is being send out.

When you have a local version of Joomla (by using wampserver) then you can test very easy by installing a program like Smtp4dev . When you run smtp4dev it will run and will catch the email that's being send out locally.

for example:
- when you have Joomla running offline
- have the mailer plugin enabled
- you can create a new event
- see within smtp4dev the email that's being send
the program will try to view the email within your mail program. sometimes it will give an error but then you can retry and it will show the email.
(won't respond to PM)
running: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0-beta7 + PHP 7.3

Please Log in or Create an account to join the conversation.

Last edit: by Bluefox. Reason: changed title

[JEM3] - Howto test email that's being send out? (local) 8 years 2 months ago #16507

  • Hoffi
  • Hoffi's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 2279
  • Thank you received: 449
Alternative: ;)

Because I'm using xampp as my local web server I also use contained mail tool Mercury. After starting it (or configure as service) in xampp control panel you need to configure it. Some corner cases are:
  • in MercuryS SMTP Server - Connection control I added as allowed connection
  • in Manage local users... I added a mailbox for e.g. user Hoffi (that's me, so please choose a different name! ;) )
  • and in Aliases... I maped all email adresses used by my Joomla sites to the mailbox (e.g. hoffi@localhost)
  • finally you need to configure your mail client to get all the mails. In my case I created an IMAP account for hoffi@localhost with IMAP and SMTP server localhost, user name hoffi and password as choosen in Mercury. But you can also use POP3, Mercury supports both.
Now you get all emails sent by your site(s) to all users you configured an alias in Mercury where the TO field shows the original recipient so you know who would normally get this email. Together with JEM mailer's configuration possibilities and a lot of trest users you get a big adventure game - for free! :woohoo:

Please note: Because my machine has no connection to the real internet I can do such mapping without any problems. If your machine is connected to internet you should be more careful and e.g. only use and map internal email addresses (...@localhost). Also you should respect privacy and don't read anything originally written to other real persons - but that's a matter of course you already know.

Oh, one important thing I forgot (which is also important for Bluefox' way I think)
Warning: Spoiler!
Otherwise PHP will not contact Mercury.

btw: That's not only for JEM3. It also works with JEM2 or - loosing a lot of fun - without JEM.
Pessimists are optimists with experience!
The following user(s) said Thank You: jojo12, Bluefox

Please Log in or Create an account to join the conversation.

Last edit: by Hoffi.
  • Page:
  • 1
Time to create page: 0.441 seconds


If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......