Questions tagged [jmail]

Email Class. Provides a common interface to send email from the Joomla! Platform. Extends \PHPMailer.

Filter by
Sorted by
Tagged with
0 votes
1 answer
146 views

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

The issue Quoting (again) from an old question of mine: I have a form in my Joomla! site. Once completed, the form should send an e-mail but only if some conditions have been met. Not having been ...
Firefighter's user avatar
1 vote
0 answers
61 views

Can you add a different mail option to Joomla e.g with a plugin?

I'm wanting to create a plugin to send e-mails using API methods (e.g. mailgun API or others) Is there a recommended way to do this? Can anyone point me at any good practice / hints & tips ? I'm ...
Kiran Cheema's user avatar
0 votes
1 answer
48 views

emails not sent from controller

I'm using a custom function in my controller to send emails, but the emails are not being sent. My code: function sendestimation() { $jinput = JFactory::getApplication()->input; $email = $...
wbdevlop's user avatar
1 vote
1 answer
307 views

Send mail on execute

I have a page, where people can sign up with name and mail to a waitinglist. When they write the info, the backend add it to my db and I have an admin-page to show the list. But I would like to ...
Daniel Jensen's user avatar
2 votes
1 answer
307 views

Ubuntu Server 16.04 and Joomla Mail with Exchange

I'm a bit stumped been working on trying to fix this issue for a few days now and decided it's finally time for help. Essentially, I setup a new Ubuntu 16.04LTS server used to host my Joomla intranet ...
Mark Anthony's user avatar
2 votes
1 answer
728 views

Adding SMTP header to message sent with JMail

I'm using an e-mail provider (sparkpost) for sending mail from my Joomla! website. Some mails are marketing e-mails others are transactional e-mails. The default e-mail setting in sparkpost is '...
Wim de Ruijter's user avatar
1 vote
1 answer
330 views

sending mail from personnal component = ok with Joomla!3.4.5 but nok with Joomla!3.6.2

For debugging, I tried these lines: jimport('joomla.mail.mail'); $m = new JMail(); $m->SetFrom('[email protected]','myName'); $m->AddReplyTo('[email protected]','myFirstName'); $m->...
Juillet's user avatar
  • 41
5 votes
3 answers
1k views

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

So this is my code where I send same email to 3 different users $mailer->sendMail($emailfrom, $sitename, '[email protected]', $subject, $message, 1); $mailer->sendMail($emailfrom, $sitename, '...
Adam M.'s user avatar
  • 447
1 vote
1 answer
640 views

Can't decode form data as json after jinput->post->getArray() if some file is chosen

I retrieve all the form data with: $jinput = JFactory::getApplication()->input; $formData = new JRegistry($jinput->post->getArray()); then decode it and convert to my custom array with: $...
stckvrw's user avatar
  • 891
0 votes
2 answers
608 views

How can I generate a csv file using query results and email the file as an attachment?

I am trying to email the results of a query as an attached .csv file to my admin email. The code correctly saves the .csv file, but the email is never actually sent. If I put the sendmail code into ...
Dtorr1981's user avatar
  • 532
4 votes
1 answer
258 views

Is there any benefit to setting encoding of mail to base64?

Using the JMailer class, it possible to easily send out a mail using the Joomla API. One of the options I don't know too much about is the encoding part: $mailer = JFactory::getMailer(); $mailer->...
Anriëtte Myburgh's user avatar
0 votes
1 answer
70 views

Assigning an array output in the email body variable

I have been working on this class for days with no luck or results. I'm trying to insert variable in the email body that contains a function that iterates through an array. The variable that has ...
ARutaz's user avatar
  • 1
0 votes
1 answer
148 views

Email Content only showing the HTML tags

I created a script that sends an email to the user when they register. The email code is: $return = JFactory::getMailer()->sendMail($data['mailfrom'], $data['fromname'], $data['email'], $...
Mathesh Raj's user avatar
2 votes
1 answer
1k views

Fatal error: Call to undefined method UsersController::setSubject()

I am getting the following error message on my Joomla 3 site: Fatal error: Call to undefined method UsersController::setSubject() I used JMail::sendMail before I used JUtility::sendMail in ...
Dennis Garcia's user avatar
3 votes
1 answer
1k views

Issue with adding multiple mailer recipients

I've got a form that allows users to send an article to friends. The friends are set in a $recipient array. I can dump the array and it looks fine: var_dump($recipients); // array (size=2) 0 => ...
user101289's user avatar
  • 1,119
0 votes
1 answer
178 views

Send mail subscription in the user language in a component

I'am developping a discussion forum component, in this i need for user subscription when answer is added in a topic by sending a mail to the user language configured in his profile parameters. The ...
user3533235's user avatar
4 votes
1 answer
717 views

Joomla Mailer won't send a second Email

I'm currently working on a big Joomla website created by a professional company, my job is to take some of the forms and update them. I've been using the Joomla Doc most of the time, but I'm still ...
GPierre's user avatar
  • 41
1 vote
1 answer
1k views

Mass emailing - maximum recipients problem

We have a client who would like users to be able to send a mass email to other registered users on the site. We have got this working perfect using Joomla's JMail class which gets all users' email ...
Lodder's user avatar
  • 26.9k
7 votes
1 answer
4k views

SMTP no error but not sending email

I have been battling with this for some time now. I have built a custom component for forms and it uses Joomla's mail functions to send email. I have checked all the data to make sure it is correct ...
Jordan Ramstad's user avatar