SMF For Free Support Forum

SMF For Free Support => Code Requests => Topic started by: NYNick on June 29, 2009, 12:54:18 am



Title: (REQUEST)PM form
Post by: NYNick on June 29, 2009, 12:54:18 am
We all have seen the contact forms that send emails when submitted. I was just curious as to whether or not there can be a way to make a form that sends a PM to a specific user when submitted.


Here is an example email form:
(example is JayB's email form code located here: http://www.smfsupport.com/support/smf_for_free_codes_and_support/code_email_form_on_your_forum-t27477.0.html])

Code:
<html>
<body>
<form action="MAILTO:YOUREMAIL@YOURMAIL.COM" method="post" enctype="text/plain">

<h3>This form send an E-mail to ME</h3>
Your Name:<br>
   <input type="text" name="name"
 value="your full name" size="30">
<br>
 E-Mail:<br>
<input type="text" name="mail"
value="your e-mail account" size="30">
<br>
Your Message:<br>
 <input type="text" name="comment"
value="yourmessage" size="40">
 <br><br>
<input type="submit" value="Send E-Mail">
 <input type="reset" value="Retry">

</form>
</body>
</html>


Title: Re: (REQUEST)PM form
Post by: simply sibyl on June 29, 2009, 01:28:29 am
Where are you planning on putting it?
You could put this in a portal block - it would put a Send Pm link that when clicked on would open up the normal Send Message box.    Change  "Send PM" to whatever you wish the link to say.

Code:
<a href="/index.php?action=pm;sa=send">Send PM</a>