2

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 version 1.5.

Any help is appreciated.

0

1 Answer 1

3

setSubject() is a function that belongs to the JMail class, not UsersController.

So assuming you want to set the subject for your email, you can use the following:

$mailer->setSubject('Subject Here');

For more information on Joomla's mail feature, have a read of the following:

http://docs.joomla.org/Sending_email_from_extensions

Hope this helps

1
  • Hi Lodder thank you for the answer I got it now. Nov 11, 2014 at 13:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.