How to build a mail server in java?

greetings all i have an app(spring+hibernate) that needs to send thousands of emails simultaneously and i was told that the best solution here is to have a mail server i don't have any idea where to start or if there's a framework or a service that is better so please guys give me some info where to start, thank you.

[http://java.sun.com/products/javamail/FAQ.html#servers|http://java.sun.com/products/javamail/FAQ.html#servers]

Similar Messages

  • How to Configure a mail server with OIM

    Experts ,
    Any idea/links/Docs on how to configure a mail server with OIM and to send mail notification to someone .
    Pardon me, if my questions seems to be incomplete .
    Thanks
    Suren

    .Create an IT Resource of Type Mail Server. Give Name as "Email Server.Now populate the values for all the parameter for example Server,username,password and authentication type.
    .Go to System Configuration and in Email Server property value give the name of IT resource you created in step1 so the name will be "Email Server".
    http://forums.oracle.com/forums/messageview.jspa?messageID=3867506&stqc=true

  • A very simple question: how to obtain the mail server name?

    In our JSP application, at one point an email will be sent to notify one event. Currently, that is done by using the html tag: mailto. To have more control on the email in tems of context format (a bad layout right now) and others. I would like to have it processed at servlet by using the JavaMail API, so that it have a nice format and have the sender's email address right in case email client is not installed in the machine where the browser in. The JavaMail API is straight forward. The question is how to obtain the mail server name, and the sender's email address if there is one?
    Thanks.
    v.

    How to obtain the mail server's name? It's your server, you should know its name. Or if it isn't your server, you should ask the administrator for its name. Point is, you need to decide in advance what server you are going to use and hard-code its name into the program or into a properties file.
    And how to obtain the client's e-mail address? You have to ask the client, probably by putting a box in the HTML and asking them to type it.

  • How do you setup mail server

    i need help on how to setup my mail server for my company.  i just dont know how and i have a domain setup please please help me
    thanks,
             CEO Jared Longston   (sorry for being unprofessional in this message)

    IT's a fairly straight-forward process:
    Install Server app from AppStore.
    Install Server Admin Tools 10.7.
    Turn Email services on in Server app.
    Configure Email service specifics in Server Admin.
    The following resources should help you with the specifics:
    https://help.apple.com/advancedserveradmin/mac/10.7/
    http://www.maclife.com/article/howtos/how_install_and_set_mac_os_x_lion_server
    Hope this helps a little. Sorry that I didn't get more into specifics, but your question is quite broad.
    ~Mike

  • How to organize your mail server to

    how to organize your mail server to

    To what? More information about what you want to do would be very helpful.

  • How to get Formatted Mail Content through Java Application

    I am using a mail sending function in my applet code which is listed below:
    Main content is fetched from a format tool bar in JSP Page and it is passed as parameter to applet and it is used inside the mail content.
    Same content when passed and executed in a JSP page, the formatted content is not lost and it is included in mail content as what it is fetched from Format Tool Bar.
    Format is lost when it is used inside the Java Application mail sending function.
    The below code I have used to send mail:
    package com;
    import java.util.HashSet;
    import java.util.Properties;
    import java.util.Set;
    import javax.mail.BodyPart;
    import javax.mail.Message;
    import javax.mail.Multipart;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeBodyPart;
    import javax.mail.internet.MimeMessage;
    import javax.mail.internet.MimeMultipart;
    class mailsendClass
    public void sendmail(String from,String host,boolean debug,String msgText)
         try
              Set tomailsid = new HashSet();
              Set ccmailsid = new HashSet();
              //to mail ids           
              tomailsid.add("[email protected]" );          
              tomailsid.add("[email protected]" );
              tomailsid.add("[email protected]" );
              //cc mail ids
              ccmailsid.add("[email protected]" );
              ccmailsid.add("[email protected]" );
              String mailarray[]= (String[])tomailsid.toArray(new String[tomailsid.size()]);
              String ccmailID[]= (String[])ccmailsid.toArray(new String[ccmailsid.size()]);
              Properties props = new Properties();
              //props.put("mail.smtp.port","425");
              props.setProperty("mail.smtp.host", host);
              if (debug) props.setProperty("mail.debug", ""+debug);
              Session session = Session.getInstance(props, null);
              session.setDebug(debug);
              String mailsubject = "Mail Subject";
              // create a message
              Message msg = new MimeMessage(session);
              msg.setFrom(new InternetAddress(from));
              javax.mail.internet.InternetAddress[] toAddress=new javax.mail.internet.InternetAddress[mailarray.length];
              for (int i=0;i<mailarray.length ;i++ )
              toAddress=new javax.mail.internet.InternetAddress(mailarray[i]);
              System.out.println ("id inside to address loop " + i + " is "+ mailarray[i]);
              System.out.println ("toAddress " + i + " is "+ toAddress[i]);
              msg.setRecipients(Message.RecipientType.TO, toAddress);
              msg.setSubject(mailsubject);
              try
                   javax.mail.internet.InternetAddress[] CCAddress=new javax.mail.internet.InternetAddress[ccmailID.length];
                   for (int i=0;i<ccmailID.length ;i++ )
                        CCAddress[i]=new javax.mail.internet.InternetAddress(ccmailID[i]);
                        System.out.println("CC Array is ===> " +CCAddress[i] );//          
              msg.setRecipients(Message.RecipientType.CC,CCAddress);
              catch(Exception ss)
                   System.out.println("CC mail Exception is ====>"+ ss);     
                   msg.setSentDate(new java.util.Date());
    //          Multipart multipart = new MimeMultipart("relative");
                   Multipart multipart = new MimeMultipart("alternative");
              BodyPart messageBodyPart = new MimeBodyPart();
              messageBodyPart.setContent(msgText, "text/html");
    //          messageBodyPart.setContent(msgText, "text/plain");
              multipart.addBodyPart(messageBodyPart);          
                   msg.setContent(multipart);
              Transport.send( msg );
         catch (Exception e)
              System.out.println("The Exception is ------>"+e);
    public class SendMail {
    public static void main(String[] args)
         System.out.println("before Mail Send ");
         mailsendClass mail = new mailsendClass();
         String from="[email protected]";
         String host="172.16.2.6";
         String msgText="<p><strong>Index</strong><br />I have posted the following PDFs (Second Pages) as mentioned to start producing the Index:<br />• Engage<br />• Chapters 1–6<br /><a title='ftp:///Index' href='ftp://index/'>ftp:///Index</a><strong><br />XML Coding - Files with errors</strong><br />• Engage<br />• Chapters 1–6<br /><a title='ftp:///XML_Coding_Need%20Fixing' href='ftp://xml_coding_need%20fixing/'>ftp:///XML_Coding_Need%20Fixing</a></p>";
         mail.sendmail(from,host,true,msgText);
         System.out.println("after Mail Send ");
    Content placed in format tool bar is as follows:
    Index
    I have posted the following PDFs (Second Pages) as mentioned to start producing the Index:
    • Engage
    • Chapters 1–6
    ftp:///Index
    XML Coding - Files with errors
    • Engage
    • Chapters 1–6
    ftp:///XML_Coding_Need%20Fixing
    Content fetched from format tool bar inside JSP page is as follows:
    <p><strong>Index</strong>
    I have posted the following PDFs (Second Pages) as mentioned to start producing the Index:
    &bull; Engage
    &bull; Chapters 1&ndash;6
    <a title="ftp:///Index" href="ftp://index/">ftp:///Index</a><strong>
    XML Coding - Files with errors</strong>
    &bull; Engage
    &bull; Chapters 1&ndash;6
    <a title="ftp:///XML_Coding_Need%20Fixing" href="ftp://xml_coding_need%20fixing/">ftp:///XML_Coding_Need%20Fixing</a></p>
    Fetched Content inside Java Application through parameter and it will use as input for mail content is as follows:
    <p><strong>Index</strong>
    I have posted the following PDFs (Second Pages) as mentioned to start producing the Index:
    • Engage
    • Chapters 1–6
    <a title="ftp:///Index" href="ftp://index/">ftp:///Index</a><strong>
    XML Coding - Files with errors</strong>
    • Engage
    • Chapters 1–6
    <a title="ftp:///XML_Coding_Need%20Fixing" href="ftp://xml_coding_need%20fixing/">ftp:///XML_Coding_Need%20Fixing</a></p>
    Actual mail received after Java Application execution is as follows:
    Index
    I have posted the following PDFs (Second Pages) as mentioned to start producing the Index:
    ? Engage
    ? Chapters 1?6
    ftp:///Index
    XML Coding - Files with errors
    ? Engage
    ? Chapters 1?6
    ftp:///XML_Coding_Need%20Fixing
    Unicode characters in the mail content are replaced by “?”.
    In the function listed above I have used the MIME Setting as
    Multipart multipart = new MimeMultipart("alternative");
    I have tried by using “relative” MIME format also as
    Multipart multipart = new MimeMultipart("relative");
    But I am not getting the actual format passed as input to the Java Application in the mail content.
    Can anybody let us know how to overcome this problem?
    Thanks in advance.

    You need to really understand how the different multiparts work instead of just guessing.
    But for your application, you don't need a multipart at all. Just use msg.setText(msgText, null, "html");
    Although that doesn't explain your problem, it will simplify your program.
    How are you determining that the mail received doesn't have the formatting? Are you viewing it in a
    mail reader (e.g., Outlook)? Or are you fetching it with JavaMail?
    Are you using an Exchange server? Exchange will often reformat your message to what it thinks you meant.

  • How to whitelist my Mail server IP range with microsoft

    Hello ,
    we have two mail server hosted in one IP range and all mails from these servers are rejecting by MICROSOFT with attached error  .
    Final-Recipient: rfc822; anil????[email protected]
    Original-Recipient: rfc822;[email protected]
    Action: failed
    Status: 5.0.0
    Remote-MTA: dns; mx3.hotmail.com
    Diagnostic-Code: smtp; 550 SC-001 (BAY004-MC4F13) Unfortunately, messages from
        41.203.XX.XXX weren't sent. Please contact your Internet service provider
        since part of their network is on our block list. You can also refer your
        provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
    following actions taken
    1. SPF is implemented in both mail servers now .
    2. Checked in all possible blacklisting sites and none has blocked our ips .
    pls guide how and with whom we can take up in Microsoft , our users will able to communicate to hotmail / Live Ids .
    regardds
    Alex Chacko

    Hi Mallory,
    Did you get any bounce back message when sending mail to Microsoft ?
    I recommend you send a message to
    [email protected] and include your ip address 212.129.50.221.
    The Microsoft Online Services Technical Support will help you to remove your ip from black list.
    Here is a similar thread for your reference:
    https://social.technet.microsoft.com/Forums/en-US/9417c4fd-c770-47d4-9aae-cba5e9eaa80f/microsoft-blocking-my-mail-server-ip-after-delist?forum=onlineservicesexchange
    Best regards,
    Niko Cheng
    TechNet Community Support

  • How to connect to IMAP mail server using java ?

    Hello Friends,
    I need to include a mailing facility in my application. Now its not the smtp server instead I have to connect to the IMAP server.
    Pls provide your valuable suggestions as to how do I go about this ?
    What API will I need to download ?? As javamail API does not have IMAP package.
    Thank you for your attention.
    Regards

    What API will I need to download ?? As javamail API does not have IMAP package.What gave you that idea? JavaMail does support IMAP.

  • How to build a small application using Java API

    Hai expertise,
         I want to retreive MDM repository info using JAVA API, i am following these blogs:
    /people/andreas.seifried/blog/2006/03/26/performing-free-form-searches-with-mdm-java-api
    /people/udi.katz/blog/2005/08/21/retrieving-data-from-mdm-server-using-the-mdm-java-api
    /people/udi.katz/blog/2005/07/17/mdm-connectivity-to-java-application
    <b>where to get the jar and sda files to build the application??
    In Developer Studio.. Windows -> Preferences -> Java -> Classpath variables. Is this the only place where we need to give the jar file path??
    Are there any other configurations to do(except setting container variable to MDM4J jar file) to connect my java application to MDM repository???</b>
    Regards,
    Chand.

    Hi Govada,
    (1)You need to add the MDM4j and other JAR files at:-
    right click on project -> Java Build Path -> Libraries -> Add External JARs
    (2)If the project is Web Dynpro project one
    then right click on project -> Web Dynpro Reference -> Library Reference -> and add sap.com/com.sap.mdm.tech.mdm4j
    Are you using JAVA API 1 or 2???
    Thanking you
    Namrata Dixit

  • How i connect to SQL server using java?

    hi every body
    i need to connect to a sql server database using java
    i do not know sql driver in java
    plz help me
    thanks

    This is certainly the wrong forum for that question. Search in the JDBC forum. This has been asked and answered many times.

  • How to build n-ary ? in Java

    Sir, I am not looking for n-arry. Its is quite different from n-ary.
    Its a concept of trees. Till now we have one root node and 2 or 3 or 4 child nodes. But i want to build a tree with one root node and n child nodes at the same level.
    root
    n n1 n2 n3 n4 n5 ....nn
    I think you got the point.. Otherwise please give your maild id sir, i will send the documentation of it.
    If know please tell me the solution .
    once again thanks.
    bye

    Massive crosspost. Answer here if you must.
    http://forum.java.sun.com/thread.jsp?forum=4&thread=444422

  • HT1277 How to access incoming mail server

    This is driving me mad
    I have a myname @me.com email address but is now not working because incoming server is not set -how do I set it - unable to get into change it

    When I try to add the account it says it cannot verify the account
    Should I start over, perhaps the account and password I am trying to set ( for my husband) is flawed

  • How to build a SQL server connection on Unix?

    Hi,I am new to Hyperion Performance Suite. The bqy can works in Designer but failed to connect database after I publish it. The following errors shown when I clicked 'process':Database logon failed: Failed to acquire access to database. SQLConnect: rc = -1, SQLSTATE: 77, Error Msg: 523 76 I have already created the following on Unix:1. a Data Source, connectivity: ODBC; Database type: SQL server, on Local Service Configurator2. a host and database services on Remote Service Configurator3. can 'ping' my SQL server 4. I have already publish my oce file on browserI think it is something about connectivity but unfortunately I know nothing about Unix. Do I need to install ODBC seperately? Thanks in advance.Ida

    You need to install/have another instance of SQL Server 2008, restore over there the database and perhaps create a SSIS package to move objects and data into SQL Server 2005
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to configure mail server

    Hi All,
    we are in a process of configure mail server in one of our sap instance.
    i have done the following settings,
    1. In t-code sicf      under virtual host SAPCONNECT, 
    2.   I  have added  in host data * : *
    3.under handler list CL_SMTP_EXT_SAPCONNECT.
    4. now in scot i have added my deault domain under "settings -> default domain " <company name.com>
    5.on double clicking on SMTP i have added the following entries
      SMTP CONNECTIONS : mail host :  smtp.gmail.com
                                               port : 465
                                           code page : 0
    SUPPORT ADDRESS TYPE : i have set internet address to *
    did i miss any of the steps in configuring the SMTP mail server.
    after sending the mail when i look in to t code  sost the message number displays "672"
    please advice how can i  configure mail server for incoming and outgoing
    Thanks in advance,
    Vardhan

    Hello Vardhan,
    I suggest you to go through the below links and cross check the configuration.
    http://help.sap.com/saphelp_nw04/helpdata/en/66/9c25413fabef23e10000000a155106/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/af/73563c1e734f0fe10000000a114084/content.htm
    http://help.sap.com/saphelp_470/helpdata/en/af/73563c1e734f0fe10000000a114084/content.htm
    Thanks,
    Siva Kumar
    Edited by: Siva Kumar Arivinti on Jan 19, 2012 3:16 AM

  • How to configure mail server for subscription

    Hi,
    I want to test subscription. My problem is how to configure the mail server.
    As to my understanding, we need first configure mail server, then the user can choose "Subscribe" in the Details screen of a folder.
    My steps are:
    1. In KM - CM - Utilities - Channels, specify SMTP server, userId and password.
    2. In KM - CM - Utilities - Channel originators, set the Original address for notificator.EMAIL.
    3. In KM - Collaboration - Groupware Transport - Mail Transport, specify SMTP server and sent message folder.
    After that, when I choose a user and click "Send email", it failed saying "Failed to communicate with SMTP server when sending the email.".
    Could anyone tell me what's wrong with my configuration, or what should I do to make subscription work?
    Thanks,
    Ray

    Hi Vineeth,
    Thanks for help.
    According to your steps:
    1. set up a mail transport and making notification and mailing service active.
       In System admin - KM - CM - Global services, I've enabled Inbox, Mailing and Notification services.
      In KM - CM - Collaboration - Groupware Transport, I've set up a mail transport:
      Name: JavaMailTransport
      SMTP Server: smtp.yahoo.com
      Sent message folder: /documents
      System alias name: mytransport
    2. Give everyone read permission on notifications in KM.
      Where can I set user's permission on notifications? I think you mean folder /etc/notifications, but I don't know how to set permissions.
    3. Check if proper id's are maintained in users profile.
      How to do this?
    Thanks for help~~
    Regards,
    Ray

Maybe you are looking for

  • After installing Photoshop Elements 10, it shuts down

    After the first time this happened, I deleted and then reinstalled Photoshop Elements 10.  But, the problem persists. After it the program opens and I select Edit, the program opens completely and then, immediately appears an error message from Windo

  • Mail for Exchange - Calendar Alarms Problem

    Hi there, I have MfE working brilliantly, but there is one small issue that is bothering me. I also use PC Sync to syncronise with Outlook at home. Everything works fine, and I use Outlook at home to set up the majority of my appointments and these o

  • Circle Sunday Calendar Year

    Hii    I have a real issue regarding FI Calendar year .In my case the financial runs for April to March.But there is a financial year variant maintained for Nov-Oct financial year also,which taked the circle sunday concept of period definition i.e th

  • New (aluminum) plus an old (clear) display together?

    Hi I currently have a dual 2gig powermac G5 with and older (clear) 20 inch display. If I got a new display(the new aluminum ones), can I link them together? thanks

  • BenQ screen flickering dots.

    I have bought a benq G2222HDL screen to use as an external monitor with a macbook pro using a DVI-D cable and a mini-port adaptor.  The image appears but with lots of green flickering dots. Is this screen compatible with a macbook or is there some se