Need to Send Mail from JSP...

Dear Team,
I Need to Send Mail from JSP, have Designed user Interface to enter
to, from, subject, and message text .
Have Downloaded mail.jar and activate.jar file..... and placed in tomcat lib directory and WEBAPPS/WEB-INF/lib Directory too
How do i send a mail to user ?
do I require something else apart from things that i have mentioned?
do i have to Configure SMTP, POP3 or Something like this....
Now If I Create a object of Type MimeMessage and Set Recipient, from, subject and if i say transport.send(message) will this do My JOB???

Dear Team,
I Need to Send Mail from JSP, have Designed user
Interface to enter
to, from, subject, and message text .
Have Downloaded mail.jar and activate.jar file.....
and placed in tomcat lib directory and
d WEBAPPS/WEB-INF/lib Directory too
How do i send a mail to user ?
do I require something else apart from things that i
have mentioned?
do i have to Configure SMTP, POP3 or Something like
this....
Now If I Create a object of Type MimeMessage and Set
Recipient, from, subject and if i say
transport.send(message) will this do My JOB???Yup! in addition to all the above i need to know my mail box outgoing mail server. and that's enough...... i am able to do that.
Regards,
Jagadeesh HS.

Similar Messages

  • NEED TO SEND MAIL FROM FORMS...

    DEAR ALL,
    I NEED TO SEND MAIL FROM FORMS WHEN I PRESS THE MAIL BUTTON.
    I HAVE NO IDEA FOR THIS CRITERIA. IF ANY ONE EXPERIENCED WITH
    THIS CRITERIA, PLS HELP ME AND GIVE ME THE CODING FOR THAT.
    AND ALSO PLS EXPLAIN EACH LINE OF CODING, WHICH U POST.
    THANKS IN ADVANCE
    S.BERNANDAS

    Your requirement can be done in forms. Good amounts of advice here. There 244 messages this year alone that fit the search criteria in the Oracle Forms forum.

  • How to send mail from jsp

    hi,
    i want to send mail from my jsp page.
    1) how can i do this
    2) do i need any mail server for doin this
    thanks
    regards
    manoj

    i want to send mail from my jsp page.
    1) how can i do this
    2) do i need any mail server for doin thisRead
    http://java.sun.com/developer/onlineTraining/JavaMail/
    Rather,
    try this:
    http://jakarta.apache.org/taglibs/doc/mailer-doc/mailer-1.1/index.html

  • Need to send mail from Microsoft Exchange 2007 account(different from Gmail) on behalf of another Gmail ID. How to configure that ?

    I have a Gmail ID (e.g [email protected])
    I have a Exchange ID (e.g  [email protected])
    I need to configure exchange account (2007)  such that I can send a mail from my Exchange account but at the receiver end it looks like it was sent from  ([email protected]).
    Both the accounts are my accounts.
    I need this because I do not have access to my Gmail account from place where I access the internet and I need to send the mails from my Gmail account only.

    So you want to spoof your e-mail address.
    You can make your Exchange server send as any address you want.  Just create a different mailbox with that address as the primary (reply) address.  It has to be a different account.
    However, be aware that many systems to which you send such mail to will bounce it as suspected spam because they'll detect that your server is sending mail from Gmail but your server is not Gmail.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • Sending Mail from jsp

    Hi guys,
    can anyone help me out of this problem ??
    I have written a piece of code which sends mail from a jsp page.
    When I use the 'Recipient'(TO) as an address in the same domain
    (ie,<xxx>@<apeejaygroup.com>) it works fine.
    But when I use an address such as <xxx>@<rediffmail.com>
    the code gives an error like -
    "javax.mail.SendFailedException: Sending failed;
    nested exception is:
    javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    javax.mail.SendFailedException: 550 5.7.1 ... Relaying denied"
    I am sending the piece of code for reference..
    String host ="192.168.33.11";
    String from="[email protected]";
    String to="<xxx>@apeejaygroup.com";
    ( HERE USING THE ADDRESS AS <xxx>@<rediffmail>.com
    GIVES THE EXCEPTION - javax.mail.SendFailedException: 550 5.7.1 ... Relaying denied )
    Properties props = System.getProperties();
    props.put("mail.smtp.host", host);
    javax.mail.Session session1 = javax.mail.Session.getDefaultInstance
    (props, null);
    MimeMessage message = new MimeMessage(session1);
    message.setFrom(new InternetAddress(from));
    message.addRecipient(Message.RecipientType.TO,new InternetAddress(to));
    message.setSubject("Your Registration Details");
    message.setContent(body,"text/html");
    Transport.send(message);
    Please help me out of this.
    Regards
    Satrajit

    as you said that it might require authentication
    but our mail server doesn't require authentication to mail.
    Now what should i do ??Many servers are now authenticating by requiring you to fetch your e-mail before sending. This is basically because most SMTP mail servers CAN NOT authenticate in the normal sense of the word. So, they use the fetch process for authentication. The fetch process already requires authentication normally. Then your IP address will be good for, say, 20 minutes, and you can relay e-mail through the server.
    It works with most E-mail clients such as Outlook or Netscape, because the default behavior is to 1.Connect to the POP server, 2.Login, 3.Download any new mail, 4.Connect to the SMTP server, 5.Upload any mail to send.
    Even if you don't have any mail, your IP address will at least have been authenticated. Even if you just check for mail, and not download any, you should be OK.
    So what I'd suggest is that you write some code that attempts to connect to your mail system's POP server, get authenticated successfully, then try sending out the e-mail through the SMTP server.

  • Sending mail from JSP through Microsoft Outlook

    Hi all,
    i want to send an e-mail from JSP by clicking on link or button through Microsoft's Outlook..
    Can anyone guide me..

    something like this,
              try{
                   props = new Properties();
                   props.load(this.getClass().getClassLoader().getResourceAsStream("contact.properties"));
                   int i=0;
                   String referer = props.getProperty("contact.allow.referer."+i);
                   email = props.getProperty("report.email.error");
                   while(referer != null){
                        i++;
                        contact.put(referer, "true");
                        referer = props.getProperty("contact.allow.referer."+i);
              }catch(Exception e){
                   e.printStackTrace();
              try{
                   Session session = (Session)new InitialContext().lookup(this.props.getProperty("reports.jndi.email"));
                   SMTPMessage m = new SMTPMessage(session);
                   m.setFrom(InternetAddress.parse(this.props.getProperty("report.email.from"))[0]);
                   m.setRecipient(RecipientType.TO, new InternetAddress(this.email));
                   m.setSubject(this.getSub());
                   StringBuffer msg = new StringBuffer();
                   msg.append("Employee Name: "+fn + " " + ln +"\n");
                   msg.append("Employee ID: "+this.getId()+"\n");
                   msg.append("Message: "+this.getMsg()+"\n");
                   m.setText(msg.toString());
                   m.setReplyTo(InternetAddress.parse("no-reply"));
                   m.saveChanges();
                   Transport trans = session.getTransport();
                   trans.send(m);
                   trans.close();
              }catch(Exception e){
                   e.printStackTrace();
              }          contact.properties:
    reports.jndi.email=java:comp/env/globalMail
    report.generation.timeout=3000
    report.email.subject=Some Subject
    [email protected]
    [email protected]

  • Sending Mail from JSP-Servlet

    hi all,
    Can any one help me, how can i send the mail from JSP-Servlet.
    in Spring, we have a the following package to send mail,
    import org.springframework.mail.MailSender;
    import org.springframework.mail.SimpleMailMessage;
    import org.springframework.mail.javamail.JavaMailSenderImpl;
    Suggest me to solve the problem.
    Thanx in advance.
    Bala

    Hi balu,
    i already go thru that API. My problem is if i add any additional jar file for sending the mail from JSP or Servlets only. not in high technology.
    i mention spring as an example.
    so, kindly suggets me on that.
    Bala

  • Why everytime i need to send mail from my phone it is asking for my apple ID ?

    how come since I updated my phone, every time I need to send new e-mail it is asking me for my apple ID ?

    Settings > Messages > Send &amp; Receive > Start New Conversations From > select your cell phone number.

  • Self registration & needs to send mail from admin to user.

    Hi friends,
    system needs to  send an e-mail from the administrator to the user, informing the user that self-registration was successful.
    i have made the congifuration as mentioned on sap help. i mean "ume.notification.
    selfreg_performed = TRUE"
    but still the user not getting emails automatically.
    can any one assist me on this case.
    thanks,
    udhaya.

    Hi Michael,
    i had done the self registration and email notification successfully thanks for your help & all also for all who helped me.
    But i have a small doubt notification mail "user successfully created" going to the Guest user from administrators mail, but administrator account not getting any mail. i need to get that mail in our administrator inbox. how to get this mail.
    Please assist me.
    thanks,
    Udhaya.

  • Sending mail from JSP page with attachment

    I have a requirement to send mail with attachment from my jsp pages, which should come to a particular mail box. Can any one help me by sending sample codes. Thankx in advance.

    hi,
    When request is posted you have to save file data from request to a file. you can not access the data using request.getParameter("file").

  • Send mail from JSP page

    Hello,
    can some one help me to send emails from a jsp page.
    and if possible the source code of jsp or java...
    Thanks !

    read this:
    http://www.jspinsider.com/tutorials/jsp/javamail/jspjavamail_1.view

  • Sending mail from JSP page

    HI Everyone,
    Please help me out in this. It is very urgent so not able search the same in this forum.
    I have a J2EE application. The view is in JSP. If i click a button from a JSP page, any mail client (Microsoft Outlook) has to open and current page need to be attached as html. THen user wish to send the mail to somebody...
    So my aim is to open a outlook and attache the current JSP page as html. PLease help me out !

    Instead of outlook, you can do it easily using SMTP

  • Need to send mail from new infotype

    Hi,
    i must send email notification when i new PA specific infotype is created/changed.
    Finally, i don't think worflow is the best way... but i don't know where i must implemented my code, i've tested this idea by modifying the PAI but it don't work, e-mail is not sent, but function is correct, if i test it it's ok.
    Cheers

    Hi ,
         I came across the same requirement 2 yrs back and i have done it with workflow. You need to create a workflow
    with a single task which sends the mail to corresponding person .
          I forgot the Business Object name , but it was containing an event "CREATED".  When ever a new infotype is created , this event is triggered which inturn triggers WF and the mail is sent.
    Reward points if the info. is useful to you.
    Regards,
    Vijay

  • How to send mail from jsp pageq

    Pls help me with this topic
    Thanks alot

    Can you make it clearer. Pls give me a sample code if possible
    Thanks alot

  • Sending mail from Oracle8i

    hi all,
    I need to send mail from a plsql procedure/package. How do i do this?
    Our database is running on sun solaris.
    I have heard about Oracle*mail/Oracle office but could not find any download for the same.
    Do i have to buy this product?
    thanks in adv
    Prash
    null

    if mailing works on your solaris, then you can dbms_output the lines of the text from the pl/sql procedure and then mail the file through the OS using mailx command. alternatively you can use the oracle tool itself that is the oracle mail.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by prash:
    hi all,
    I need to send mail from a plsql procedure/package. How do i do this?
    Our database is running on sun solaris.
    I have heard about Oracle*mail/Oracle office but could not find any download for the same.
    Do i have to buy this product?
    thanks in adv
    Prash<HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • BT Infinity - I need an answer please.

    I have already posted in this forum before and not recieved much response. Only one kind person who told me about his upsetting experience with BT Infinity. I have (a countless number of times) rang up BT Customer Services about whether my area will

  • My ipod isnt recognised

    i plugged in my ipod nano, the computer recognises it but then it goes "One of the USB Devices attached to this computer has malfunctioned and Windows does not recognise it. Device is UNKOWN, i have installed the drivers provided on the disk provided

  • After upgrading to version 10.9 my plug-in just wouldn't work at all. tried to install adobe again but it just wouldn't work. please help!!

    also my it says that it doesn't support my epson nx130 printer anymore

  • Por que no me reconoce mi tarjeta scb max

    Estoy realiando la adquisiscion de un rayo laser, ya tengo el fotodetector que es el que me toma la señal del laser, pero al intentar enviar la señal a la computadora solo me aparece la PCI 6221 y no la SCB 68 para poder configurar mis entradas y sal

  • 27" iMac freezes

    I have a 2010 27" i7 iMac that has started to freeze about once every week.  When this happens you can not wake the machine up as it looks like it is asleep.  I plug a USB mouse in but no light so no power on the USB port.  I have to hold the power b