icon Learn how to get the most out of Surmunity - read our forum tips here! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Email » formmail question

Email General questions, webmail, mailing lists.

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old April 13th, 2008, 1:19 PM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Apr 2004
5 posts
Gave thanks: 0
Thanked 0 times
formmail question

I was wondering how to have the subject of an email form be the same as a user defined entry that will be included in the mailed text. In specific, I want the user's name to appear as the subject, but also be in the text of the email and only have to be entered in once by the user.

The current action for email is for formmail to use it as "from" in the inbox, but not to post it in the emailed text. Is there a way to have it in both places.

As a side question, is there a way to have the text show apostrophes instead of the code?

Thanks for looking!

Last edited by pRS317; April 13th, 2008 at 1:25 PM.
pRS317 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 24th, 2008, 7:33 AM   #2 (permalink)
﴾͡๏̯͡๏﴿...tweet
Super #1
 
Joined in Dec 2005
5,502 posts
Gave thanks: 136
Thanked 145 times
I don't know if you have solved this already but here is what I have found by looking in the readme:

Quote:
-----------------------------------------------------------------------------

Field: print_config

Version: 1.5 & Up

Description: print_config allows you to specify which of the config
variables you would like to have printed in your e-mail message.
By default, no config fields are printed to your e-mail. This
is because the important form fields, like email, subject, etc.
are included in the header of the message. However some users
have asked for this option so they can have these fields printed
in the body of the message. The config fields that you wish to
have printed should be in the value attribute of your input tag
separated by commas.

Syntax:
If you want to print the email and subject fields in the body of
your message, you would place the following form tag:

<input type=hidden name="print_config" value="email,subject">

-----------------------------------------------------------------------------
I'm assuming you have the most updated script. Anyways based on the information above you should be able to add this snippet of code to your current form and have things working like you wanted:

Code:
<a>Name: </a><input type=text name="subject"><!--You are essentially tricking the user... by having them enter their name but this field will actually be used as the subject and subsequently be printed in the body by way of the next line-->

<input type=hidden name="print_config" value="subject"><!--this line tells formmail.pl to return the subject in the body of the email-->
Unfortunately I don't know the answer to your side question. I hope this works for you and sorry it took so long for a response. I... just don't have anything to do 4am in the morning except sleep... but I can't quiet my mind... so yeah TMI hehe.

ciao
__________________
jam
Brandonnn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On