SMF For Free Support Forum
Signup For Free Forum
July 30, 2010, 05:58:28 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: (REQUEST)PM form  (Read 333 times)
0 Members and 1 Guest are viewing this topic.
NYNick
SMF For Free Member
*
Offline Offline

Posts: 62


View Profile
« 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>
Logged
simply sibyl
Global Moderator
*
Offline Offline

Posts: 13697



View Profile WWW
« Reply #1 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>
Logged



Pages: [1]
  Print  
 
Jump to:  



Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Hostgator Hosting
Page created in 0.237 seconds with 16 queries. (Pretty URLs adds 0.074s, 2q)