SMTP Email via JSP - is there no tag already?

I intend to send an email as part of a JSP page, but searches on the internet and within these forums have resulted in scriptlets or java application examples.
Is there not a simple tag that I can consider using instead? I do not want to mix code with my JSP and will probably write a custom JSP tag if I cant find one that has already been created - as part of JSTL / apache / someone reputable?
It's hard not to compare this to PHP whereby they have some sort of simple sendmail call - very straight forward if I recall.
Any help will be appreciated.
Regards,
Rob.

[email protected] wrote:
Is there not a simple tag that I can consider using instead? I do not want to mix code with my JSP and will probably write a custom JSP tag if I cant find one that has already been created - as part of JSTL / apache / someone reputable?Just create a Servlet which makes use of the excellent JavaMail API and/or calls those Java applications. There is certainly no need to write Java code in JSP files.
Comparing PHP with JSP makes no sense. JSP is a web view technology for Java and PHP is a hypertext processor written in C.

Similar Messages

  • Error 1172 occurred when sending smtp email via labview

    I found these two useful vi example to send smtp email using Labview:
    http://decibel.ni.com/content/docs/DOC-7451
    http://decibel.ni.com/content/docs/DOC-2401
    However, I got error 1172 saying "No connection could be made because the target machine actively refused it 74.125.91.109:587". I'm using gmail to send emails and pretty sure that all the settings in the VI are correct. According to http://mail.google.com/support/bin/answer.py?answer=13287, I tried both 587 and 465 as the port, and nothing would help. 587 will give the 1172 error and 465 will hang the vi for a while after stopping it. This 1172 error is unlikely due to the suggestion from the 2nd link, "Note: If you receive Error -1172 with this example, try logging into the Gmail account with your browser.  This error can occur with Gmail accounts that have been inactive for a period of time.  You must log in with a browser and verify CAPTCHA text to reactivate the account." because the error kept on even when I login to my gmail account.
    I got myself a solution from http://stackoverflow.com/questions/2737823/unable-to-send-smtp-mail-with-net-network-issue, which says to turn off the antivirus software. I turned off McAfee on my PC and it did work. Now, I'm able to send email, even when I log out my account. However, I'm not happy since I have to keep my antivirus off. My question is, is there any way to walk around this issue? i.e. being able to send email with antivirus on?
    My 2nd question: how to send message to multiple recipients? The string array to the "recipient" does not work, and the form of "[email protected];[email protected]" does not work neither. Do I have to create multiple property nodes for the recipients or better way to do it?
    Many thanks 
    Message Edited by holyna on 06-14-2010 11:34 PM

    Hi Bhuvanesh,
    I noticed that the original thread here hasn't been updated in over a year. In the future, it will be helpful if you begin a new topic for your issue.
    I will first address your second question concerning sending SMS messages using LabVIEW. The only way LabVIEW can send an SMS text message is by passing an e-mail to the appropriate SMS gateway service. This gateway will vary by cellular provider. You will need to obtain the SMS gateway service information for each carrier you wish to push text messages to. 
    As far as the error you are receiving, we will need more information in order to narrow down your problem. What is the exact error message you're receiving? Are you receiving "1172: No connection..." or some other variation? A screen capture of your code would also be very useful.
    Regards,
    Andy C.
    Applications Engineering
    National Instruments

  • SMTP Email via Business Workplace

    Hello SAP Experts,
    I am trying to send an email via SMTP (Internet Address) on the Business Workplace tool, but it is preventing me to do so saying "Invalid Recipient Address".
    As a background, we have a Lotus Notes C3000 Fax System, such that when you send an email with an address as shown below, it will send it as a Fax.
    Here is an example of the email address:
    "Temp[at]0041624543456#C3000#####FAX3[at]FCC-Fax"
    Any idea how I can override this email address check on the Business Workplace/SAPConnect side?

    Hi
    When you configure the SMTP access using SCOT. When you click on SMTP, a window would pop-up SAPConnect: General Node Data",  select "Set" at the "Fax" type.
    In the Address Area. put * as the entry.
    Please try this link
    http://www.interfax.net/en/help/sap_basis_services.html

  • TRYING TO SEND AN EMAIL VIA JSP not working

    I think what im doing is right but i keep getting errors...therefore...its wrong..
    <form action="mailer.jsp" method="post">
         To :<br>
         <input type="text" name="to" class="std"></input><br>
         From :<br>
         <input type="text" name="from" class="std"></input><br>
         Subject :<br>
         <input type="text" name="subject" class="std"></input><br>
         Message :<br>
         <textarea rows="10" cols="80" name="message"></textarea>
         <br>
         <input type="submit" value="Send"></input>
         </form>Mailer.jsp
    <div class="frame">
         <jsp:useBean id="mailer" class="com.stardeveloper.bean.test.MailerBean">
              <jsp:setProperty name="mailer" property="*"/>
              <% mailer.sendMail(); %>
         </jsp:useBean>
         Email has been sent successfully.
         </div>MailerBean.java
    package com.stardeveloper.bean.test;
    import java.io.*;
    import java.util.*;
    import javax.mail.*;
    import javax.mail.event.*;
    import javax.mail.internet.*;
    public final class MailerBean extends Object implements Serializable {
         /* Bean Properties */
         private String to = null;
         private String from = null;
         private String subject = null;
         private String message = null;
         public static Properties props = null;
         public static Session session = null;
         static {
              /*     Setting Properties for STMP host */
              props = System.getProperties();
              props.put("mail.smtp.host", "mail.brunel.ac.uk");
              session = Session.getDefaultInstance(props, null);
         /* Setter Methods */
         public void setTo(String to) {
              this.to = to;
         public void setFrom(String from) {
              this.from = from;
         public void setSubject(String subject) {
              this.subject = subject;
         public void setMessage(String message) {
              this.message = message;
         /* Sends Email */
         public void sendMail() throws Exception {
              if(!this.everythingIsSet())
                   throw new Exception("Could not send email.");
              try {
                   MimeMessage message = new MimeMessage(session);
                   message.setRecipient(Message.RecipientType.TO,
                        new InternetAddress(this.to));
                   message.setFrom(new InternetAddress(this.from));
                   message.setSubject(this.subject);
                   message.setText(this.message);
                   Transport.send(message);
              } catch (MessagingException e) {
                   throw new Exception(e.getMessage());
         /* Checks whether all properties have been set or not */
         private boolean everythingIsSet() {
              if((this.to == null) || (this.from == null) ||
                 (this.subject == null) || (this.message == null))
                   return false;
              if((this.to.indexOf("@") == -1) ||
                   (this.to.indexOf(".") == -1))
                   return false;
              if((this.from.indexOf("@") == -1) ||
                   (this.from.indexOf(".") == -1))
                   return false;
              return true;
    }

    I think what im doing is right but i keep getting
    errors...therefore...its wrong..i don't see any errors posted, so it must not be wrongThe error occurs because the OP did not use BSD-style braces.

  • Java problem -- sending email via JSP page

    Below is a copy of my feedback page
    Basically, I am doing my work in a JSP page.
    For now, my plan is that when I click on the ''submit'' button, everything written on the text boxes will be sent to my email (my hotmail address)
    However, I do not know what are the codings needed (honestly speaking, I went up to Google to search but then, the codings are complicated and I don't know what is written) and neither do I know whether should I place all codings on one JSP page or place the codings for submission to my email on another JSP page.
    Please help. Thank you.
    http://i468.photobucket.com/albums/rr43/mrclubbie/feedback_page.jpg (sorry you have to copy the link and paste on your browser)
    Edited by: mrclubbie on Jun 27, 2010 3:05 AM

    You do not have a problem, so stop trying to pretend you have one. Lack of knowledge is not a problem, because it has a very easy fix: study more. Invest some time. Seriously, you are going to find blocks at every corner until you fully understand the tools you are using, and you are not going to find the answers by posting in forums hoping for someone to bail you out.
    I find that Javaworld usually has clear and precise articles, so I would use this one as the basis for your research:
    [http://www.javaworld.com/javaworld/jw-10-2001/jw-1026-javamail.html|http://www.javaworld.com/javaworld/jw-10-2001/jw-1026-javamail.html]
    Good luck!

  • Is there any difficulty getting email via Thunderbird while in China?

    I am traveling to China and am wondering if I will be able to access my email via Thunderbird while there? Any help would be appreciated. Thanks.

    Thank you. My previous experience has been that some things work and others don't. This is the first time I have used Thunderbird and I was wondering if anyone had any experiences in China with Thunderbird working or not working.

  • SMTP email attachments

    Hi all,
    There have been a few discussions on the list about sending fairly
    straightforward emails from SMTP. Has anyone tried sending attachments?
    I have a requirement to send quite large attachments ( upto 15Mb ),
    some of the files will be zipped. Does anyone have any idea how to do this
    and has anyone had any problems sending files of this size through a
    Forte SMTP link?
    Thanks in advance for any advice,
    Dylan Jones.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    FYI,
    one of the internet sites, where you can find all of the RFC is:
    http://www.cis.ohio-state.edu/hypertext/information/rfc.html
    Dariusz.
    -----Original Message-----
    From: Shirke, Manish [SMTP:[email protected]]
    Sent: Tuesday, September 15, 1998 8:58 AM
    To: 'Dariusz Rakowicz'
    Subject: RE: SMTP email attachments
    hi Dariusz,
    Thanks for your previous response. Do you know the algorithm for
    base64 encoding. If you have a reference to where
    I can find it please let me know.
    Thanks and regards,
    Manish Shirke
    Indus Consultancy Services
    From: Dariusz Rakowicz[SMTP:[email protected]]
    Reply To: Dariusz Rakowicz
    Sent: Tuesday, September 15, 1998 9:38 AM
    To: 'Michael Strauss'; 'Jones, Dylan'; [email protected]
    Subject: RE: SMTP email attachments
    Yes, you have to encode them (like base64) into a ASCII text, and then
    attached them to your DATA part in SMTP. It is not very complicated,
    and why
    wouldn't it work through Forte SMTP link? Though it goes through Forte
    it
    still is SMTP. More about that you can find in the following RFC's:
    RFC 821 - for SMTP
    RFC 2045 - for attachments
    Good luck, hope it helps.
    Dariusz Rakowicz
    Consultant
    BORN Information Services
    http://www.born.com
    8101 E. Prentice Ave, Suite 310
    Englewood, CO 80111
    303-846-8273
    mailto:[email protected]
    -----Original Message-----
    From: Michael Strauss [SMTP:[email protected]]
    Sent: Monday, September 14, 1998 10:06 PM
    To: 'Jones, Dylan'; [email protected]
    Subject: RE: SMTP email attachments
    Dylan
    I have sent SMTP mail, but not through Forte. My understanding isthat
    the
    client software, in this case Forte, will have to present theattachment
    to
    SMTP as embedded text (i.e. a stream of text), formatted properly tolook
    like an attachment.
    If this is zipped data, then you will also have to encode it in MIMEor
    BIN/HEX format to ensure that it is transmitted properly. I do notknow
    the
    algorithm for this.
    I have only ever sent plain text files as attachements. I haveincluded
    pre
    and post amble strings from my own routine. I think that there is
    probably
    some redundant information in these strings, but they work, so Ihave left
    them alone.
    If you can understand them, the RFCs for SMTP will explain all ofthis.
    Michael Strauss
    Mazda Australia Pty Limited
    This is the preamble message that you have to embed before you sendthe
    file: Note that $3 referes to the actual filename attached.
    MIME-Version: 1.0
    Content-Type: multipart/mixed; boundary="=#=#=#=#=88=#="
    X-Mozilla-Status: 0001
    This is a multi-part message in MIME format
    --=#=#=#=#=88=#=
    Content-Type: text/plain; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    --=#=#=#=#=88=#=
    Content-Type: text/plain; name="$3"
    Content-Disposition: attachment; filename="$3"
    This is the postamble text
    --=#=#=#=#=88=#=--
    -----Original Message-----
    From: Jones, Dylan [mailto:[email protected]]
    Sent: Tuesday, 15 September 1998 11:30
    To: [email protected]
    Subject: SMTP email attachments
    Hi all,
    There have been a few discussions on the list about sending fairly
    straightforward emails from SMTP. Has anyone tried sendingattachments?
    I have a requirement to send quite large attachments ( upto 15Mb ),
    some of the files will be zipped. Does anyone have any idea how todo this
    and has anyone had any problems sending files of this size through a
    Forte SMTP link?
    Thanks in advance for any advice,
    Dylan Jones.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
    This message has successfully passed virus checking.
    Mazda Australia takes every precaution to ensure email messages arevirus
    free. For complete protection, you should virus test this message.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • TS3274 I recently lost all my notes and my ipad will no longer allow me to connect to my yahoo email via the Mail app. Is there anything i can do?

    I also think it may have to do with the fact that i dropped it...
    When i try to connect to my yahoo email via the Mail thingy, it will say "user name or password for apple.imap.mail.yahoo.com is incorrect even though my yahoo password and user name is correct. I know because if i were to het my username or password wrong, it would tell me "user name or password for *insert my email* is incorrect".

    Charsiew wrote:
    I also think it may have to do with the fact that i dropped it...
    When i try to connect to my yahoo email via the Mail thingy, it will say "user name or password for apple.imap.mail.yahoo.com is incorrect even though my yahoo password and user name is correct.
    This is copied from your first post. Am I reading this wrong? Aren't you saying that you are getting a message that the username and password are incorrect? That's why I asked another the word apple in the name. I don't use Yahoo mail that may in fact be correct but I'm just checking,
    IF you are getting a message that the username and password are incorrect.....
    Check the outgoing mail server setting. Make sure that your username and password are in there.
    Settings>Mail, Contacts, Calendars>Your email account>Account>Outgoing mail server - tap the server name next to SMTP and check in the primary server and make sure your username and password are entered and correct - even if it says that the password is optional.

  • I upgraded to Mavericks from 10.6.8 and I no longer have any of my mail folders in macmail. If I look up an email via spotlight, I can find it, so it's in there. How do I restore my folders?

    I upgraded to Mavericks from 10.6.8 and I no longer have any of my mail folders in macmail. If I look up an email via spotlight, I can find it, so it's in there. How do I restore my folders?

    As an update: I was able to find my archived boxes and emails on my hard drive by doing this:
    Open a Finder window.
    Select Go | Go to Folder… from the menu.
    Type "~/Library/Mail/V2".
    Once I was able to get my macmail working properly, most of my mailboxes appeared, however not all and only a few recent emails are in a few of the boxes.
    I really need to move the emails from the archive back into my macmail. When I try to import using the mbox method, it doesn't recognize the .mbox even though they are .mbox. Other than re-emailing each individually to myself, I don't know what to do. Does anyone out there have any suggestions as to some easier solution?

  • Email via an SMTP server which needs authentication

    JSC bundles codes for emailing via an SMTP server which does not need authentication. But, can I get codes for emailing via an SMTP server which needs authentication?
    Thank you very much.

    I'd recommend the following free, open source library
    from Apache. It's powerful and simple to use.
    http://jakarta.apache.org/commons/email/
    I get the following exception when I use Apache commons. This occurs in both circumstances when SMTP authentication is needed or not.
    java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
    at java.security.AccessController.checkPermission(AccessController.java:427)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
    at java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:1252)
    at java.lang.System.getProperties(System.java:560)
    at org.apache.commons.mail.Email.getMailSession(Email.java:355)
    at org.apache.commons.mail.Email.buildMimeMessage(Email.java:748)
    at org.apache.commons.mail.Email.send(Email.java:897)
    at manamakal.test.ApacheEmailTest.button1_action(ApacheEmailTest.java:234)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
    at com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:57)
    at javax.faces.component.UICommand.broadcast(UICommand.java:312)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
    |#]
    Any further help is very much appreciated.

  • SMTP Email ..Sent items no there in Sentitems Folder

    i m using SMTP email setting on my application...
    If i  use a gmail account , whenever i sent an email from my application i can see it in my sent folder in GMAIL.
    But, if i use my corporate account email is sending...but i could not able to find the copy of sent email in SENT ITEMS folder...
    How to resolve this, expert advise is required.. please 
    Hai

    What i did is.... i used my
    company account ([email protected]) in .NET Application to send emails..
    Thanks for the update. I thought you are using Outlook as your mail client in my first reply. From the quoted sentence, you are using a .NET application as your mail client rather than Microsoft Outlook. If this is the case, you may need to contact the designer
    of the application for further assistance because this forum focuses on general questions and feedback related to Office 2010, and we are not familiar with the .NET application you are using.
    Thank you for your understanding.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Jsp:include... tags not being parsed

    We currently have a customer using one of our products with WebLogic 8.1. This product is deployed via a war file and when accessing the application, nothing included via a jsp:include shows up. When viewing the source output via a browser the <jsp:include... tags exist in the actual HTML. It is aparent they have never been parsed. Other jsp tags appear to be working though.
              The application works fine on Oracle 9iAS, Tomcat 4.x and 5.x and I believe there are several users with IBM Web Sphere using it with no problems. This is the first customer using this particular server and the first time with this behavior. Any ideas as to what the problem may be? I have downloaded and installed WebLogic 8.1 and can reproduce the error at will.

    Argg. Thats an ugly bug.. It has to do with which attribute of the include
              directive appears first.
              So the following doesnt seem to work
              <jsp:include flush="true" page="/lib/axscripts.jsp" />
              but if you change the 'page' atribute to appear first, it does.
              <jsp:include page="/lib/axscripts.jsp" flush="true"/>
              That said please contact [email protected] and request a patch for CR189880
              --Nagesh
              "Andrw Hale" <[email protected]> wrote in message
              news:9704331.1090501692204.JavaMail.root@jserv5...
              > Well, I have my main page that includes a header using the <@% include
              file=... %>. This gets included fine. The file it includes I have reduced
              to:
              > <jsp:useBean id="webBean" class="webBean" scope="session"/>
              > <jsp:include flush="true" page="/lib/axscripts.jsp" />
              > <jsp:include flush="true" page="/menus/document-menu.jsp"/>
              > <jsp:include flush="true" page="/menus/device-menu.jsp"/>
              > <jsp:include flush="true" page="/menus/admin-menu.jsp"/>
              > <jsp:include flush="true" page="/menus/help-menu.jsp"/>
              > <jsp:include flush="true" page="/menus/logout-menu.jsp"/>
              >           >
              > The jsp:useBean tag is parsed and used correctly while all of the
              jsp:includes remain in the body of the HTML.
              

  • Unable to send out emails via outlook express since 06/29/2010

    Task '[email protected]" - Sending' reported error (0x80042109) : 'Outlook is unable to connect to your outgoing (SMTP) e-mail server. If you continue to receive this message, contact your server administrator or Internet service provider (ISP).'        This is a copy/paste of error message from Office Outlook  2003
    Our household has been unable to "send" outgoing emails since 06/29/2010.  This includes a wireless laptop and a PC. We both lost the ability to send emails same day.  We changed NOTHING and did not share emails with each other that would have corrupted our system. During this time I have had 2 Verizon techs dance around in the PC doing all the same things I did as well as what  the automated assistant did.  The last tech said the Outlook Express 6.0 was corrupted, and to unistall it and then reinstall;  this time 2 hours later, I think he just gave up).  That did not work either.  I tried using the Outlook Office and still got an error message for outging. Everything is set up as it was when it was working until 06/29/2010.  I was told that there was a new server being installed and that things wold be working by 07/02/2010... I have tried taking down the firewall, turning off virus protection (McAfee), changing from outgoing.yahoo.verizon.net to just outgoing.verizon.net, checking boxes, unchecked boxes. SMPT is set to 587.  We get incoming fine.  I hate using the "Verizon email site" as too much monkey motion to get to mail, but that's what we have been doing.  I even tried setting up a GMail account, again got mail still could not send.  Any ideas?

    Thank you for your response!  I even tried sending an email via dos prompt  with Telnet, got past "HELO", but when trying to get a  "RCPT TO"  (using outgoing.yahoo.verizon.net)  I got an "authorization required" response and then was dropped.  I have been passed around without a solution. I am about ready to change ISP, but really hate to as most of the time (years now) this has been a decent ISP. If Verizon is having a problem just say so, I can handle it, honesty would be nice, refreshing and not wasting so much of my time as well as the techs!

  • I want to send email from jsp,

    i want to send email from jsp, i dont know smtp:host, how to send mail?
    plz carify this doubt sir.

    OK thanks sir but i installed alredy. i write this code. plz send any error's are there. and i dont know smtp:host name. i put my port address?
    try{
        //Set the host smtp address
        Properties props = new Properties();
        props.put("mail.smtp.host", "//10/0/6/252");
        // 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
        msg.setFrom(new InternetAddress("[email protected]"));
         msg.addRecipient(Message.RecipientType.To,new InternetAddress("[email protected]"));
        // Setting the Subject and Content Type
        msg.setSubject("hi..");
        msg.setText("hi bharath how are you");
        Transport.send(msg);
    catch(Exception e)
                  out.println(e);
         }

  • How to send an email from jsp

    hello
    i want to send email from jsp
    the following is that code
    and i also downloaded the mail.jar and activation.jar
    and there is no error in the code
    but the email is not sent
    kindly tell me that what can be the reason
    <%@ page import="sun.net.smtp.SmtpClient, java.io.*" %>
    <%
    String from="[email protected]";
    String to="[email protected]";
    try{
    SmtpClient client = new SmtpClient("xx.xxx.xx.xx");//replace with the reqiured smtp
    client.from(from);
    client.to(to);
    PrintStream message = client.startMessage();
    message.println("To: " + to);
    message.println("Subject: Sending email from JSP!");
    message.println("This was sent from a JSP page!");
    message.println();
    message.println();
    message.println();
    client.closeServer();
    catch (IOException e){     
    System.out.println("ERROR SENDING EMAIL:"+e);
    %>

    try this:
    <html>
    <body>
    <form action="enviaremail.jsp" method="post">
    <table border="0" align="center" bgcolor="tan">
    <tr>
    <td><b>Para..:</b></td>
    <td><input type="Text" name="para"</td>
    </tr>
    <tr>
    <td><b>De..:</b></td>
    <td><input type="Text" name="de"</td>
    </tr>
    <tr>
    <td><b>Assunnto..:</b></td>
    <td><input type="Text" name="assunto"</td>
    </tr>
    <tr>
    <td colspan="2">
    <textarea name="mensagem" rows=10 cols=45></textarea>
    </td>
    </tr>
    </table>
    <center> <input type="Submit" value="Enviar Email"></center>
    </form>
    </body>
    </html>
    <html>
    <body>
    <%@ page import="jspbrasil.Email" %>
    <jsp:useBean id="email" class="jspbrasil.Email"/>
    <%
    try {
    String mailServer = "mail.seumailserver.com.br"
    String assunto = request.getParameter("assunto")
    String para = { request.getParameter("para") };
    String de = request.getParameter("de");
    String mensagem =request.getParameter("mensagem");
    email.sendSimpleMail(mailServer, assunto, para, de, mensagem);
    %>
    <p>Email enviado com Sucesso !!!</p>
    <%
    catch (AddressException e) { %>
    <p>Endere�o de Email inv�lido</p>     
    <%}%>
    <%
    catch (MessagingException e) { %>
    <p>Imposs�vel enviar o email.</p>     
    <%}%>
    </body>
    </html>
    package jspbrasil;
    import javax.mail.*;
    import javax.mail.internet.*;
    import.java.util.*;
    public class Email {
    public void sendSimpleMail (String mailServer, String subject,
    String to,String from, String mensagem)
    throws AddressException, MessagingException {
    Properties mailProps = new Properties();
    //defini��o do mailserver
    mailProps.put("mail.smtp.host", mailServer)
    Session mailSession = Session.getDefaultInstance(mailProps, null);
    //As duas linhas seguintes de c�digo, colocam no
    //formato de endere�os,
    //supostamente v�lidos, de email os dados
    //passados pelos par�metros to e from.
    InternetAddress destinatario = new InternetAddress (to);
    InternetAddress remetente = new InternetAddress (from);
    //As duas linhas de c�digo a seguir, s�o
    //respons�veis por setar os atributos e
    //propriedas necess�rias do objeto message
    //para que o email seja enviado.
    //inicializa��o do objeto Message
    Message message = new MimeMessage (mailSession);
    //Defini��o de quem est� enviando o email
    message.setFrom(remetente);
    //define o(s) destinat�rio(s) e qual o tipo do
    //destinat�rio.
    //os poss�veis tipos de destinat�rio: TO, CC, BCC
    message.setRecipient( Message.RecipientType.TO, destinat�rio );
    //defini��o do assunto do email
    message.setSubject (subject);
    //defini��o do conte�do da mensagem e do
    //tipo da mensagem
    message.setContent (mensagem.toString(), "text/plain");
    //a linha de c�digo seguinte � a respons�vel
    //pelo envio do email
    Transport.send (message);

Maybe you are looking for

  • Downloads from Safari going to trash bin

    Hello, Whenever I download files from Safari they go to the Trash bin. It's only with direct downloads using Safari as iTunes and other program downloads/updates go to the appropriate locations. I obviously messed something up (probably deleted some

  • How Can I Get An Analog Sound From Logic's Plug-In's?

    Hi all, I'm working on an 80's New Wave influenced project, for which Logic has many plug-in's -- unfortunately most all of them have a distinctly digital clean sound to them. What are some ways (filters, compressors, etc?) that I can alter some of t

  • Problem with top of page in alv

    Hi i gotta probelm with my alv report in this , in the first level i am displaying the purchase order header details,in the secod level i am displaying the purchase order item detials.. I am getting the top of page contents properly in the header lev

  • Adobe flash player not support in android 4.1.2 samsung s2

    Plz give me feedback (private contact info removed by moderator). i have Samsung S2 Mobile. And i have android 4.1.2(Lastest S2 Version). I can install this software. but I cant see any LIVE TV CHANNEL. EveryWhere flash player required. And i READ so

  • Problems with world clock

    Because i didn't found how to contact apple, i posted my question here. if i select the world clock in my ipod, and i select a location in america, he alway says that the location is in the netherlands, for example: new york, netherlands. does anyone