Questions tagged [jmail]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
41 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 ...
user avatar
0 votes
1 answer
45 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 = $...
user avatar
1 vote
1 answer
262 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 ...
user avatar
2 votes
1 answer
291 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 ...
user avatar
2 votes
1 answer
654 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 '...
user avatar
1 vote
1 answer
310 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('myAddressMail@xx.fr','myName'); $m->AddReplyTo('myAddressMail@xx.fr','myFirstName'); $m->...
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, 'adam@malinator.com', $subject, $message, 1); $mailer->sendMail($emailfrom, $sitename, '...
user avatar
  • 437
1 vote
1 answer
610 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: $...
user avatar
  • 891
0 votes
2 answers
472 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 ...
user avatar
  • 542
4 votes
1 answer
234 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->...
user avatar
0 votes
1 answer
65 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 ...
user avatar
  • 1
0 votes
1 answer
144 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'], $...
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 ...
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 => ...
user avatar
  • 1,079
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 ...
user avatar
4 votes
1 answer
711 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 ...
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 ...
user avatar
  • 26.5k
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 ...
user avatar