Using Joomla user/admin email in forms

dnc 13 Oct, 2008
Hi all.

Anyone knows if it is possible to make a form that sends an email to a Joomla user/administrator, rather than sending a "real" email?
If it is, how can it be done?

BR,
Daniel
GreyHead 13 Oct, 2008
Hi Daniel,

I'm not sure that I understand the question . . . whak kind of 'email' of you mean if it's not a 'real email'. Do you want to send a 'Private Message'?

Bob
dnc 14 Oct, 2008
Hello.

Yes, that is exactly it: instead of sending an email towards some email address using SMTP, I was wondering if it is possible to send the form results via a private message to a Joombla's user.

BR,
Daniel
Max_admin 14 Oct, 2008
Hi Daniel,

You may add a hidden field with sender user id and another field for the receiver one too, make another form to list messages per user or even make a chronoconnectivity page.

Cheers,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dnc 14 Oct, 2008
Hi, thank for you answer. I am, however, relatively inexperienced in this. Are you saying that I should add (in my form), in the 'Form Code' tab, in the 'Form HTLM' section, a new field of type=hidden with the user id who I want to receive the form results? But, how does joomla know that it has to send the form results into the Private Messages of that user? Is there a kind of special tag?

Thanks,
Daniel
GreyHead 14 Oct, 2008
Hi Daniel,

It's more complicated than an extra field. You'll need to find the code to send a PM - probably from the administrator/components/com_messages files and amend this to work with your form. But I think that Joomla's built-in PM only works for Admins. It might be easier to look at one of the PMS PlugIns and see if they have an interface that you can use.

Bob
Max_admin 14 Oct, 2008
Hi dnc,

if you are trying to use Joomla's messages then as Bob said this was not for it, I was trying to offer a complete distinct solution, a table to store all users messages and a form to filter sender and receiver, generic solution, simple but will require some coding and it will not be feature rich as any PMS plugins of course.

Cheers,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.