Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
8 votes
Accepted

Don't show other recipients when sending multiple emails with JMail

As you can see on the API reference page, the sendMail() function has a $bcc parameter: sendMail(string $from, string $fromName, mixed $recipient, string $subject, string $body, boolean $mode = ...
Lodder's user avatar
  • 26.9k
6 votes
Accepted

index.php is sending out a suspicious number of emails

A few steps I take when troubleshooting these types of things for new clients when they’ve been hacked: You can add your first site free to https:://mysites.guru which will then run an audit on your ...
Patrick Jackson's user avatar
4 votes

How to capture bounce email in joomla

One way to disallow bogus e-mails is to validate them during registration process. There are quite few extensions and guides available by simple Google search 'joomla validate email', such as Pre ...
Mikan's user avatar
  • 3,007
4 votes

Don't show other recipients when sending multiple emails with JMail

There are 2 solutions you can try of the following. By avoiding the mailer instance : $mailerand using the following code - JFactory::getMailer() JFactory::getMailer()->sendMail($emailfrom, $...
Liz.'s user avatar
  • 1,385
4 votes

Mass mail 50k + users, solution?

The most common solution is AcyMailing + a professional SMTP service. AcyMailing is the best mailing extension for Joomla. My favorites SMTP services are SendGrid and Postmark. I also implement ...
Anibal's user avatar
  • 7,445
4 votes
Accepted

You must provide at least one recipient email address (when saving Global Configuration)

Hmm, I think I sorted out from where this notice is coming from. It looks like responsible for this is the latest version of Akeeba Admin Tools Pro (maybe it's also in the free core version don't know ...
FFrewin's user avatar
  • 19.7k
3 votes
Accepted

Adding SMTP header to message sent with JMail

Ah, I've found it: AddCustomHeader(). Output looks OK like this: $body = "Some content"; $mail = JFactory::getMailer(); $mail->addRecipient("[email protected]"); $mail->setBody($body); $...
Wim de Ruijter's user avatar
3 votes

Cannot send emails after migrating hosted joomla to localhost

You need a valid smtp server account in order to be able to send emails through SMTP. Your configuration settings show: SMTP Host = localhost SMTP User = ''; // none, empty SMTP Password = '...
FFrewin's user avatar
  • 19.7k
3 votes
Accepted

Workflow question: How to fix missing com_messages text?

I've got the very same problem. This currently, i.e. November 2022, is a bug in Joomla 4. Update There is a nicer workaround to the one I posted initially. Updating my answer to show both. Workaround ...
phunsoft's user avatar
  • 230
2 votes

How to Modify Joomla Registration Confirmation Email

The text is the HTML of the email. You can have HTML code in that text formatted the way you want. There is no other place where you can actually change the HTML of that email. Update: Open the ...
itoctopus's user avatar
  • 3,226
2 votes

Mass mail 50k + users, solution?

The Joomla! CMS is not a mass mailing utility and should not be used as such. Though there is a Mass Mail component in the Joomla! core, Arvind Chauhan of JoomlaArt points out that "It’s not ethical [...
Michael Yaeger's user avatar
2 votes
Accepted

Joomla Mass Mails not working, SMTP settings ok

Found the problem, the server had the fsockopen() function disabled for security, which PHPMailer 2.1.4 (included with Joomla 2.5) uses. The issue was not present on Joomla 3.5 sites, as these use ...
Foxocube's user avatar
  • 151
2 votes

SMTP connect() failed, Cannot send mails

Here are the official Joomla! Docs for anyone else looking in the future: https://docs.joomla.org/How_do_I_use_Gmail_as_my_mail_server%3F How do I use Gmail as my mail server? If you have a working ...
Eoin's user avatar
  • 1,944
2 votes
Accepted

When calling sendMail, how do I get the error if the mail isn't sent?

Firstly, just on a side note, please remove the & before JFactory There was a pull request submitted on Github a year ago that allowed Joomla to catch the errors being throw by PHPMailer: https:/...
Lodder's user avatar
  • 26.9k
2 votes

Variables do not work in email form

Your where clauses are incorrect. You don't need to use the table name, only the column So replace the clauses as shown below: Query 1: $query1->where($db->quoteName('#__hikers.link_id')." = "...
Lodder's user avatar
  • 26.9k
2 votes
Accepted

getMailer gives "Failed to start application" exception, how do I fix it?

I found the answer to this question myself, but I have to thank mickmackusa for pointing me in the right direction by linking several debug instructions. Since other people might encounter my same ...
Firefighter's user avatar
2 votes

How do I setup Joomla to use Postfix on a local machine?

You might look into mail catch solutions like: Mailhog https://github.com/mailhog/MailHog MailCatcher https://github.com/sj26/mailcatcher Mailpit https://github.com/axllent/mailpit From that list I ...
pe7er's user avatar
  • 2,058
2 votes

Send Test Mail fails on J4.4.2: "Could not execute: /usr/sbin/sendmail", similar problem with phpmail

Something did change in Joomla's SMTP logic or with my Ionos host account. Finally fixed by using mailer = SMTP option. This requires finding out the host's SMTP server address etc. Final info used ...
Martin Ewing's user avatar
1 vote
Accepted

Ubuntu Server 16.04 and Joomla Mail with Exchange

I found the resolution. It turns out my inherited exchange server was configured incorrectly. For those of you who may experience the same issue, here's what I did to fix it in exchange 2016. In ...
Mark Anthony's user avatar
1 vote

Override Joomla mailer settings in case of using secondary mailserver as backup

The properties that you're using do not exist (I don't know where you're getting them from). You will need to use the function useSmtp in the JMail class in order to set the host, the port, etc... See:...
itoctopus's user avatar
  • 3,226
1 vote

SMTP connect() failed, Cannot send mails

IMAP/SMTP do not work be default with Gmail accounts. Probably need to enable less secure apps: https://support.google.com/accounts/answer/6010255?hl=en
David Hayes's user avatar
1 vote

Cannot send emails after migrating hosted joomla to localhost

I also noticed your password and username were empty in the configurations you posted: essentially, you do not actually have SMTP and as Michael's warning states, your previous host was actually just ...
Faye's user avatar
  • 1,348
1 vote

Cannot send emails after migrating hosted joomla to localhost

Option 1: In order for you to use the SMTP option in Joomla! on your local installation, you will need an SMTP service installed on that PC listening to port 25 (or whatever port you assign). If you ...
Michael Yaeger's user avatar
1 vote

Joomla Mass Mails not working, SMTP settings ok

There 2 things to check: first of all is email count registration is completed - some services requests additional data filled at account before it can send email (spent 5 hours to find this issue ...
Alexandr's user avatar
  • 1,130
1 vote

How do I make the registration verification email send all user details?

You must edit file /components/com_user/models/registration.php line 549 $emailBodyAdmin = JText::sprintf( 'COM_USERS_EMAIL_REGISTERED_NOTIFICATION_TO_ADMIN_BODY', $data['name'], $data['...
José Sánchez Martín's user avatar
1 vote

Add html to transactional email

There were debates arround Adding HTML support to Joomla Notification email for com_user a while ago and even there's a (closed/cancelled) pull request for that. If you're willing to hack the core you ...
webchun's user avatar
  • 2,418
1 vote

Don't show other recipients when sending multiple emails with JMail

Joomla Mailer extends the PHPMailer, so you can add this line of code after the send() $mailer->clearAllRecipients();
Stergios Zg.'s user avatar
1 vote

Email doesn't get sent if it includes a specific URL

Use Acymailing spam test option. The test will give you some clues about the rejected URL. I suggest also to use this service: https://www.mail-tester.com/ and againg check the report.
Piero Marsilio's user avatar
1 vote

Email doesn't get sent if it includes a specific URL

Not an answer but some suggestions: Is there something unusual about that specific URL that would be causing acymailing (or some other component) to have a problem sending it? Maybe contains spaces ...
geepers's user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible