Remember me

Copy of admin email send to other email

5 months 3 weeks ago #1

  • Martin's Avatar
  • Martin
  • Posts: 295
Hello,
please see the attached picture.

Thank you.
Attachments:

5 months 3 weeks ago #2

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
Hello,
Thank you for contacting us

This won't work because the data tags are generated after sending, you need to add the address manually

Regards,
Vyacheslav, Balbooa.com

5 months 3 weeks ago #3

  • Martin's Avatar
  • Martin
  • Posts: 295
Damn. But theoretically is possible to add some php code which take the email from the field ID 31 and send copy of the email?

5 months 3 weeks ago #4

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
Unfortunately there is no such option

Best Regards,
Vyacheslav, Balbooa Support Team

5 months 3 weeks ago #5

  • Martin's Avatar
  • Martin
  • Posts: 295
Please see the attached picture.
Attachments:

5 months 3 weeks ago #6

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
Example
$mailer = JFactory::getMailer();
$mailer->sendMail('mailfrom', 'fromname', 'recipients', 'subject', 'body');
More details in the documentation (all parameters this function accepts)
docs.joomla.org/API16:JMail/sendMail

5 months 3 weeks ago #7

  • Martin's Avatar
  • Martin
  • Posts: 295
Perfect, thank you very much.

5 months 3 weeks ago #8

  • Martin's Avatar
  • Martin
  • Posts: 295
One last question how can I choose in this php code that it will send admin email?
I tryed your code but it send customer email.



Also I made a testing form with two email but the notification is going only on the second input email: m.ddpneu.cz/registrace

How can I make it to work both?


Thank you.

5 months 2 weeks ago #9

  • Martin's Avatar
  • Martin
  • Posts: 295
I found out. You donĀ“t need to answer on my previous question.

Thank you very much for your help.

5 months 2 weeks ago #10

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
Let us know if you need more assistance!

Best Regards,
Vyacheslav, Balbooa Support Team
Powered by Kunena Forum