Just check thru the view source from compose form for logged in user.
Similar way I created the form to be used in other component with all the required parameter to pass such as user id, username, from name, from email, message, etc
Below you can check the form
[code:1]
<form name="sendeform" id="sendeform" onsubmit="return formValidator()" action="
domain.com/index.php?option=com_uddeim&task=publicsave&Itemid=0
" method="post">
<input type="hidden" name="sendeform_showallusers" value="" />
<table width="100%" cellspacing="4" cellpadding="2">
<tr>
<td width="27%" height="47" align="left" valign="top">
<input type="text" name="from_name" id="from_name" value="Your name" onClick="this.value=''" />
</td>
<td width="27%" align="left" valign="top">
<input type="text" name="from_email" id="from_email" value="Your email" onClick="this.value=''"/>
</td>
<td width="46%" rowspan="2" align="center" valign="middle"> </td>
</tr>
<tr>
<td align="left" valign="top"> <br /> <br /> <input type="submit" name="reply" class="button" value="Send SMS/email" /></td>
<td valign="top" align="left"><textarea name="pmessage" class="inputbox" rows="4" cols="20" onClick="this.value=''">Test message here</textarea>
<input type="hidden" name="msg_from" value="publicprofile" /></td>
</tr>
<input type="hidden" name="to_id" value="66" />
<input type="hidden" name="to_name" id="input_to_name" value="testing" />
<span id="city" style="visibility:hidden;">
<input type="text" name="city" value="" />
</span>
</table>
</form>[/code:1]
But this doesnt seems working, then I checked public.php and changed runame and recip instead of GET to POST method. But still Im not able to send the message successfully.
Please advice.
Post edited by: mrocks, at: 2008/10/30 16:12