Anti-Spam measures on feedback form

Originally posted using Google Groups but it has not appeared
here yet:
Hi there,
I have seen many forums use a system that asks you to enter a
code word
that is displayed as an image to help prevent automatic
submissions. I
am having problems with a message system where it seems
someone has
automated a spam bot. Every weekend the same messages appear
in the
table.
In order to research this I need to know what these systems
are called.
Can anyone point me in the right direction?
Cheers,
Dooza

David Powers wrote:
> Dooza wrote:
>
>> In order to research this I need to know what these
systems are called.
>> Can anyone point me in the right direction?
>
>
> captcha is the word you're looking for. Google it.
>
Excellent! Thank you
Steve

Similar Messages

  • Anti spam codes for website forms are not being accepted on my imac or iPad

    anti spam codes for website forms are not being accepted on my imac or iPad

    In Safari go to preferences click on privacy and on Block Cookies tick the never box

  • Making a Contact Forms Anti-Spam Work

    I can't get this anti-spam .php code to work, Important Note: The coding worked before I added the anti-spam label/.php coding. Any obvious faults in the coding?
    HTML:
    <link rel="stylesheet" href="css/site-feedback-part-two.php" type="text/css" media="screen" />
        <form method="post" action="site-feedback-part-two.php">
       <label>Name</label>
        <input name="name" placeholder="Type Here">
        <label>Email *</label>
        <input name="email" type="email" placeholder="Type Here">
        <label>Suggested Feedback *</label>
        <textarea name="message" placeholder="Type Here"></textarea>
        <label>What is (20+5)/5? (Anti-spam) *</label>
      <input name="human" placeholder="Type Here">
        <div><input id="submit" name="submit" type="submit" value="Submit"></div>
            </form>
    PHP:
    <?php
        $name = $_POST['name'];
        $email = $_POST['email'];
        $message = $_POST['message'];
        $from = 'From: Contact Form';
        $to = '[email protected]';
        $subject = 'Site Feedback';
        $body = "From: $name\n E-Mail: $email\n Message:\n $message";
    if ($_POST['submit']) {
    if (&& $human == '5') {
        if (mail ($to, $subject, $body, $from)) {
            echo '<p>Your message has been sent!</p>';
        } else {
            echo '<p>Something went wrong, go back and try again!</p>';
      } else {
      ($_POST['submit'] && $human != '5') {
        echo '<p>You answered the anti-spam question incorrectly! This means that your message has not been sent</p>';
    ?>
    Thanks for the help.

    <?php
    $name = $_POST['name'];
    $email = $_POST['email'];
    $message = $_POST['message'];
    $from = 'From: Contact Form';
    $to = '[email protected]';
    $subject = 'Site Feedback';
    $body = "From: $name\n E-Mail: $email\n Message:\n $message";
    if(isset($_POST['submit'])) {
    if($_POST['human'] != 5) {
    echo '<p>You answered the anti-spam question incorrectly! This means that your message has not been sent</p>';
    elseif ($_POST['human'] == 5) {
    mail($to, $subject, $body, $from);
    echo '<p>Your message has been sent!</p>';
    else {
    echo '<p>Something went wrong, go back and try again!</p>';
    ?>

  • Nation members - share your feedback on IronPort Anti-Spam!

    IronPort Anti-Spam customers,
    On a monthly basis, we like to collect information on customer satisfaction levels with IronPort’s spam defenses. If possible, please click on the below link and fill out the brief, IronPort survey.
    Benefits include:
    • All respondents are entered into a raffle to receive $100 in cash
    • This survey shouldn’t take more than 1 minute to fill out.
    • The feedback you provide goes a long way in helping us understand customer needs and concerns.
    Please be sure to complete this brief survey by no later than Thursday, June 7th.
    Please DO NOT complete this survey if you are running Brightmail Anti-Spam.
    Thanks in advance!
    Dave Mayer, IronPort Anti-Spam Product Manager
    https://www.surveymonkey.com/s.aspx?sm=w7b1FUslBFlsAPcaSLPTlw%3d%3d

    Who is Dave Mayer? Is this a real invitation from IronPort?
    Hi Pat,
    Dave M. is a product manager here at IronPort, and yes, the survey is real.
    Thanks!
    Garrett (IronPort Technical Publications)

  • Help with creating anti-spam on site

    I could do with a bit of help
    I'm trying to create a honeypot anti-spam form for a friend's website, but I can't get it to work.
    I've put in a regular and time honeypot
    On the form page
    <p class="end-para">Simply fill in the form below, including all the required details and a member of our friendly and experienced customer service team will be happy to call you back at your chosen time.</p>
    <form method="post" action="callback.php">
    <fieldset class="site-forms">
    <p><label class="contact-fields" for="name">Your Name:</label>
    <input type="text" class="login" name="name" id="name"/></p>
                        <li class="robotic" id="pot">
      <label for="robotest">If you're human leave this blank:</label>
      <input name="robotest" id="robotest" class="robotest" type="text" />
    </li>
    <p><label class="contact-fields" for="email">Email Address:</label>
    <input type="text" class="login" name="email" id="email"/></p>
    <p><label class="contact-fields" for="telephone">Telephone:</label>
    <input type="text" class="login" name="telephone" id="telephone"/></p>
                <p> <input type="hidden" name="loadtime" value="time();" /></p>
            <p>
    </fieldset>
    <fieldset class="site-forms">
    <p><label class="contact-fields" for="time">When do you want us to call?</label></p>
    <input type="radio" name="best_time" value="Call me in the daytime (9am - 5pm)"> Call me in the daytime (9am - 5pm)<br>
    <input type="radio" name="best_time" value="Call me in the evening (5pm - 9pm)" checked> Call me in the evening (5pm - 9pm)<br>
    <input type="radio" name="best_time" value="Call anytime"> Call me anytime<br>
    <input type="radio" name="best_time" value="I would prefer to be emailed"> I would prefer to be emailed<br>
    <p class="form-notes"><small><strong>Note:</strong> We will endeavour to call you at the time you selected and within 1 business day.</small></p>
    And on the next page
    <?php
      $name = $_REQUEST['name'] ;
      $robotest = $_POST['robotest'];
      $email = $_REQUEST['email'] ;
      $telephone = $_REQUEST['telephone'] ;
      $loadtime = $_POST['loadtime'];
      $best_time = $_REQUEST['best_time'] ;
    if($_POST){
      $robotest = $_POST['robotest'];
      if($robotest)
      $error = "Sayonara Mr Roboto.";
      else{
      $success = "Your message was sent!";
      if($success)
      echo '<div class="msg success">'.$success.'</div>';
      $loadtime = $_POST['loadtime'];
    $totaltime = time() - $loadtime;
    if($totaltime < 5)
       echo("You took less than 5 seconds to complete the form, blah blah blah");
       exit;
      if (!isset($_REQUEST['email'])) {
        header( "Location: http://www.windowfixuk.co.uk" );
      elseif (empty($email) || empty($telephone)) {
    Can anyone suggest what is incorrect or ways to improve the set up?
    Thanks

    Dowifi wrote:
    Not sure how to submit as a robot to be honest.
    It just doesn't appear to be working though. Spam still gets through
    Test by changing your 'hidden' form field to be viewable as a 'text' input field:
    <input type="text" name="loadtime" value="time();" />
    If you type something in the field and the information is sent to your email address then it's NOT working.
    As mentioned in my previous post I would just be using the code below to check to see if the form field is empty or not:
    if(!empty ($_POST['loadtime'])) {
    exit;

  • Best way to stop spam being entered by form

    Hi there All,
    Sorry this is a bit of a general question and I dare say
    there is no cut and
    dried answer.
    I produce sites for automotive dealers using classic .asp.
    Most of, not all
    sites have feedback forms for which I've been using client
    side validation.
    But the dealers have been getting increasing amounts of spam
    which looks
    like someone has sat and entered via the form. IE. All the
    mandatory fields
    are entered and comply with the validation.
    I've recently installed a html to email server component on
    our server call
    jMail
    http://www.dimac.net/default2.asp?M=Products/MenuCOM.asp&P=Products/w3JMail/start.htm),
    the upshot being I can now write some sort of server side
    validation. The
    problem is I can't think of a way to validate against
    someone, or something,
    inputting what appears to valid entries and then a load of
    spam.... if you
    see what I mean.
    I suspect the people spamming my customers are actually
    robots, that have
    analysed how my feedback forms work and which entries must be
    filled in and
    with what. In which case the only way I can see of guarding
    against it is to
    use that "twisted numbers and letters" thing, where you get a
    distorted
    series of characters which must be entered correctly in order
    for the forms
    content to be accepted.
    So, 2 questions really, is that the only way to do it?
    And,
    Would anybody know where I could get some info on how to do
    it please?
    Major sized thanks in advance.
    @ndyB

    Thanks for the info Kim.
    @ndyB
    "Kim" <[email protected]> wrote in message
    news:eutjth$g41$[email protected]..
    > Hi Andy,
    >
    > This might give you an idea
    >
    http://www.geekministry.com/blog_article.php?id=93
    >
    > The zip wont work for you as you're using asp but you'll
    get the idea...
    > or google captcha
    >
    > Kim
    >
    > @ndyB skrev:
    >> Hi there All,
    >>
    >> Sorry this is a bit of a general question and I dare
    say there is no cut
    >> and dried answer.
    >>
    >> I produce sites for automotive dealers using classic
    .asp. Most of, not
    >> all sites have feedback forms for which I've been
    using client side
    >> validation. But the dealers have been getting
    increasing amounts of spam
    >> which looks like someone has sat and entered via the
    form. IE. All the
    >> mandatory fields are entered and comply with the
    validation.
    >>
    >> I've recently installed a html to email server
    component on our server
    >> call jMail
    >> (
    http://www.dimac.net/default2.asp?M=Products/MenuCOM.asp&P=Products/w3JMail/start.htm),
    >> the upshot being I can now write some sort of server
    side validation. The
    >> problem is I can't think of a way to validate
    against someone, or
    >> something, inputting what appears to valid entries
    and then a load of
    >> spam.... if you see what I mean.
    >>
    >> I suspect the people spamming my customers are
    actually robots, that have
    >> analysed how my feedback forms work and which
    entries must be filled in
    >> and with what. In which case the only way I can see
    of guarding against
    >> it is to use that "twisted numbers and letters"
    thing, where you get a
    >> distorted series of characters which must be entered
    correctly in order
    >> for the forms content to be accepted.
    >>
    >> So, 2 questions really, is that the only way to do
    it?
    >> And,
    >> Would anybody know where I could get some info on
    how to do it please?
    >>
    >> Major sized thanks in advance.
    >>
    >> @ndyB
    >>
    >
    > --
    > Kim
    > ---------------------------
    >
    http://www.geekministry.com

  • Anti-spam / Outbreak scan size

    Hi everybody,
    I'm looking for advice to determine the maximum message size for Anti-spam and Outbreak scan.
    I am currently using a scan size of 1M for Anti-spam and I will add Outbreak filter (more and more spam exceed my spam limit).
    My equipment is an ESA C370 with AsyncOS 8.0.1.
    I found in the documentation the following lines :
    Always scan messages smaller than—The recommended value is 512 Kb or less [...] Cisco advises not to exceed 3 MB for the always scan message size.
    Never scan messages larger than—The recommended value is 1024 Kb or less. [...] Cisco advises not to exceed 10 MB for the never scan message size.
    For messages larger than the always scan size or smaller than the never scan size, a limited and faster scan is performed.
    I didn't find any sentence about recommanded scan size for Outbreak...
    Thank you for your help.
    Best regards

    This is a little older information - but, still would hold true --->
    Currently, on the E-mail Security Appliance, the maximum scan size for IPAS is limited to 128K by default (the original default was 256K so many older appliance might have this set as the limit).  Messages larger than this limit are not scanned by IPAS.  Recently, Cisco IronPort did some extensive performance and efficacy testing on an average message load to determine the impact of increase scanning size on the E-mail Security Appliance.
    The tests show that when raising the maximum scan size for IPAS the increase in efficacy is significant: a 256K maximum scan size yields a 24% decrease in missed spam, and a 512K maximum scan size yields a decrease of 35% in missed spam.  However, there is a potential performance impact of 24% when going from a maximum scan size of 128K to 512K (depending on the type of hardware platform).  The impact of going from a maximum scan size of 128K to 256K is 12%.  See summary below:
                 128K -> 256K scan size limit:
                         12% possible performance reduction, 24% reduction in missed spam
                 128K -> 512K scan size limit:
                         24% possible performance reduction, 35% reduction in missed spam
    Below table show the performance results of a medium mailbox with a 50:50 ratio of spam and ham. MPS is messages per second.
    128K (Baseline)
    MPS
    256K/
    MPS
    % diff with baseline
    512K/ MPS
    % diff with baseline
    768K/ MPS
    % diff with baseline
    1M/ MPS
    % diff with baseline
    C100
    3.45
    3.1
    10.14%
    2.93
    15.07%
    2.82
    18.26%
    2.75
    20.29%
    C150
    5.25
    4.72
    10.10%
    4.4
    16.19%
    4.4
    16.19%
    4.27
    18.67%
    C160
    12.5
    11.1
    11.20%
    10.4
    16.80%
    9.99
    20.08%
    9.79
    21.68%
    C300
    4.42
    4.08
    7.69%
    3.87
    12.44%
    3.74
    15.38%
    3.67
    16.97%
    C350
    11.8
    10.5
    11.02%
    9.94
    15.76%
    9.55
    19.07%
    9.39
    20.42%
    C360
    30
    27
    10.00%
    25
    16.67%
    24
    20.00%
    24
    20.00%
    C370
    29
    26
    10.34%
    23
    20.69%
    22
    24.14%
    22
    24.14%
    C600
    8.8
    7.86
    10.68%
    7.46
    15.23%
    7.17
    18.52%
    7.06
    19.77%
    C650
    25
    22
    12.00%
    20
    20.00%
    19
    24.00%
    19
    24.00%
    C660
    43
    38
    11.63%
    35
    18.60%
    33
    23.26%
    33
    23.26%
    X1000
    11.3
    10.1
    10.62%
    9.61
    14.96%
    9.27
    17.96%
    9.12
    19.29%
    X1050
    45
    40
    11.11%
    37
    17.78%
    35
    22.22%
    35
    22.22%
    X1060
    51
    45
    11.76%
    41
    19.61%
    40
    21.57%
    39
    23.53%
    X1070
    59
    52
    11.86%
    48
    18.64%
    46
    22.03%
    45
    23.73%
    Recommendation and Performance measure:
    The Cisco IronPort Security Applications Group recommends that all customers review their current stability and performance (see below for some tips on how to measure this) to determine if they can safely raise the maximum scan size for messages sent to IPAS (IronPort Anti-Spam Engine).  It is also recommend that you take a phased approach to the increase.  If maximum scan size for IPAS on your E-mail Security Appliance is currently set to 128K (131072), then first raise the maximum scan size to 256K (262144) and re-evaluate your stability and performance.  If everything is stable then increase the scan size limit to 512K (524288).
    Performance of an E-mail Security Appliance depends on the set of features enabled on the appliance such as anti-spam, anti-virus, message filters and content filters along with the load of the appliance based on the no. of msgs/sec scanned and maximum size of a message allowed.
    The most effective way to monitor system capacity is to track overall volume, messages in the work queue and incidents of Resource Conservation Mode. The System Capacity page under Monitor > System Capacity provides a detailed representation of the system load, including messages in the work queue, average time spent in the work queue, incoming and outgoing messages (volume, size, and number), overall CPU usage, CPU usage by function, and memory page swapping information.
    The System Capacity - system load report shows the overall CPU usage on your IronPort appliance. AsyncOS is optimized to use idle CPU resources to improve message throughput. High CPU usage may not indicate a system capacity problem. If the high CPU usage is coupled with consistent, high-volume memory page swapping, you may have a capacity problem.
    This page also shows a graph that displays the amount of CPU used by different functions, including mail processing, spam and virus engines, reporting, and quarantines. The CPU-by-function graph is a good indicator of which areas of the product use the most resources on your system. If you need to optimize your appliance, this graph can help you determine which functions may need to be tuned or disabled. The memory page swapping graph shows how frequently the system must page to disk.
    If stability and performance does drop below acceptable limits, you might try a smaller increase.  Any amount greater than the current setting will help efficacy and reduce missed spam.  For instance, if 512K proves to be too much of a burden on your E-mail Security Appliance you might try a value of 384K (393216).
    Hope this helps!
    -Robert
    (*If you have received the answer to your original question, and found this helpful/correct - please mark the question as answered, and be sure to leave a rating to reflect!)

  • Exchange Server 2010 Anti-Spam Update Issue

    Hello,
    We are not receiving bi-weekly anti-spam updates via Windows Update. The last update that we received was on 1/20/2015 with v3.3.14519.472
    Does anyone has the same issue and possibly fix for it?
    Sierra

    Hi,
    Based on my research, the Microsoft Exchange Server Standard Anti-spam Filter Updates v3.3.14519.472 is the latest update for Exchange Standard Edition.
    http://catalog.update.microsoft.com/v7/site/Rss.aspx?q=exchange+server+2007+anti-spam&lang=en
    If there are any issues related to Anti-Spam setting, I recommenf the following documents:
    1. To avoid spoof, I suggest configure SPF record.
    http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/
    2. Please make sure you didn't configure open relay. Provide a related KB for your reference, even though it applies to SBS.
    How to block open SMTP relaying and clean up Exchange Server SMTP queues in Windows Small Business Server
    http://support.microsoft.com/kb/324958
    3. Share a useful article for your reference to configure the Anti-Spam.
    https://technet.microsoft.com/en-us/library/aa997242.aspx?f=255&MSPPError=-2147217396
    Best Regards.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Lynn-Li
    TechNet Community Support

  • Anti-spam and anti-virus suggestions

    I would like to ask and get some feedback about the free anti-spam and anti-virus tools which integrate with the Java Messaging System from Sun. I would also like to express my concern with SpamAssassin since I suspect it uses too much system resources. But, anyway, if it blocks the spam with a higher percentage compared to other solution(s), then I would forget about how much resource it requires as long as it is in reasonable amounts.
    Please send me your comments,
    Thanks!

    Hi,
    Following on from what Jay said, SpamAssassin can indeed use a lot of resources if badly managed. This includes using large numbers of rulesets especially if they add very little to the overall score, and simpler things such as not using a local DNS cache. SpamAssassin if tuned well and if your system has a reasonable amount of RAM (2GB or more) can work just fine.
    For example I ran x86 dual-CPU systems (less powerful then say an x4200) which were able to comfortably Spam (SpamAssassin) and Virus (Sophos Anti-virus) process 100-150K emails/day.
    At the end of the day you get what you pay for. I tried out the Sophos Anti-Spam/Virus solution (Puremessage which has its own messaging server channel from memory) and found it to be very competent & slightly more efficient then SpamAssassin. In this case the cost was the limiting factor.
    Regards,
    Shane.

  • HT203200 Have deleted temp video, configured anti spam and firewall, and one specific video keeps giving me an error. Just tried downloading a previous episode of the show and it worked just fine. Always sunny in philly "Charlie rules the world" anyone el

    Have deleted temp video, configured anti spam and firewall, and one specific video keeps giving me an error. Just tried downloading a previous episode of the show and it worked just fine. Always sunny in philly "Charlie rules the world" anyone else??

    Have deleted temp video, configured anti spam and firewall, and one specific video keeps giving me an error. Just tried downloading a previous episode of the show and it worked just fine. Always sunny in philly "Charlie rules the world" anyone else??

  • Help with Dreamweaver CS4 feedback form

    I am trying to get my first feedback form working properly.
    There are two problems:
    1. I can't click in the boxes to enter info. The only way to access them is to tab through.
    2. When I submit, it brings up a second blank feedback page in Safari. In Firefox, it just loops back to the empty feedback page.
    Any help would be appreciated as I running out of hair to pull out.
    Here is the php code:
    <?php /*
    // ------------- CONFIGURABLE SECTION ------------------------
    $mailto = '[email protected]' ;
    $subject = "Feedback Form" ;
    $formurl = "http://www.printit7.com/feedback.html" ;
    $thankyouurl = "http://www.printit7.com/thankyou.html" ;
    $errorurl = "http://www.printit7.com/error.html" ;
    $email_is_required = 1;
    $name_is_required = 1;
    $comments_is_required = 0;
    $uself = 0;
    $forcelf = 0;
    $use_envsender = 0;
    $use_sendmailfrom = 0;
    $smtp_server_win = '' ;
    $use_webmaster_email_for_from = 0;
    $use_utf8 = 1;
    $my_recaptcha_private_key = '' ;
    // -------------------- END OF CONFIGURABLE SECTION ---------------
    define( 'MAX_LINE_LENGTH', 998 );
    $headersep = $uself ? "\n" : "\r\n" ;
    $content_nl = $forcelf ? "\n" : (defined('PHP_EOL') ? PHP_EOL : "\n") ;
    $content_type = $use_utf8 ? 'Content-Type: text/plain; charset="utf-8"' : 'Content-Type: text/plain; charset="iso-8859-1"' ;
    if ($use_sendmailfrom) {
              ini_set( 'sendmail_from', $mailto );
    if (strlen($smtp_server_win)) {
              ini_set( 'SMTP', $smtp_server_win );
    $envsender = "-f$mailto" ;
    $fullname = isset($_POST['fullname']) ? $_POST['fullname'] : $_POST['name'] ;
    $email = $_POST['email'] ;
    $comments = $_POST['comments'] ;
    $http_referrer = getenv( "HTTP_REFERER" );
    if (!isset($_POST['email'])) {
              header( "Location: $formurl" );
              exit ;
    if (($email_is_required && (empty($email) || !preg_match('/@/', $email))) || ($name_is_required && empty($fullname)) || ($comments_is_required && empty($comments))) {
              header( "Location: $errorurl" );
              exit ;
    if ( preg_match( "/[\r\n]/", $fullname ) || preg_match( "/[\r\n]/", $email ) ) {
              header( "Location: $errorurl" );
              exit ;
    if (strlen( $my_recaptcha_private_key )) {
              $resp = recaptcha_check_answer ( $my_recaptcha_private_key, $_SERVER['REMOTE_ADDR'], $_POST['recaptcha_challenge_field'], $_POST['recaptcha_response_field'] );
              if (!$resp->is_valid) {
                        header( "Location: $errorurl" );
                        exit ;
    if (empty($email)) {
              $email = $mailto ;
    $fromemail = $use_webmaster_email_for_from ? $mailto : $email ;
    if (function_exists( 'get_magic_quotes_gpc' ) && get_magic_quotes_gpc()) {
              $comments = stripslashes( $comments );
    $messageproper =
              "This message was sent from:" . $content_nl .
              "$http_referrer" . $content_nl .
              "------------------------------------------------------------" . $content_nl .
              "Name of sender: $fullname" . $content_nl .
              "Email of sender: $email" . $content_nl .
              "------------------------- COMMENTS -------------------------" . $content_nl . $content_nl .
              wordwrap( $comments, MAX_LINE_LENGTH, $content_nl, true ) . $content_nl . $content_nl .
              "------------------------------------------------------------" . $content_nl ;
    $headers =
              "From: \"$fullname\" <$fromemail>" . $headersep . "Reply-To: \"$fullname\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.16.8" .
              $headersep . 'MIME-Version: 1.0' . $headersep . $content_type ;
    if ($use_envsender) {
              mail($mailto, $subject, $messageproper, $headers, $envsender );
    else {
              mail($mailto, $subject, $messageproper, $headers );
    header( "Location: $thankyouurl" );
    exit ;
    ?>
    Here is the form page code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Print It! Quote Form</title>
    <link href="site_styles.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_nbGroup(event, grpName) { //v6.0
      var i,img,nbArr,args=MM_nbGroup.arguments;
      if (event == "init" && args.length > 2) {
        if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
          img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
          if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
          nbArr[nbArr.length] = img;
          for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
            if (!img.MM_up) img.MM_up = img.src;
            img.src = img.MM_dn = args[i+1];
            nbArr[nbArr.length] = img;
      } else if (event == "over") {
        document.MM_nbOver = nbArr = new Array();
        for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
          nbArr[nbArr.length] = img;
      } else if (event == "out" ) {
        for (i=0; i < document.MM_nbOver.length; i++) {
          img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
      } else if (event == "down") {
        nbArr = document[grpName];
        if (nbArr)
          for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
        document[grpName] = nbArr = new Array();
        for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
          nbArr[nbArr.length] = img;
    //-->
    </script>
    <style type="text/css">
    <!--
    p {
              font-size: 135%;
    -->
    </style>
    </head>
    <body onload="MM_preloadImages('images/buttons/home_down.jpg','images/buttons/home_over.jpg','i mages/buttons/about_down.jpg','images/buttons/about_over.jpg','images/buttons/news_down.jp g','images/buttons/news_over.jpg','images/buttons/products_down.jpg','images/buttons/produ cts_over.jpg','images/buttons/contact_down.jpg','images/buttons/contact_over.jpg')">
    <div id="header">
      <div id="logo">
        <div align="center"><img src="images/header.jpg" alt="Welcome to Print It!" width="1024" height="231" border="0" usemap="#Map" />
          <map name="Map" id="Map">
            <area shape="rect" coords="542,125,976,205" href="mailto:[email protected]" alt="Email us!" />
          </map>
        </div>
      </div>
    </div>
    <div id="navigation">
      <div align="center">
        <table width="1024" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr align="center">
            <td><a href="index.html" target="_top" onclick="MM_nbGroup('down','group1','home','images/buttons/home_down.jpg',1)" onmouseover="MM_nbGroup('over','home','images/buttons/home_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/home_up.jpg" alt="Home" name="home" width="144" height="31" border="0" id="home" onload="" /></a></td>
            <td><a href="about.html" target="_top" onclick="MM_nbGroup('down','group1','about','images/buttons/about_down.jpg',1)" onmouseover="MM_nbGroup('over','about','images/buttons/about_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/about_up.jpg" alt="About Print It!" name="about" width="144" height="31" border="0" id="about" onload="" /></a></td>
            <td><a href="news.html" target="_top" onclick="MM_nbGroup('down','group1','news','images/buttons/news_down.jpg',1)" onmouseover="MM_nbGroup('over','news','images/buttons/news_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/news_up.jpg" alt="News" name="news" width="144" height="31" border="0" id="news" onload="" /></a></td>
            <td><a href="products.html" target="_top" onclick="MM_nbGroup('down','group1','products','images/buttons/products_down.jpg',1)" onmouseover="MM_nbGroup('over','products','images/buttons/products_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/products_up.jpg" alt="Products / Services" name="products" width="144" height="31" border="0" id="products" onload="" /></a></td>
            <td><a href="feedback.html" target="_top" onclick="MM_nbGroup('down','group1','contact','images/buttons/contact_down.jpg',1)" onmouseover="MM_nbGroup('over','contact','images/buttons/contact_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/contact_up.jpg" alt="Contact Print It!" name="contact" width="144" height="31" border="0" id="contact" onload="" /></a></td>
          </tr>
        </table>
      </div>
    </div>
    <div id="body-text">
      <h1>Contact us<em></em></h1>
    <p align="center">Call us at the phone number above, email us by clicking on our <br />
      email address above,
      or use this  form to request a quote. </p>
    </div>
    <div id="body-text">
      <form action="feedback.php" method="post" enctype="text/plain" name="form1" target="_blank" class="form_text" id="form1">
        <label>
          <div align="left" class="form_text">
            <p>Name
            <br />
            <input name="name" type="text" id="name" maxlength="50" />
            </p>
            <p>      Company Name <br />
            <input name="company" type="text" id="company" maxlength="50" />
            </p>
            <p>
              <label>Phone Number
                <br />
                <input name="phone" type="text" id="phone" maxlength="50" />
              </label>
            </p>
            <p>
            <label>Email Address
              <br />
              <input name="email" type="text" id="email" maxlength="50" />
            </label>
            </p>
            <p>
            <label>Preferred Response<br />
              <select name="preferred_contact" id="preferred_contact">
                <option>By Email</option>
                <option>By Phone</option>
              </select>
              <br />
              <br />
            </label>
            <strong>PROJECT INFORMATION</strong></p>
            <p>
      <label>Project Name
        <br />
        <input name="project_name" type="text" id="project_name" maxlength="50" />
      </label>
            </p>
            <p>
              <label>Quantities to Quote
                <br />
                <input type="text" name="quantites" id="quantites" />
              </label>
            </p>
            <p>
              <label>Finished Size
                <br />
                <input type="text" name="size" id="size" />
              </label>
            </p>
            <p>
              <label>
                <input type="radio" name="sides" value="one side" id="sides_0" />
              1 Side<br />
              </label>
              <br />
              <label>
                <input type="radio" name="sides" value="two sides" id="sides_1" />
              2 Sides</label>
            </p>
            <p>
              <label>Colors - Side 1
                <br />
                <select name="colors_side1" id="colors_side1">
                  <option value="Black">Black</option>
                  <option value="Spot Color">Spot Color</option>
                  <option value="Black + Spot Color">Black + Spot Color</option>
                  <option value="Full Color">Full Color</option>
                  <option value="Other">Other - Describe Below</option>
                </select>
              </label>         
            </p>
            <p>
              <label>Colors - Side 2<br />
                <select name="colors_side2" id="colors_side2">
                  <option value="Black">Black</option>
                  <option value="Spot Color">Spot Color</option>
                  <option value="Black + Spot Color">Black + Spot Color</option>
                  <option value="Full Color">Full Color</option>
                  <option value="Other">Other - Describe Below</option>
                </select>
              </label>
            </p>
            <p class="form_text">
              <label>Paper Weight
                <br />
                <input name="paper_weight" type="text" id="paper_weight" maxlength="50" />
                <br />
                <br />
                Paper Color
                <br />
                <input name="paper_color" type="text" id="paper_color" maxlength="50" />
                <br />
    <br />
                Paper Type (gloss, plain, carbonless, etc.)
                <br />
                <input name="paper_type" type="text" id="paper_type" maxlength="50" />
                <br />
    <br />
                Bindery Information (folding, perfing, etc.)
                <br />
                <textarea name="bindery" cols="100" rows="5" class="form_text" id="bindery"></textarea>
                <br />
                <br />
                Additional Information <br />
                <textarea name="additional_info" id="additional_info" cols="100" rows="10"></textarea>
                <br />
                <br />
                <input type="submit" name="Submit" id="Submit" value="Send Feedback" />
                <br />
                <br />
              </label>
              <br />
            </p>
          </div>
        </label>
      </form>
    </div>
    </body>
    </html>

    Here is the current code from the feedback page:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Print It! Quote Form</title>
    <link href="site_styles.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_nbGroup(event, grpName) { //v6.0
      var i,img,nbArr,args=MM_nbGroup.arguments;
      if (event == "init" && args.length > 2) {
        if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
          img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
          if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
          nbArr[nbArr.length] = img;
          for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
            if (!img.MM_up) img.MM_up = img.src;
            img.src = img.MM_dn = args[i+1];
            nbArr[nbArr.length] = img;
      } else if (event == "over") {
        document.MM_nbOver = nbArr = new Array();
        for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
          nbArr[nbArr.length] = img;
      } else if (event == "out" ) {
        for (i=0; i < document.MM_nbOver.length; i++) {
          img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
      } else if (event == "down") {
        nbArr = document[grpName];
        if (nbArr)
          for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
        document[grpName] = nbArr = new Array();
        for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
          nbArr[nbArr.length] = img;
    //-->
    </script>
    <style type="text/css">
    <!--
    p {
              font-size: 135%;
    -->
    </style>
    </head>
    <body onload="MM_preloadImages('images/buttons/home_down.jpg','images/buttons/home_over.jpg','i mages/buttons/about_down.jpg','images/buttons/about_over.jpg','images/buttons/news_down.jp g','images/buttons/news_over.jpg','images/buttons/products_down.jpg','images/buttons/produ cts_over.jpg','images/buttons/contact_down.jpg','images/buttons/contact_over.jpg')">
    <div id="header">
      <div id="logo">
        <div align="center"><img src="images/header.jpg" alt="Welcome to Print It!" width="1024" height="231" border="0" usemap="#Map" />
          <map name="Map" id="Map">
            <area shape="rect" coords="542,125,976,205" href="mailto:[email protected]" alt="Email us!" />
          </map>
        </div>
      </div>
    </div>
    <div id="navigation">
      <div align="center">
        <table width="1024" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr align="center">
            <td><a href="index.html" target="_top" onclick="MM_nbGroup('down','group1','home','images/buttons/home_down.jpg',1)" onmouseover="MM_nbGroup('over','home','images/buttons/home_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/home_up.jpg" alt="Home" name="home" width="144" height="31" border="0" id="home" onload="" /></a></td>
            <td><a href="about.html" target="_top" onclick="MM_nbGroup('down','group1','about','images/buttons/about_down.jpg',1)" onmouseover="MM_nbGroup('over','about','images/buttons/about_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/about_up.jpg" alt="About Print It!" name="about" width="144" height="31" border="0" id="about" onload="" /></a></td>
            <td><a href="news.html" target="_top" onclick="MM_nbGroup('down','group1','news','images/buttons/news_down.jpg',1)" onmouseover="MM_nbGroup('over','news','images/buttons/news_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/news_up.jpg" alt="News" name="news" width="144" height="31" border="0" id="news" onload="" /></a></td>
            <td><a href="products.html" target="_top" onclick="MM_nbGroup('down','group1','products','images/buttons/products_down.jpg',1)" onmouseover="MM_nbGroup('over','products','images/buttons/products_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/products_up.jpg" alt="Products / Services" name="products" width="144" height="31" border="0" id="products" onload="" /></a></td>
            <td><a href="feedback.html" target="_top" onclick="MM_nbGroup('down','group1','contact','images/buttons/contact_down.jpg',1)" onmouseover="MM_nbGroup('over','contact','images/buttons/contact_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/contact_up.jpg" alt="Contact Print It!" name="contact" width="144" height="31" border="0" id="contact" onload="" /></a></td>
          </tr>
        </table>
      </div>
    </div>
    <div id="body-text">
      <h1>Contact us<em></em></h1>
    <p align="center">Call us at the phone number above, email us by clicking on our <br />
      email address above,
      or use this  form to request a quote. </p>
    </div>
    <div id="body-text">
      <form action="feedback.php" method="post" enctype="text/plain" name="form1" target="_blank" class="form_text" id="form1">
          <div align="left" class="form_text">
            <p>
            <label>Name <br />
            <input name="name" type="text" id="name" maxlength="50" />
            </label>
            </p>
            <p class="form_text">
              <label>Company Name <br />
            <input name="company" type="text" id="company" maxlength="50" />
            </label>
            </p>
            <p class="form_text">
              <label>Phone Number
                <br />
                <input name="phone" type="text" id="phone" maxlength="50" />
              </label>
            </p>
            <p class="form_text">
              <label>Email Address
              <br />
              <input name="email" type="text" id="email" maxlength="50" />
            </label>
            </p>
        <p class="form_text">
              <label>Preferred Response<br />
              <select name="preferred_contact" id="preferred_contact">
                <option>By Email</option>
                <option>By Phone</option>
              </select>
              <br />
              <br />
            </label>
            <strong>PROJECT INFORMATION</strong></p>
            <p class="form_text">
              <label>Project Name
        <br />
        <input name="project_name" type="text" id="project_name" maxlength="50" />
      </label>
            </p>
            <p class="form_text">
              <label>
             Quantities to Quote
                <br />
                <input type="text" name="quantites" id="quantites" />
              </label>
            </p>
            <p class="form_text">
              <label>Finished Size
                <br />
                <input type="text" name="size" id="size" />
              </label>
            </p>
            <p>
              <label>
                <input type="radio" name="sides" value="one side" id="sides_0" />
              1 Side<br />
              </label>
              <br />
              <label>
                <input type="radio" name="sides" value="two sides" id="sides_1" />
              2 Sides</label>
            </p>
            <p class="form_text">
              <label>Colors - Side 1
                <br />
                <select name="colors_side1" id="colors_side1">
                  <option value="Black">Black</option>
                  <option value="Spot Color">Spot Color</option>
                  <option value="Black + Spot Color">Black + Spot Color</option>
                  <option value="Full Color">Full Color</option>
                  <option value="Other">Other - Describe Below</option>
                </select>
              </label>         
            </p>
            <p class="form_text">
              <label>Colors - Side 2<br />
                <select name="colors_side2" id="colors_side2">
                  <option value="Black">Black</option>
                  <option value="Spot Color">Spot Color</option>
                  <option value="Black + Spot Color">Black + Spot Color</option>
                  <option value="Full Color">Full Color</option>
                  <option value="Other">Other - Describe Below</option>
                </select>
              </label>
            </p>
            <p class="form_text">
              <label>Paper Weight
                <br />
                <input name="paper_weight" type="text" id="paper_weight" maxlength="50" />
                </label><br />
               <p class="form_text">
              <label>Paper Color
                <br />
                <input name="paper_color" type="text" id="paper_color" maxlength="50" />
                </label>
                </p>
    <p class="form_text">
              <label>Paper Type (gloss, plain, carbonless, etc.)
                <br />
                <input name="paper_type" type="text" id="paper_type" maxlength="50" />
                </label>
                </p>
                <p class="form_text">
              <label>Bindery Information (folding, perfing, etc.)
                <br />
                <textarea name="bindery" cols="100" rows="5" class="form_text" id="bindery"></textarea>
                </label>
                </p>
                <p class="form_text">
              <label>Additional Information <br />
                <textarea name="additional_info" id="additional_info" cols="100" rows="10"></textarea>
                </label>
                </p>
                <br />
                <input type="submit" name="Submit" id="Submit" value="Send Feedback" />
                <br />
                <br />
              </label>
              <br />
            </p>
          </div>
      </form>
    </div>
    </body>
    </html>

  • Urgent !!!  Feedback Form Development

    Dear all
    I was trying to develop the Feedback form. I'm attaching the Source code below. According to the experts ...everybody suggested that..instead of using Service providers for sending mail...everybody using KM Services for sending mails. we already installed KM and collaboration.
    Can anyone..pl help me..to achive this feedback development.
    Kindly send me the code if anyone developed same kind of form using KM Services for sending mail...
    or do correct me my code...what went wrong.
    package Com.pradeep.Feedback;
    import java.util.GregorianCalendar;
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    import com.sapportals.htmlb.enum.ButtonDesign;
    import com.sapportals.htmlb.enum.DataType;
    import com.sapportals.htmlb.enum.GroupDesign;
    import com.sapportals.htmlb.enum.TextViewDesign;
    import com.sapportals.htmlb.page.DynPage;
    import com.sapportals.htmlb.event.Event;
    import com.sapportals.htmlb.page.PageException;
    import com.sapportals.htmlb.*;
    import com.sapportals.portal.htmlb.page.PageProcessorComponent;
    public class feedback  extends PageProcessorComponent {
         public DynPage getPage() {
              return new MyDynPage();
         public class MyDynPage extends DynPage {
              private final static int INITIAL_STATE = 0;
              private final static int SENTMAIL_STATE = 1;
              private final static int ERROR_STATE = 2;
              private final static int NO_FEEDBACK = 3;
              private int state = INITIAL_STATE;
              private String email_from;
              private String txtdescr;
              private String error_messg;
    Things to initialice once per session.
              public void doInitialization() throws PageException {
                   state = INITIAL_STATE;
    Will be called if forms with data was send.
              public void doProcessAfterInput() throws PageException {
                   InputField myInputField = (InputField) getComponentByName("EMAIL_ADDR");
                   HtmlEdit txtdescr = (HtmlEdit)getComponentByName("Edit_Text");
                   if (myInputField != null) {
                        this.email_from = myInputField.getValueAsDataType().toString();
                   if (txtdescr != null) {
                        this.txtdescr = txtdescr.getText();
    Will always be called before output. So this is the method in which
    the components will be placed and set.
                        public void doProcessBeforeOutput() throws PageException {
                             System.out.println("doProcessBeforeOutput");
                             Button myButton;
                             Form myForm = getForm();
                             Group myGroup = new Group();
                             myGroup.setWidth("370");
                             myGroup.setTitle("Suggestions or Feedback");
                             myGroup.setDesign(GroupDesign.SAPCOLOR);
                             myForm.addComponent(myGroup);
                             GridLayout gl = new GridLayout();
                             myGroup.addComponent(gl);
                             switch (state) {
                                  case INITIAL_STATE:
                                       GridLayout g2 = new GridLayout();
                                       g2.setCellSpacing(4);
                                       TextView txtdescr = new TextView("We want to make your opinion count so please provide any relevant suggestions or feedback you may have.  We will review all feedback in an effort to provide you with better services and improve the overall portal. Enter your comments below and click send.");
                                       txtdescr.setWrapping(true);
                                       txtdescr.setDesign(TextViewDesign.HEADER3);
                                       g2.addComponent(1, 1, txtdescr);
                                       TextView txtthank = new TextView("Thank you for your feedback!");
                                       txtthank.setDesign(TextViewDesign.HEADER3);
                                       g2.addComponent(2, 1, txtthank);
                                       gl.addComponent(1,1,g2);
                                       GridLayout g3 = new GridLayout();
                                       TextView txtemail = new TextView("Your email address (optional): ");
                                       txtemail.setDesign(TextViewDesign.HEADER3);
                                       g3.addComponent(6, 1, txtemail);
                                       InputField email_addr = new InputField("EMAIL_ADDR");
                                       email_addr.setType(DataType.STRING);
                                       email_addr.setSize(40);
                                       email_addr.setMaxlength(50);
                                       g3.addComponent(6, 2, email_addr);
                                       gl.addComponent(2,1,g3);
                                       HtmlEdit he = new HtmlEdit("Edit_Text");
                                       he.setHeight("300");
                                       he.setWidth("405");
                                       he.setDoPreview(false);
                                       he.setDoPrint(false);
                                       he.setDoCutCopyPaste(true);
                                       he.setDoList(true);
                                       he.setDoAlign(true);
                                       he.setDoInOutdent(true);
                                       he.setDoImage(false);
                                       he.setDoLink(true);
                                       he.setDoLinkKM(false);
                                       gl.addComponent(5, 1, he);
                                       myButton = new Button("submit", "Send");
                                       myButton.setOnClick("onSubmit");
                                       myButton.setWidth("100px");
                                       myButton.setDesign(ButtonDesign.EMPHASIZED );
                                       gl.addComponent(7, 1, myButton);
                                       break;
                                  case SENTMAIL_STATE:
                                       TextView label = new TextView("Thank you for your feedback.");
                                       gl.addComponent(1, 1, label);
                                       break;
                                  case NO_FEEDBACK:
                                    TextView lblnotext = new TextView("Please enter some feedback.");
                                    lblnotext.setDesign(TextViewDesign.HEADER3);
                                    gl.addComponent(1, 1, lblnotext);
                                    myButton = new Button("submit", "Back");
                                    myButton.setOnClick("onBack");
                                    myButton.setWidth("100px");
                                    myButton.setDesign(ButtonDesign.EMPHASIZED );
                                    gl.addComponent(2, 1, myButton);
                                    state = INITIAL_STATE;
                                    break;
                                case ERROR_STATE:
                                   TextView errortext = new TextView(error_messg);
                                   errortext.setDesign(TextViewDesign.HEADER3);
                                   errortext.setWrapping(true);
                                   gl.addComponent(1, 1, errortext);
                                   myButton = new Button("submit", "Try Again");
                                   myButton.setOnClick("onBack");
                                   myButton.setWidth("100px");
                                   myButton.setDesign(ButtonDesign.EMPHASIZED );
                                   gl.setCellSpacing(4);
                                   gl.addComponent(2, 1, myButton);
                                   state = INITIAL_STATE;                                 
              public void onSubmit(Event event) throws PageException {
                     if (txtdescr.equals("")) {
                           state = NO_FEEDBACK;
                     else {
                        send_mail();
                        if ( state != ERROR_STATE )
                        { state = SENTMAIL_STATE; }
              public void onBack(Event event) throws PageException {
              public void send_mail ()
              try{
    //               Set the host smtp address
                 Properties props = new Properties();
                      //put the smtp server here
                 props.put("123.12.12.25", "unilever.com");
    //             create some properties and get the default Session
                 Session session = Session.getDefaultInstance(props,null);
    //             create a message
                    Message msg = new MimeMessage(session);
    //                    set the from and to address
                   InternetAddress addressFrom;
                    if (email_from.equals("") )
                        addressFrom = new InternetAddress("anonymous");
                    else
                        addressFrom = new InternetAddress(email_from);
                     msg.setFrom(addressFrom);
                     InternetAddress addressTo = new InternetAddress("[email protected]");
                     msg.setRecipient(Message.RecipientType.TO,addressTo);
                     msg.setSubject("Portal Feedback");
                     msg.setContent(txtdescr, "text/html");
                     msg.setSentDate(new GregorianCalendar().getTime());
                   Transport.send(msg);
               } catch (Exception E){
                   state = ERROR_STATE;
                   error_messg = "Error sending mail:";
                   error_messg = error_messg.concat(E.getMessage());
    Kindly pl help me
    thx
    pradeep

    Hi Pradeep,
    Check out the following weblog. It explains sending mail in portal using dynpage.
    <b>How to perfom Mailing in portal using Dynpage.>
    REgards
    Rajeev.
    Do award points for helpful answers in SDN.

  • I am trying to convert a PDF into a document that can be edited - it's a client feedback form. I am using Adobe forms Central and it's saying that it can't use my document.

    I am trying to convert a PDF into a document that can be edited - it's a client feedback form. I am using Adobe forms Central and it's saying that it can't use my document.

    Hi Michelle ,
    We are extremely sorry that you have had a bad experience with Adobe .
    As far as your issue is concerned ,Acrobat generally prompts for internet connection as it is required to activate the product before you could use it comfortably .Once the product is activated or licensed you would be able to use the software offline .
    This could be the possible reason you are experiencing this .Please check if you have done so and still facing this .And if you have not ,you need to license/activate your product by typing in your credentials ,i.e Adobe ID and password .
    You could also refer the following link to get updated about the activation of your product .
    https://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html#a ctivate-how-to
    Regards
    Sukrit Dhingra

  • Selection boxes in Barracuda Anti Spam and Virus Firewall do not appear in 7.0. They appeared in previous versions, and in IE.

    Selection boxes in Barracuda Anti Spam and Virus Firewall do not appear in 7.0. They appeared in previous versions, and in IE.

    FIXED!
    I reverted back to 3.6.23 and all works fine. From everything I can tell; number of problems submitted, breadth of issues, no access to versions 4, 5, 6 (rapid version turnover with no support), and now beta being released for 8, it seems FF is having the user base do all it's alpha/beta testing without consent. Being in product marketing myself, I probably would have lost a significant percentage of my customer base by now. When FF begins to support a new mainstream release, then I'll be interested again.

  • Can someone advise me on how to create a feedback form in java??

    hello
    im learning to create a GUI and would like to create a feedback form like the one java website has below
    http://java.sun.com/docs/books/tutorial/forms/sendusmail.html
    could someone advise me or provide any helpful link on how to do that?I just want to learn to do a simple feedback form(just a textbox and a submit button)
    thank you
    tomleo

    That's a Swing tutorial. The idea is you learn Swing, and then use the things you learned about to create the application you want. There is nothing special about a feedback form, it just uses elements common to almost any GUI app.

Maybe you are looking for