Confirmation Mail Problem (urgent Solution) Please

Dear Guys,
After over the Registration Process, I want to send one confirmation mail. Mail Coding is properly worked. Only mail sent to my company id. But not to send yahoo, rediff and other things. what is the problem. I have changed the coding lot of time. But i was confused. I don't know what is the exact solution. If anybody knows please tell me. Urgent thing.

Hi This is My JSP mail coding. Any problem in my mail coding. Please see that and tell me what did i do the errors. I dont know what errors?
String host="mail.myCompany.com";
String from="[email protected]";
String to=ss;               // �ss� is JSP requestParameter name "to address";
String subject="Confirmation Mail From MyCompany";
String text = � Hereafter You will Access my Company mails�;
boolean sessionDebug = false;
Properties props = System.getProperties();
props.put("mail.host", host);
props.put("mail.transport.protocol", "smtp");
Session mailSession = Session.getDefaultInstance(props, null);
mailSession.setDebug(sessionDebug);
Message msg = new MimeMessage(mailSession);
msg.setFrom(new InternetAddress(from));
InternetAddress[] address = {new InternetAddress(to)};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject(subject);
msg.setText(text.toString());
Transport.send(msg);
out.println("To: " + to);
out.println("Subject:"+subject);
out.println();
out.println(text);
response.sendRedirect("jseeken.jsp");
Now I have installed the free smtp server. But I don't know how to configure. Please tell me the exact solutions. I am awating for your reply.
regards
pooja

Similar Messages

  • Sending mail Problem (Urgent Please)

    The following program mail coding program. I am in local System. Host is my server. But our Server (norton) firewall is enabled. I am not able to send any mail. Will you please tell me How to recover this problem or alter my coding. If anybody knows Please tell me.
    <html>
    <head>
    <title>JSP JavaMail Example </title>
    </head>
    <body>
    <%@ page import="java.util.*" %>
    <%@ page import="javax.mail.*" %>
    <%@ page import="javax.mail.internet.*" %>
    <%@ page import="javax.activation.*" %>
    <%
    try
    String host = "xxx.xxx.x.x";
    String to = request.getParameter("to");
    String from = request.getParameter("from");
    String subject = request.getParameter("subject");
    String messageText = request.getParameter("body");
    boolean sessionDebug = false;
    Properties props = System.getProperties();
    props.put("mail.host", host);
    props.put("mail.transport.protocol", "smtp");
    Session mailSession = Session.getDefaultInstance(props, null);
    mailSession.setDebug(sessionDebug);
    Message msg = new MimeMessage(mailSession);
    msg.setFrom(new InternetAddress(from));
    InternetAddress[] address = {new InternetAddress(to)};
    msg.setRecipients(Message.RecipientType.TO, address);
    msg.setSubject(subject);
    msg.setSentDate(new Date());
    msg.setText(messageText);
    Transport.send(msg);
    out.println("Mail was sent to " + to);
    out.println(" from " + from);
    out.println(" using host " + host + ".");
    catch(Exception e)
    System.out.println("Error");
    %>
    </table>
    </body>
    </html>
    Please tell me how to recover this problem
    Thanks in advance
    regards
    pooja

    Please tell me my mail coding is correct. If correct but i am not able receive any mail. what is the problem do u know. If you know please tell me
    regards
    pooja

  • Primary key problem - Urgent! PLEASE, HELP!

    Hi all,
    I'm new here, and I have a stupid problem, I think. If someone could help me, I'll be grateful.
    I have to build a very simple JSP application using a few database tables, providing the base functionality: insert, update, delete, search.
    I'm using Oracle 8.1.7, and JDeveloper 9.0.3
    One table looks like that:
    CREATE TABLE TEST (
         sPrimaryKey varchar2(30) not null,
         sField varchar2(100)
    ALTER TABLE TEST
    ADD ( CONSTRAINT test_id_pk
              PRIMARY KEY (sPrimaryKey)
    I'm using a sequence for generating primary key...
    CREATE SEQUENCE test_seq
    START WITH 100
    INCREMENT BY 1
    NOCACHE
    NOCYCLE;
    ... and a trigger before insert for seting the new value of the primary key.
    CREATE OR REPLACE TRIGGER BI_TEST
    BEFORE INSERT ON TEST
    FOR EACH ROW
    DECLARE
         new_id integer;
    BEGIN
         select test_seq.nextval into new_id from dual;
         :new.sPrimaryKey := 'AAA' || new_id;
    END;
    I have created a BC4J. How can I insert a new row into that table without providing the primary key, by hand, and let the trigger and sequence do that?
    Thank you!
    Razvan

    In the attribute settings editor for the Attribute TestIdPk in Entity Test:
    select Updateable Never
    deselect Mandatory
    select Refresh After Update & Refresh After Insert
    HTH.
    Thanks, George

  • Classloader problem, urgent! Please help.....

    I am working with a subcontractor. I have to use a class written by them. They give me a jar file namely subcontractor.jar, and together with a config.xml.
    I have tested the jar file already and can perform well.
    However, when I intergrate with them, fail exist....
    I look up their code as following:
    public class SomeWorks{
       public SomeWorks() throws Exception {
          URL url = (Parent.class).getClassLoader().getResource("config.xml");
          if(url == null){
             throw new Exception("Cannot find <config.xml> in CLASSPATH");
          } else{
             loadConfig(url.getFile());
             return;
    }//end class
    When I run their code alone, i.e. java Parent.doSomeThing , which in turn will call SomeWorks() . It can successfully load the config.xml file. The Parent class is the entry method, and the only one I can access. However, when I call it from my program:
    import Parent.*;
    public class MyOwnClass{
       public static void main(String[] args) {
          Parent.doSomeThing();
    java -jar MyOwnClass.jar
    in which i have my Manifest.mf :
    Manifest-Version: 1.0
    Main-Class: MyOwnClass
    Class-Path: subcontractor.jar
    I still get "Cannot find <config.xml> in CLASSPATH" error.
    And it implies I successfully load their class.
    The folder structure is:
    C:\cronjob\MyOwnClass.jar
    C:\cronjob\subcontractor.jar
    C:\cronjob\config.xml
    Why I can call it alone but not in my program?? I have tested almost all CLASSPATH setting.
    set CLASSPATH=%CLASSPATH%;C:\cronjob\subcontractor.jar;C:\cronjob\config.xml
    or
    java -cp C:\cronjob\subcontractor.jar;C:\cronjob\config.xml -jar MyOwnClass.jar
    But all not works..... And I cannot ask them to hardcode the full path..
    Please help!!!

    I think the classpath option can be added as I type java /? it lists out that -cp can be worked with -jar.Sure, you can put in the -cp option. But the plain fact is that an executable jar will ignore what you put there. Reply 4 by dpz is your answer. However...URL url = (Parent.class).getClassLoader().getResource("config.xml");
    if(url == null){
      throw new Exception("Cannot find <config.xml> in CLASSPATH");
    } else{
      loadConfig(url.getFile());
      return;
    }The first line of this code is correct for finding config.xml in your classpath (although you might have to use "/config.xml" if your code is in a package). But later you are extracting only the "file" part of that URL. If you put your config.xml file into a jar, the URL is going to be more complex than that, so getFile() is probably not going to work. I don't know what will work, though, because I don't know anything about the loadConfig() method and what it's expecting. The ideal situation would be if it had an overloaded version that took an InputStream.

  • SQL problem URGENT help PLEASE

    SQL> select period_number, sum(gross_amt)
    2 from mpy_payslip_headers
    3 where payroll_year = 2001
    4 and business_group_id = 'E4'
    5 and employee_number = '366'
    6 and period_number between 12 and 13
    7 group_by period_number;
    group_by period_number
    ERROR at line 7:
    ORA-00933: SQL command not properly ended
    WHY THIS ERROR? As far as I know it is possible.
    Thanks in advance,
    Marija

    Sometimes, the most obvious things are the harder to see...
    The correct is 'order by', not 'order_by'!

  • Ajax problem urgently help please?

    Hi all,
    Can you tell me that is it possible using for when we selected a data from a select list to show the selected item results in a multiselect list.I tried but did not success.For example we select a dept name from a select list and in the multiselect list we will show the empnames for this deptno but more than ona rows.can you tell me how can ı success this?
    ı am waiting your helps!

    Hi,
    You can replace a select list's item by doing something like the following in javascript:
    function fillState(country)
         var statelist = document.getElementById("StateList");
         statelist.length=0;
         var opt = new Option;
         var statenames = getStateNames(country);
         var optioncount = 0;
         var isSelected = false;
         for (var n = 0; n < statenames.length; n++)
              opt = new Option;
              opt.value = statenames[n][0];
              opt.text = statenames[n][1];
              statelist.options[optioncount] = opt;
              optioncount++;
    Without knowing more about the data you get back, I couldn't tell you how to adjust the above to suit your needs.
    In this example, I have an array populated with state codes and names which I then loop through to add into the select list. The "statelist.length=0" line at the beginning clears out any previous data.
    Hopefully this should give you an idea of what's needed.
    Regards
    Andy

  • My iPhone 4 appears with no service every day, i have to restarted and a few hours later again the same problem, Any other solution please???

    my iPhone 4 appears with no service every day, i have to make restart and a few hours later again the same problem, Any other solution please???

    This is almost always a symptom of a phone that was jailbroken or hacked to unlock it.
    Where did you get the phone?

  • I have a ipod classic 160GB , the problem with it is that it is dead no respond at all, i even tried to do a hard reboot, i tried to connect to itunes but it did not work, if somebody has a solution please let me know! the screen on the ipod shows nothing

    I have a ipod classic 160GB , the problem with it is that it is dead no respond at all, i even tried to do a hard reboot, i tried to connect to itunes but it did not work, if somebody has a solution please let me know! the screen on the ipod shows nothing........

    This is the iPod touch forum. I will request that you post be moved to the iPod Classic forum.

  • After installed mavericks i cannot sign in to my facetime and i messages. i tried it 100 times, but it is showing couldn't sign in check your network and try again. there is no problem with my network. if anyone knows the solution please help me .

    After installed mavericks i cannot sign in to my facetime and i messages. i tried it 100 times, but it is showing couldn't sign in check your network and try again. there is no problem with my network. if anyone knows the solution please help me .

    Hi,
    What version of the OS did you upgrade from ?
    Anything before OS X 10.8.2 may have an issue if the Logic/Mother board has been replaced and the Serial Number not "flashed" back to it.
    In the Apple Icon menu use the About this Mac item.
    In the new panel click twice on the line that tells you the current OS level
    It will change to the Build number (and alternative count to the OS versions) and then the Serial Number.
    If it is missing you need to get it replaced.
    (It is supposed to be done on Repair or Refurbishment).
    An Apple Store or Apple Authorised Service Provider as the best choices.
    There are apps you can download (They are Mac Model specific) but needs careful typing as it is a once only trip.
    8:56 pm      Sunday; November 24, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    Message was edited by: Ralph Johns (UK)

  • MacbookPro2.4GHzi5 8GB1333MHzDDR3.LION10.7.2.UPDATED. Thunderbolt problem. Correct cable   Apple TB HDI converter. Daewoo19"HL92QWA not found. TB Port drivers or other solution please anyone?

    MacbookPro2.4GHzi5 : 8GB1333MHzDDR3 : LION10.7.2 UPDATED.
    Thunderbolt problem.
    Correct cable   Apple TB>HDI converter.
    Monitor: Daewoo19"HL92QWA (analog or digital) not found by system.
    ThunderBolt Port drivers up to date. >> but must be the problem... Any solutions please anyone?
    Have reinstalled LION to see if monitor was found before TB driver update.  Not found!
    Have tried every combination of turning on monitor and rebooting system.
    Next logical step: pouring water (with a suspension of copper particles  - of course) into computer!
    Please help as this computer was only bought on the basis that a secondary `big` monitor could be attached!

    Been reading more of the posts that relate to this problem....
    Looks like this is a wasted thread!!!
    Thanks Anyway!

  • TS1382 my ipod got wet and allow time to dry, I turn now the musics and sound and everything but the screen is blank and nothing is visible. a solution please urgent.

    my ipod got wet and allow time to dry, I turn now the musics and sound and everything but the screen is blank and nothing is visible. a solution please urgent.

    See my reply to your other post

  • Problem with pass exam's confirmation mail

    I pass exam 1z0-047.
    Prometric center told me, that they would send to me confirmation mail.
    But after 2 weeks I don't recieve this mail, what should I do?
    How I can fill Hand-on oracle form, to recieve my certificate?
    Thanks.

    Hi,
    First, hsawwan is correct, you do not need to submit the Hands On Course Requirement Form for the SQL Expert Certification.
    Second, I know that Promectric sends a registration confirmation email, but they do not send a confirmation email for passing an exam. Are you awaiting your score report? If so, you should have been provided a score report at the testing center after you passed your exam. If you did not receive this score report, you can request a copy of your score report by calling Prometrics regional call centers http://www.prometric.com/Oracle/default.htm or by submitting the online Global Customer Service Form http://www.prometric.com/ContactUs/TestTakers/GlobalCSForm.htm. If you are awaiting your certification success kit from Oracle, please follow the instructions provided by hsawwan.
    Regards,
    Certification Forum Moderator

  • When I am connected to the WiFi, my apps cannot be download. Once I had disable the wifi and connect directly to the service provider, the apps will start to download. Please advise what is the problem and solution for my iPhone 5.

    When I am connected to the WiFi, my apps cannot be download. Once I had disable the wifi and connect directly to the service provider, the apps will start to download. Please advise what is the problem and solution for my iPhone 5.

    I can't follow your meaning. What does connect directly to your ISP mean?
    Did you mean turning off WiFi but turning on Cellular Data on your iPhone?

  • Ipod touch restore problem *URGENT PLEASE HELP*

    Ok well I just inherited an Ipod touch from my friend who upgraded to a iPhone and it has a lock code, which I don't know. I called up my friend and asked him the code, he didn't know it of course... so i just guessed passwords and it said it was locked, I only have one more try until it locks permanently. So, I tried resetting it and it didn,t work. so i put it in recovery mode and it was gonna be ok, but my problem is I have slow dial-up internet and cannot re-download the software because my internet turns off randomly and it takes about 35 hours straight to download the 280MB, my other problem is that every time the download is disrupted, what itunes has already downloaded deletes itself and I have to start over from zero. I cannot fully download the software and have no access to hi-speed internet, I need a solution please otherwise im sitting here with a $300 piece of junk.

    Just bring it over to your friends house and have him reset it for you. Then bring it to your house to put your music on it.
    It is as simple as that. Too bad you have dial-up still. I use broadband and it is very fast.
    Timothy Z.

  • I am using ipad3 but when ever I upload my status on facebook or mail someone it shows via mobile but it never shows via ipad 3 y any solution please ?

    I am using ipad3 but when ever I upload my status on facebook or mail someone it shows via mobile but it never shows via ipad 3 y any solution please ?

    There is no solution. This is determined/controlled by FaceBook.

Maybe you are looking for

  • How can i make a suggestion on a good update for the iphone

    Hi I am Michael Hendrickson a third gen iphone holder.  I receintly thought of an idea regarding the "notes" app. Myself and everyone I know uses this app mainly for lists, I feel that it would be in our best intersts to be able to swipe with the fin

  • Why can't I connect to my wi-fi network?

    why cant i connect to my wifi network?

  • Oracle 11g performace issue

    hi all, am using oracle 11g enterprise edition., i didn't ran any query but in ADDR report it was running some sytem based query(SYS,DBSNMP,SYSMAN etc) but in previous 10g it was working fine.. can anyone tell me how to stop those query.. this is the

  • Create new document from current state not working

    Hey, everyone. I'm using Photoshop CS6 (ccloud) on Windows 7 and I just noticed something weird. Often when I'm working on an image that I want to duplicate, I'll click on the create new document from current state icon at the bottom of the history p

  • Goods Movements with zero at COGI

    Anyone know how not to permit a change of movement of goods with a zero in the Qty COGI?