Basic questions on Java Mail

Hi,
I am new to Java Mail and I have following questions. When I send any e-mail with Java Mail through my program it is underlivered if subject length is more. I am yet to discover the limit (in terms of characters) which can be set, but before that I just thaught to take opinion of some of the experts through this forum.
a) Is there a limitation in subject length in terms of characters?
b) Can length be increased or is it a problem in the email API or on SMTP server?
c) How can we pass special characters?
If anyone can answer it would be great!
Regards,
ParagJ

Hi bshannon,
Thanks for the reply.
What's an example "long" subject length that doesn't work? -- If subject length is more than 256 characters the mail is undelivered and I don't get any exception as well. This is the problem with SMTP configuration. I just checked RFC 821 and it says about these size limitations.
Can we increase this size by somehow changing the SMTP configuration? I have no idea about how to achieve that. I have searched on Google also but didn't get any useful information. If you can focus some light on this I will be thankful to you :).
Regards,
ParagJ

Similar Messages

  • Some basic questions about Java ME

    Hi,
    I am new in the world of Java ME, I started to read about the technologies around it and for this reason I have some questions.
    There are 2 platforms CDC and CLDC and on top of these platforms there are some profiles, for example Personal Profile for CDC or MIDP2 for CLDC. On the next level (on top of these profiles) are some JSRs which are treated as optional packages.
    I saw that the CLDC emulator from SUN - WTK contains for example JSR 179 for Location based services and JSR 226 - SVG rendering. But the counterpart for CDC doesn't contain them.
    How can these JSRs be added to the CDC stack? are there some implementations of these JSRs as jars or something like this? or on the JCP site are only the specifications of this JSRs and if someone wants to add these JSRs to an emulator (virtual machine) he should implement these specifications?
    I hope that I have explained properly my "puzzle" and that someone will answer to my questions.
    Thank you

    1.    String[] numString = {"1","2","345678","9","abc"};
        int[] numInt = new int[numString.length];
        for (int x=0; x<numString.length; x++) {
          try {
         numInt[x] = Integer.parseInt(numString[x]);
          } catch (NumberFormatException nfe) {
         System.out.println(nfe.getMessage());
            numInt[x] = Integer.MIN_VALUE;
        }2. Best for what?

  • Basic questions on Java platform and JDK

    Hello,
    I have a few questions, might be very elementary. Please clarify.
    (Tried in "New to Java" Forum....but did not get much response)
    What I know is : A "Java Platform" is composed of the Java language, a JVM, and the APIs. There is a spec. for the language, and another spec for JVM. Now, are there spec.s for the API as well ?
    Another related question is : where exactly do the various flavours of the Java Platform (J2SE, J2EE, J2ME) differ ? I have seen some explanations where it seems to say that these editions have been created to give more appropriate support to different areas of applications. But, what I know to know is : what exact component of the Java Platform differs from one edition to another - language features, or the JVM, or the APIs ? And what is the kind of the change ?
    Another question : what is it, that differs from one JDK release to another, say from J2SE 1.3 to J2SE 1.4.0 ?
    I think the Java language spec itself rarely changes (Is this right?). Also the VM spec rarely changes (is this correct ?). So, is it that only the APIs change (new classes added, old ones modified, etc.) ?

    Hello,
    I have a few questions, might be very elementary.
    Please clarify.
    (Tried in "New to Java" Forum....but did not get much
    response)
    What I know is : A "Java Platform" is composed of the
    Java language, a JVM, and the APIs. There is a spec.
    for the language, and another spec for JVM. Now, are
    there spec.s for the API as well ?There are some specs which the API fulfills (see your other thread for examples). But not all classes in the API is covered by a specification.
    Another related question is : where exactly do the
    various flavours of the Java Platform (J2SE, J2EE,
    J2ME) differ? What do you mean? There are different specifications for the different editions / flavours. They can differ both in API and VM.
    I have seen some explanations where it
    seems to say that these editions have been created to
    give more appropriate support to different areas of
    applications. But, what I know to know is : what
    exact component of the Java Platform differs from one
    edition to another - language features, or the JVM,
    or the APIs ? All of them can differ. (Does it matter?)
    Another question : what is it, that differs from one
    JDK release to another, say from J2SE 1.3 to J2SE
    1.4.0 ? Read the relese notes. New classes, some new methods, and also minor changes to the language. New JSRs had also been implemented.
    I think the Java language spec itself rarely changes
    (Is this right?). Depends on what you mean by rarely
    It changed from 1.0 to 1.1, from 1.3 to 1.4 and from 1.4 to 1.5.
    Also the VM spec rarely changes (is
    this correct ?).It has changed a few times.
    So, is it that only the APIs change
    (new classes added, old ones modified, etc.) ?No
    Kaj

  • Getting started, basic questions on java 3d

    hello I am Krishnakant Mane,
    I have just started in java 3d and I am developing some edutainment softwares,
    I am just getting started so plese help me on the following topics.
    1. what tools do I need to start doing java 3d? I have installed java 5 (v1.5) and what else I need.
    2. is there a special advantage using open gl with java? will I have to learn some thing more? and if open gl has no specific advantage, can I do all my 3d or animations say for games etc entirely in java?
    3. wich is the latest version of 3d API I must download? where will I get a tutorial?
    thanks.
    Krishnakant.

    The answer to all of your questions is here:
    http://java.sun.com/products/java-media/3D/
    There is a "getting started" tutorial, downloads, and a fly-through, links to documentation, etc.
    See the Search at the top of the page? Give it a try! ;)
    :) jen

  • Basic question about Java, UNIX and OAS

    Hi,
    Can I create an appication that contains GUI components like testbox and textfields etc...and then load/import it into OAS?
    Can I again, create such an GUI application and then load it UNIX platform and run it?
    The reason I asked because I did create an application which has a frame, a panel and couples of buttons, text fields then ftp it to Unix Solaris, when I ran it with jre command, I got the following message:
    java.lang.NoClassDefFoundError: Javax/Swing/UIManager at cms.CMSApp.main(compiled code) Exception in thread main
    Please anyone help me to clarify this, I don;t if we can do such things but I did not do it the right way? or we cannot do it at all. Thanks for your help
    Minh

    I'm not sure I understand where OAS fits in here.. Is this an applet?
    In any case, it sounds like the JDK version you are using is 1.1.x, and swingall.jar is not in the classpath.
    If it's an applet, then you need to edit the HTML file and add in swingall.jar.
    If it's an application, you need to edit the CLASSPATH environment variable and append the full path to swingall.jar
    (note: in Java2 (JDK 1.2, 1.3) swingall.jar is no longer seperate, it is part of the runtime classes of java, so you don't have to add anything to the classpath)
    Take Care,
    Rob
    null

  • Some basic questions on Java development and NetWeaver CE

    Hi there,
    Can someone please explain for me:
    1. What are the development tools that will help me do Java development in SAP?
    2. Can I use non-SAP Java development tools (e.g. WebSphere or Eclipse) to develop custom extensions?  Are these equivalent to the functionality provided by CE?
    3. Given the options for doing Java development in SAP, are there any situations where I would need to do custom development in ABAP? (Is the Java functionality equivalent to the ABAP functionality?)
    4. Is NetWeaver CE only meant for Java development, or can it also be used for ABAP development?
    regards,
    Eric

    Hi
      for Java development you can user Eclipse or NWDS , which are both and the same .
      And about the ABAP development in CE 7.1 in the developer studio is it not possible .
      you are allowed for the java development .  And about using Non-SAP java development tools
      you can use the tools for java development , may the UI building ..... has to be build  when compared to
      CE 7.1  developer studio
    Developer Studio for ABAP
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7ef5ad90-0201-0010-b2b5-b112ca87e421
      https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/100dac80-f93c-2a10-15a1-a9ac1fd3166c
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40af00ad-8080-2a10-88b5-cc4cec99d8ac
    Thanks

  • BASIC Questions about JavaMail

    Hi Everyone
    I have some very basic questions about java mail.
    I have a weblogic web server. I think it's version 5 or something like that.
    when a user clicks a form on my application sends some information to my database (via my jsp/java program) , I need to send email to a person?
    Does anyone know how to do that ?
    Could someone please describe the process
    Stephen

    I would recommend that you first read the JavaMail design specifications http://java.sun.com/products/javamail/JavaMail-1.2.pdf
    Then, download JavaMail. It comes with a reference implementation of the API and also very good samples.
    Those samples should get you started very quickly on how to send email from Java program.

  • Moving from Entourage to Mail - basic questions

    Once my shiny new iMac arrives, I intend to stop using Entourage (v.X) for email and switch to Mail.
    I've never used Mail before, so I've got a few basic questions - I hope someone can help!
    1. Is there a limit on how many emails / attachments Mail can hold? Entourage is infamous for unrecoverably crashing if you let its Database get bigger than 2Gb (4Gb with a patch).
    2. How easy is it to archive Mail emails? And how easy is it to then access them for reference, if required?
    3. Can I easily transfer my Entourage address book to Mail?
    Hope someone can help!

    Robin,
    Mail creates a separate account folder for each email account you have. It also has a another folder to hold mailboxes/folders that you use to organize and archive messages away from Inboxes, Sent, etc.
    With each separate mailbox (Inbox, Sent or custom folder) there is no limit on number of messages, but with Mail 2.x (the one in Tiger) the size of each mailbox, including message attachments, must be kept below 2 GB. The only limit on the overall Mail folder, including On My Mac mailboxes, is the space on your hard drive, or boot partition, where your Home folder resides.
    It is not convenient (nor necessary) to archive outside of the Mail folder where all mailboxes/folder reside, although backups can be made for disk failure, etc.
    Open the Address Book application, and you will find under File, the command to Import. For what you can Import, check AB Help, searching on import and Entourage, and you will find Entourage listed as a source -- see also:
    http://docs.info.apple.com/article.html?path=AddressBook/4.0/en/ad808.html
    Ernie

  • Mind answering some basic questions for a few bright HS students?

    I am a HS computer science teacher who seeks a professional mentor regarding JDBC. While I have successfully
    - installed a MySQL database,
    created, queried, updated the database,
    - read the Java Tutorial and:
    used Connect/J and written a main method to manipulate a
    database
    created very simple applets to query or update a database with
    their run methods.
    I have basic questions about how pieces fit together in web application development and how one can best take advantage of OOP when dealing with a database. My motivation are a few very bright post-AP students who have an excellent grasp of OOP and data structures; they are curious to see how Java is used in web applications.
    The sample code I have found on the Web has all been small main method examples. I would like to see and discuss a truly OOD application with JDBC, and to discuss how the pieces fit together.
    So, aware of our ignorance and of how dangerous a little knowledge can be, and not expecting to go live with an application anytime soon, we seek a very high level understanding of current professional practice (like: "Where does tomcat fit in here?") as well as some direction while we get our hands dirty. (I hope that makes sense.)
    If you have time to correspond with us via e-mail, answer some very basic questions, and perhaps take a look at some code as we work through it, we would love to hear from you off-line ([email protected]). We would also appreciate knowing where to look for a good OOD sample application. Thanks.

    Complete this tutorial and you will have a much better understanding.
    http://java.sun.com/javaee/5/docs/firstcup/doc/toc.html
    Also here is the tutorial for j2ee ( a little detailed but useful):
    http://java.sun.com/javaee/5/docs/tutorial/doc/

  • Can java mail be used for distributed exchange server?

    H,
    I am trying to connect to MS Exchange Server to read my mails using Java Mail API.
    I have a questions about using it with Exchange server.
    We have 6-7 exchange servers in our company and different users have mailboxes on different servers. My internet mail application will be used by everybody in the company.
    But while connecting to exchange server using java mail I can only cnnnect to one server and port. What happens when user mailbox is not on that server. How can I use javamail in this scenario where user mailboxes are on separate servers??
    Thanks
    [email protected]

    You said that you can connect to Exchange server my you help me with this because i cant connect to Exchange server, mayby you can post me a code example? Thanks

  • Basic Questions

    Hi all,
    I´ve some basic questions - we are seeking for an alternative for our MS Exchange System. So I need some more information before going to hot testing Oracle :-)
    - Does Oracle Coll. support multiple Domains? Not only subdomains - either completley different Domains?
    - Is it possible to create multiple Users via SQL (Massgeneration)?
    A more technical question:
    On my first testing (Solaris 10, Sparc) I run into a strange phaenomen - my FQDN hast an '-' interated and the installation process interpreted it as '_'? I mean I have read something about that but couldn´t find that in the doc. anymore. I think it is a big problem for sending mails if the system change my domain name from [email protected] to mail@fq_dn.com ... ;-)
    Is it my fault or is it a "feature"?

    Hi Eisfalke!
    Oracle Collaboration Suite supports multiple domains.
    You will not create users with SQL but with some other commandline tools as their data goes into the OID and the CS database. But yes, it has tools for bulkcreation.
    I have not yet had the pleasure of working with a domain with a - but you should be capable of creating a new domain with a dash and remove the domain with the underscore.
    cu
    Andreas

  • Error Service Component Container for Java Mailer is not running

    Hi,
    I installed Oracle Workflow 2.6.3 (Standalone) in Oracle Database 10g Release 1.
    Actually there was no problem during the installation.
    I have done the Setting Up from step 1 to 8.
    I'm going to do the step 9 (Implementing Notification Mailer).
    The problem is the Workflow Agent Listener WFALSNRSVC is not running
    and I cannot run it using the Oracle Workflow Manager.
    In the Oracle Workflow Manager there was 4 rows which related to the Container : WFALSNRSVC
    1. Workflow Deferred Agent Listener
    2. Workflow Deferred Notification Agent Listener
    3. Workflow Error Agent Listener
    4. Workflow Inbound Notification Agent Listener
    The status is : Stopped.
    I cannot run any of them.
    Although the Startup Mode is Automatic, but none of them is running.
    When I tried to push the Go button to Actions: Start, it showed this message
    An error has occured
    The Service Component Container is not running.
    And after I tried to configure the Workflow Notification Mailer using the wizard
    I didn't receive any e-mail after I push the Test Send Mail button.
    I read in another post in this forum.
    It states that when going to the Workflow Configuration Assistant (WFCA)
    we must give the right entry in the LDAP paramaters and Java Mailer parameters,
    otherwise those WFALSNRSVC and WFMLRSVC would never run eventhough we enter them in a later time.
    Actually I didn't provide the paramaters (both of them) since they are optional.
    My questions are:
    1. Is there another way to run those service (servlet)?
    I really need the Java Notification Mailer to send email.
    2. Should I uninstall and reinstall my Oracle Workflow and provide those paramaters?
    Do I have to uninstall and reinstall the Oracle Workflow Middle Tier too?
    3. Is it okay if I drop and cascade the OWF_MGR user (my Workflow Manager schema)
    and then I use the Workflow Configuration Assistant again and choose Install option
    to create the OWF_MGR schema?
    3. Are the LDAP and OID required before we use the Java Notification Mailer?
    Actually I didn't understand the use of LDAP and OID which required in the LDAP paramaters?
    Any help would be grateful.
    Thanks,
    Buntoro

    In the service components page click on any container, select stop all from the LOV and Go. Once all the containers Workflow Agent Listener Service,
    Workflow Document Web Services Service and Workflow Mailer Service are Deactivated then StartAll. After all the containers are started then check the components status.
    Still if they are running bounce the apache.

  • Suddenly I see the usual blue box with question mark inside mail messages instead of pix

    Suddenly I see the usual blue box with question mark inside mail messages instead of pix.
    That did not happen before.
    It happened only on certain pages with Safari, like the google news feed which did not display pix.
    However, this new mail problem is really disturbing.
    I checked Little Snitch and port 80 is open.
    I checked java pref.
    I am at a loss.
    PLEASE HELP!

    Suddenly I see the usual blue box with question mark inside mail messages instead of pix.
    That indicates that your Mail preferences are setup to not display remote images in email messages. You should check Mail->Preferences->Viewing and make surre the box to 'Display remote images in HTML messages' is checked.
    I checked java pref.
    Java has nothing to do with Mail, or displaying images in it or any browser.

  • Content type headers and spam checks within Java MAil

    Hello there
    I have successfully created a java mail api to send any one of the following
    plain/text message, with or without attachments, with or without the body of the email to be HTML
    I have a question on how to ensure that the email is not marked spam? Sometimes the Spam score goes high if there is olly html for an email that is text/html type.;
    What are the possible values for content/type of Mime Message header for following scenarios
    An Email message that may have its bodypart as html and may have attachments
    An Email message that will have plain text messages along with attahcments and HTML concattenated with text messages ( LIke google maps along with text message]
    IF I do messaget.set ("This is my message") andthen I add attachments to the message body part, is it advisable to have two seperate content-type mime headers for these messages? wrt not having higher spam score.
    Or Is it advisable to have seperate mime type content headers for text part and sperate for message part.
    IS the attachment part also has a seperate mime header content type value?
    does the header's content type value is plain/text for messages that are text messages with attachments>?
    IS there a way to chek spam scores for messages generated by java mail? The ides is to create java mail API customsied sot hat the sent emails are not marked spams ?
    In order for the mail to be having zero spam scrore, it is helpful to have seprate mime content type headers?
    Edited by: user9328023 on May 23, 2011 1:45 PM

    If you want to create a message that has both plain text and html versions of the main
    message content, you want to create a multipart/alternative message, as described in
    this FAQ entry.
    If that message also needs to have attachments, you should embed the multipart/alternative
    part in a multipart/mixed message, along with the attachment parts.
    If the html part needs to reference images included with the message, you would replace
    the text/html part with a multipart/related part, as described in this FAQ entry.
    Combining all these techniques together can seem a bit complicated unless you understand
    recursion! :-) Remember that in addition to creating a body part with a text content type,
    you can create a body part with a multipart content type, and use that body part in the same
    places you would use a text body part.
    As for making sure your message isn't marked as spam, well, you're probably asking in the
    wrong place, but the simple answer is to make sure that it's actually not spam! Usually the
    structure of the message isn't as important as the content of the message.

  • Free SMTP server for Java mail testing

    Hi all,
    Are there any free SMTP servers that can be downloaded from the Net for Java mail. Thanks.
    Regards
    Ram

    I am sorry ..may be my question was not very clear. I do not have am SMTP host. I need an SMTP host to route emails...is that possible.
    If I have an SMTP host on my machine, then it will act as a router to route messages to other email severs like yahoo or hotmail.
    So the "from" will be a user from the SMTP host.i.e my machine user and the "to" will be some email "[email protected]" or "[email protected]".
    Is it posssible to route emails directly to any Yahoo or hotmail server using just java mail client?
    Thanks
    Regards
    RP

Maybe you are looking for