Server code text sending

Hello, I've got this server code below. When a Client program has connected, it sends its text messages to this server and it prints them out. What I need it to do is determine who is to receive the message and send it to only those client programs. I need Help figuring out how to do this.
// MultiThreadServer.java
import java.io.*;
import java.net.*;
import java.util.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class MultiThreadServer extends JFrame {
     // Text area for displaying contents
     //private JTextArea jta = new JTextArea();
     public static void main(String[] args) {
          new MultiThreadServer();
     public int cn = 0;
     public Socket connectToDaemon;
     // IO streams
     DataOutputStream osToDaemon;
     DataInputStream isFromDaemon;
     public String un;
     public BufferedReader fin;
     public MultiThreadServer() {
          // Place text area on the frame
/**          getContentPane().setLayout(new BorderLayout());
          getContentPane().add(new JScrollPane(jta), BorderLayout.CENTER);
          jta.setLineWrap(true);
          jta.setWrapStyleWord(true);
          jta.setEditable(false);
          setTitle("MultiThreadServer");
          setSize(500, 300);
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          setVisible(true); // It is necessary to show the frame here!
          String user = "";
          boolean decision = true;
          try {
               // Create a server socket
               ServerSocket serverSocket = new ServerSocket(8000);
               System.out.println("MultiThreadServer started at " + new Date() + '\n');
               // Number a client
               int clientNo = 1;
               int adminNo = 1;
               while (true) {
                    // Listen for a new connection request
                    Socket connectToClient = serverSocket.accept();
                    /**  Get Username
                    fin = new BufferedReader(new InputStreamReader(connectToClient.getInputStream()));
                    StringBuffer readfinBuffer = new StringBuffer();
                    String s = fin.readLine();
                    String s = "NewUser";
//--------------CHECK USERNAME TO SEE IF IT'S A USER OR AN ADMIN------------------------------------
                    String beginning = "";
                    String name = "";
//--------------FIND ADMIN, CONNECT TO HIS DAEMON AND ASK IF HE WANTS TO TALK-----------------------
                    if (beginning.equals("Admin"))
                         user = "Admin";
                    } else {
                         user = "Client";
                         adminNo = clientNo;
          //GET ADMINS LOCATION  -- to be developed later
                         //connect to MessageDaemon
                         connectToDaemon = new Socket("10.0.5.39", 8001);
                         isFromDaemon = new DataInputStream(connectToDaemon.getInputStream());
                         osToDaemon = new DataOutputStream(connectToDaemon.getOutputStream());
                         // Send QueryString to Daemon
                         PrintWriter socketfinOut =
                              new PrintWriter(new BufferedWriter(new OutputStreamWriter(connectToDaemon.getOutputStream())));
                         socketfinOut.println("Ask");
                         socketfinOut.flush();
                         //Return decision value,
                         int des = isFromDaemon.readInt();
                         //get yes/no decision from MessageDaemon
                         decision = des == 0;
                    if (decision) {
                         if (beginning.equals("Admin"))
                              // Display the client number
                              System.out.println("Starting thread for " + user + ":" + name + " Num" + adminNo +
                                   " at " + new Date() + '\n');
                         } else {
                              // Display the client number
                              System.out.println("Starting thread for " + user + ":" + name + " Num" + clientNo +
                                   " at " + new Date() + '\n');
                              // Find the client's host name, and IP address
                              InetAddress clientInetAddress =
                                   connectToClient.getInetAddress();
                              System.out.println("Client " + clientNo + " " + s + "'s host name is "
                                   + clientInetAddress.getHostName() + "\n");
                              System.out.println("Client " + clientNo + " " + s + "'s IP Address is "
                                   + clientInetAddress.getHostAddress() + "\n");
                         // Create a new thread for the connection     SEND CLIENT# AND IP ADDRESS
                         HandleAClient thread = new HandleAClient(connectToClient);
                         un = s;
                         cn = clientNo;
                         // Start the new thread
                         thread.start();
                    } else {
                         //Send unable to connect signel
                    // Increment clientNo
                    clientNo++;
          catch(IOException ex) {
               System.err.println(ex);
     // Inner class
     // Define the thread class for handling new connection
     class HandleAClient extends Thread {
          private Socket connectToClient; // A connected socket
          // Construct a thread
          public HandleAClient(Socket socket) {
               connectToClient = socket;
          public BufferedReader in;
          // Run a thread
          public void run() {
               try {
                    // Create data input and output streams
                    DataInputStream isFromClient = new DataInputStream(
                         connectToClient.getInputStream());
                    DataOutputStream osToClient = new DataOutputStream(
                         connectToClient.getOutputStream());
                    //Send Thread number back to client
                    osToClient.writeDouble(cn);
                    // Continuously serve the client
                    while (true) {
                         int newNum = 0;
                         String n = "";
               //GET TEXT FROM CLIENT
                    //  Create your BufferedReader
                         in = new BufferedReader(new InputStreamReader(connectToClient.getInputStream()));
                    //  Create an empty StringBuffer to hold the data that you read...
                         StringBuffer readBuffer = new StringBuffer();
                    //  ... and read each character.
                         String readString = in.readLine();
               //PARSE STRING FOR RELEVANT INFO
               //SEND THE TEXT TO CLIENT
                    //SET IP VS CLIENT NUM ARRAY DATA
                    //WHILE NOT END OF ARRAY
                         //IF CLIENT NUM = CLIENT NUM OF SENDER, SEND MESSAGE
                    //  a conduit for writing (printing) over that socket:
                         PrintWriter socketOut =
                                   new PrintWriter(new BufferedWriter(new OutputStreamWriter(connectToClient.getOutputStream())));
                    //  Here's where we write out the string
                         socketOut.println(readString);
                    //  ... and here's where we make sure it's on its way!
                         socketOut.flush();
                    //  Now you can do what you want with the String:
                         System.out.println(readString + "\n");
               catch(IOException e) {
                    System.err.println(e);
}

Hello....HEllo.....HELlo.....HELLo......HELLO......
testing.......testing.......is this thing on?

Similar Messages

  • Complete code to send an attachment with a text message using java mailapi

    complete code to send an attachment with a text message using java mailapi
    code should be free from error

    http://java.sun.com/products/javamail/FAQ.html#examples
    Was this code too hard to find?
    Was the FAQ too hard to find?

  • HTTP server code 500 reason Internal Server Error explanation Error during

    Hi,
    I am trying to connect to SAP TM (Tranportation Management) System using HTTP adapter using PI 7.0.The scenario is
    ECC ->PI->SAP TM. I have configured HTTP adapter as the receiver with addressing type as HTTP Destination. I have created a RFC destination of type H pointing to SAP TM on PI. I have encountered the following error after executing the scenario.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="PLAINHTTP_ADAPTER">ATTRIBUTE_SERVER</SAP:Code>
      <SAP:P1>500</SAP:P1>
      <SAP:P2>Internal Server Error</SAP:P2>
      <SAP:P3>Error during parsing of SOAP header</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>HTTP server code 500 reason Internal Server Error explanation Error during parsing of SOAP header</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Thanks,
    Kiran

    Error during parsing of SOAP header
    Can you mention what are the settings done in Receiver HTTP channel.....the request that you send to target is not in proper format.
    One reason could be incorrect Content Type.....is it text/XML ?
    Regards,
    Abhishek.

  • Http server code 401 reason Unauthorized

    Hi,
    I am trying to setup a scenario of sending an IDOC from R/3 to XI and then sending it further to a 3rd party program using the HTTP Channel.
    If I go to transaction IDX5 in XI, I can see my IDOC sitting there as Inbound.  When I check the error message on it, I get the message "Http server code 401 reason Unauthorized explanation Unauthorized"  Also further along on the screen it says that the error category is "PLAINHTTP_ADAPTER" and Error ID is "ATTRIBUTE_SERVER". 
    Can someone guide me towards a solution?
    Thanks in Advance!
    Miguel

    Hi Rekha,
    I have checked the settings and they appear to be correct.
    Here is a piece of the trace of the monitor where the error occurs:-
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="T">---- Plain HTTP Adapter Outbound----</Trace>
      <Trace level="1" type="T">----
    </Trace>
    - <Trace level="1" type="B" name="CL_HTTP_PLAIN_OUTBOUND-ENTER_PLSRV">
      <Trace level="3" type="T">Quality of Service EO</Trace>
      <Trace level="1" type="T">Get XML-Dokument from the Message-Objekt</Trace>
      <Trace level="2" type="T">HTTP-Destination : SBO_ITK</Trace>
      <Trace level="3" type="T">Server pgsap09.sap.pg.co.za</Trace>
      <Trace level="3" type="T">Service-Nr. 80</Trace>
      <Trace level="3" type="T">URL /SBOWebService/xi</Trace>
      <Trace level="3" type="T">~request_method POST</Trace>
      <Trace level="3" type="T">~server_protocol HTTP/1.0</Trace>
      <Trace level="3" type="T">accept: /</Trace>
      <Trace level="3" type="T">content-type: text/xml</Trace>
      <Trace level="3" type="T">msgguid: 2F7389425DBE1711E100000082010B5A</Trace>
      <Trace level="3" type="T">service: DR0</Trace>
      <Trace level="3" type="T">interface namespace: http://sap.com/xi/SBO</Trace>
      <Trace level="3" type="T">interface name: MasterDataFunctionModule__vendorMasterUpdate</Trace>
      <Trace level="3" type="T">quality of service: EO</Trace>
      <Trace level="3" type="T">Header-Fields</Trace>
      <Trace level="3" type="T">Prolog conversion Codepage: UTF-8</Trace>
      <Trace level="3" type="T">Epilog conversion Codepage: UTF-8</Trace>
      <Trace level="3" type="T">content-length 3273</Trace>
      <Trace level="2" type="T">HTTP-Response :</Trace>
      <Trace level="2" type="T">Code : 401</Trace>
      <Trace level="2" type="T">Reason: Unauthorized</Trace>
      <Trace level="2" type="T">Code : 401</Trace>
      <Trace level="2" type="T">Reason: Unauthorized</Trace>
      </Trace>
    From this it appears that it is complaining about the user name into the external program, although when I do a test connection in SM59, I get a positive response?
    Thanks,
    Miguel

  • [Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.  'Items' (OITM) (OITM)

    Dear Experts,
    i am getting the below error when i was giving * (Star) to view all the items in DB
    [Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.  'Items' (OITM) (OITM)
    As i was searching individually it is working fine
    can any one help me how to find this..
    Regards,
    Meghanath.S

    Dear Nithi Anandham,
    i am not having any query while finding all the items in item master data i am giving find mode and in item code i was trying to type *(Star) and enter while typing enter the above issue i was facing..
    Regards,
    Meghanath

  • Internal Server Error while sending mail with extended property

    I am using EWS Managed API. I just started fiddling with Extended properties. So I wrote simple code to send a simple mail with extended property attached to it.
    Forming the mail part I simply copy pasted from this
    MSDN page. For testing purpose I suppressed certificate validations.
    This is my complete code:
    1 ServicePointManager.ServerCertificateValidationCallback = delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; };
    2 service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
    3 service.TraceListener = new TraceListener();
    4 service.TraceEnabled = false;
    5
    6 service.Credentials = new WebCredentials("[email protected]", "password@123");
    7 service.Url = new Uri("https://exchng.domain.com/EWS/Exchange.asmx");
    8
    9 Guid MyPropertySetId = new Guid("{C11FF724-AA03-4555-9952-8FA248A11C3E}");
    10
    11 // Create a definition for the extended property.
    12 ExtendedPropertyDefinition extendedPropertyDefinition = new ExtendedPropertyDefinition(MyPropertySetId, "Expiration Date", MapiPropertyType.String);
    13
    14 // Create an e-mail message that you will add the extended property to.
    15 EmailMessage message = new EmailMessage(service);
    16 message.Subject = "Saved with extendedPropertyDefinition of two days";
    17 message.Body = "The expiration date is contained within the extended property.";
    18 message.ToRecipients.Add("[email protected]");
    19
    20 // Add the extended property to an e-mail message object named "message".
    21 message.SetExtendedProperty(extendedPropertyDefinition, DateTime.Now.AddDays(2).ToString());
    22
    23 // Save the e-mail message.
    24 message.SendAndSaveCopy();
    Please find the rest of the question in first reply, as I got "Body must be 4 to 60000 characters long".

    Rest of the question:
    I am getting below exception (with no nested inner exceptions) on line 24:
    An internal server error occurred. The operation failed.
    at Microsoft.Exchange.WebServices.Data.ServiceResponse.InternalThrowIfNecessary()
    at Microsoft.Exchange.WebServices.Data.ServiceResponse.ThrowIfNecessary()
    at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()
    at Microsoft.Exchange.WebServices.Data.ExchangeService.InternalCreateItems(IEnumerable`1 items, FolderId parentFolderId, Nullable`1 messageDisposition, Nullable`1 sendInvitationsMode, ServiceErrorHandling errorHandling)
    at Microsoft.Exchange.WebServices.Data.ExchangeService.CreateItem(Item item, FolderId parentFolderId, Nullable`1 messageDisposition, Nullable`1 sendInvitationsMode)
    at Microsoft.Exchange.WebServices.Data.Item.InternalCreate(FolderId parentFolderId, Nullable`1 messageDisposition, Nullable`1 sendInvitationsMode)
    at Microsoft.Exchange.WebServices.Data.EmailMessage.InternalSend(FolderId parentFolderId, MessageDisposition messageDisposition)
    at Microsoft.Exchange.WebServices.Data.EmailMessage.SendAndSaveCopy()
    If I comment line number 21, the code works fine and sends the message. So why it fails with extended properties?

  • HTTP server code 500 reason Internal Server Error

    HI,
    I am getting following error in Call Adapter
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Message canceled
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="PLAINHTTP_ADAPTER">ATTRIBUTE_SERVER</SAP:Code>
      <SAP:P1>500</SAP:P1>
      <SAP:P2>Internal Server Error</SAP:P2>
      <SAP:P3>Internal Server Error</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>HTTP server code 500 reason Internal Server Error explanation Internal Server Error</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    I have a Business system that is sending the material master data to a different Business System via XI. The message is received by XI correctly. XI correctly performs the transformation and identifies the message interface and selects correct receiver for the message. XI communicates with the receiving business system via the appropriate communication channel.
    The message "fails" in the receiving system with the following error:
    HTTP server code 500 reason Internal Server Exception explanation Error parsing of SOAP header.
    The channel is using HTTP Adapter type, and i cross checked the communication channel details like Addressing type, target host, service number, path, user name, user password.......each and every detail is correct.
    Please help me out to find the solution to the problem.
    Points will be gladly awarded.
    Edited by: Ashish Soni on Sep 24, 2008 9:02 PM

    try sending the same XML message picking from moni and check whether you are getting same error or not?
    if you get same error then check at web server for logs there you can find exact error.

  • Sample code to send a mail from SAP

    Hi guys
    could any one provide me with the
    sample code to send a mail from SAP with text as the main body of that mail via bcs classes

    Hi,
         Please go through this code: U can send mail;
    Tables : zchp_cust-info.
    DATA: OBJCONT LIKE SOLISTI1 OCCURS 5 WITH HEADER LINE.
    DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
    DATA: DOC_CHNG LIKE SODOCCHGI1.
    DATA: ENTRIES LIKE SY-TABIX.
    DATA: NAME(15).
    DATA: CON_NAME(20).
    DATA: req_num like zchp_cust_info.
    DATA: I_TAB_CHP LIKE ZCHP_CUST_INFO OCCURS 0 WITH HEADER LINE.
    *data: reno like ZCHP_CUST_INFO-req_num value .
    data input for the mail
    select * from zchp_cust_info
    appending table i_tab_chp where req_num = c_knumv.
    LOOP AT I_TAB_CHP.
    concatenate i_tab_chp-created_by i_tab_chp-req_num into CON_NAME.
    *WRITE: / con_name.
    ENDLOOP.
    Fill the document
    DOC_CHNG-OBJ_NAME = 'Refe'.
    DOC_CHNG-OBJ_DESCR = 'TESCRA Ref Number !'.
    DOC_CHNG-SENSITIVTY = 'P'.
    *OBJCONT = 'Tescra'.
    OBJCONT = CON_NAME.
    APPEND OBJCONT.
    OBJCONT = con_name.
    APPEND OBJCONT.
    DESCRIBE TABLE OBJCONT LINES ENTRIES.
    READ TABLE OBJCONT INDEX ENTRIES.
    DOC_CHNG-DOC_SIZE = ( ENTRIES - 1 ) * 255 + STRLEN( OBJCONT ).
    Fill the receiver list
    CLEAR RECLIST.
    RECLIST-RECEIVER = SY-UNAME.  " replace with <login name>
    RECLIST-REC_TYPE = 'B'.
    RECLIST-EXPRESS = 'X'.
    APPEND RECLIST.
    CLEAR RECLIST.
    RECLIST-RECEIVER = 'sapuser'.
    RECLIST-REC_TYPE = 'U'.
    APPEND RECLIST.
    Send the document
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
         EXPORTING
              DOCUMENT_TYPE  = 'RAW'
              DOCUMENT_DATA  = DOC_CHNG
              PUT_IN_OUTBOX  = 'X'
         TABLES
              OBJECT_CONTENT = OBJCONT
              RECEIVERS      = RECLIST
         EXCEPTIONS
              TOO_MANY_RECEIVERS         = 1
                   DOCUMENT_NOT_SENT          = 2
                  OPERATION_NO_AUTHORIZATION = 4
                   OTHERS                     = 99.
        CASE SY-SUBRC.
          WHEN 0.
            LOOP AT RECLIST.
              IF RECLIST-RECEIVER = SPACE.
                NAME = RECLIST-REC_ID.
              ELSE.
                NAME = RECLIST-RECEIVER.
              ENDIF.
              IF RECLIST-RETRN_CODE = 0.
                WRITE: / NAME, ': succesfully sent'.
              ELSE.
                WRITE: / NAME, ': error occured'.
              ENDIF.
            ENDLOOP.
          WHEN 1.
            WRITE: / 'Too many receivers specified !'.
          WHEN 2.
            WRITE: / 'No receiver got the document !'.
          WHEN 4.
            WRITE: / 'Missing send authority !'.
          WHEN OTHERS.
            WRITE: / 'Unexpected error occurred !'.
        ENDCASE.
    <b>Please provide points if the issue is solved.</b>
    Regards,
    Sunil

  • Http server code 503 reason Service Unavailable explanation Service Unavail

    Hi all
    I am trying to send data to a HTTP SITE.
    I am getting the following error.
    Could somebody guide me how to solve this.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>Oxalate</SAP:Category>
      <SAP:Code area="PLAINHTTP_ADAPTER">ATTRIBUTE_SERVER</SAP:Code>
      <SAP:P1>503</SAP:P1>
      <SAP:P2>Service Unavailable</SAP:P2>
      <SAP:P3>Service Unavailable</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Http server code 503 reason Service Unavailable explanation Service Unavailable</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Thankyou

    Same errors are comming up.
    Could not do a RFC connection to website.

  • HTTP server code 400 reason Bad Request explanation Bad Request

    hello everybody,
    i'm working with SAP PI 7.1
    I designed my interface IDOC-PI-HTTP.
    when i send idoc from R3 i see this message in PI monitor:
    HTTP server code 400 reason Bad Request explanation Bad Request
    i tried to configure a HTTP port in SM59 and use it in my Communication Channell,  but when i test connection i have same error.
    I'm using a https address.
    have you any suggestion?
    thanks
    Alex

    Hello,
    I already verify with 3 party developer. He confirmed me he is expecting i send data by POST.
    Yes, but how does the HTTP Body looks like?See sample webservice below:
    http://ws.cdyne.com/delayedstockquote/delayedstockquote.asmx?op=GetQuickQuote and scroll down to see how an HTTP POST looks like
    Content type is a String
    Normally, the content-type for an http post is application/x-www-form-urlencoded. But then, you need to know the prolog and epilog in the http body.
    he gave me a url address https://.......
    where i need set the parameter HTTPS??
    https (http with ssl) is configured in mm59 type G (external server). To enable https, you need to select the SSL folder in which you have installed the CA (certificate authority) certs. Make sure that once you have installed the CA certs, you have performend an ICM Restart.
    Hope this helps,
    Mark
    Edited by: Mark Dihiansan on Jul 25, 2011 11:21 AM

  • Can I tell within my server code that a client vm has connected?

    I have some server-side code and would like to modify the code path based on whether a client is connected and debugging or not. For example:
    if (!isClientDebugging())
      doSomething();
    else
      doSomethingElse();So what would go in the isClientDebugging() method? I could do something very ugly like attempt to connect to myself and if that failed due to the port not being available I could assume a client is connected. But I have to think there's a better way.

    What are you trying to achieve? My client/server system uses simple socket communication. A client can connect to a server and send messages to the server. A client can change the logging state (e.g. "fine for debugging") of the server by just sending a custom command. My server holds references for each client that connected, so the server knows how many (and therefore if at all) clients are connected. If a client disconnects the server will remove it from it's list. If the client crashes the server removes it from its list the next time it pushes a message to all clients because it gets an exception for each client the is not connected anymore.
    see http://java.sun.com/docs/books/tutorial/networking/sockets/index.html

  • Writing a php code to send email link

    Hi guys-
    I have a php Fulfillment API that downloads a book. I want to write a code that sends an email (like one of those email address verification emails) with a random link that will run the code. I want to place the link in Paypal so that when a transaction is completed they get sent the email with the download link- Only problem- I just learned the term php- still don’t quite know what it means. Any thought of where I can start? I’m using cs6. Thanks in advance.

    Here is what php is:
    It is interpreted code that runs on your server.
    According to the folks that are responsible for it, "PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML."
    It is open source and free, so if your hosting provider does not support it, you need to change your hosting provider.
    But you have a fulfillment API (Application Programming Interface). You need to use sample code supplied with that API to create a script that will do what you want. Since you do not know php, you're looking at probably a month's worth of work in learning enough to be able to write in this scripting language, testing it and applying the sample code you have been supplied to do what you want.
    Go to http://us.php.net/  to learn how to use php or, better still, sign up for a course.
    Or hire a professional to build what you want.
    -Mark

  • Code to send sms using j2ee application

    Hi all,
    this is shashi kant,
    plz send me the code to sent a sms using j2ee applications.
    or tell me the api these are used to  develop this kind of application.
    thanks
    my email id is---- [email protected]

    I'm working on a project to send SMS from a MIDlet
    to a servlet and back to the MIDlet through a
    SMSC.can anybody send a sample code for me to get
    help ?you should have a sms server .
    your MIDlet send the parameters to the servlet (mobile phone, message, ..) and, after, the servlet send a request to the sms center and he send to the mobile number the message !
    good luck

  • Short code texts

    hi all
    i have started to see charges on my iphone 4 bill for short code text messages . I have not received any messages in my message folder nor have i sent any messages for about a month . The code on bell canada's usuage info shows 49988  i called bell they said i must have replied to a message received or subscribed to something . I have unlimited text messaging . I did a google search on the topic and some people say something else on my phone is sending or getting these hidden messages . How can i figure out what it is . I have just turned  about everything off . I only use the phone at home over wifi . i play 1 game angry birds and listen to my music from itunes .  It is sad I cannot have things turned on on my phone for fear of getting charges i did not make. If anyone knows what i can do please share . i do not want to have to check my usuage on my billing every day just to make sure i am not getting phoney charges .
    thanks fran

        Let's get to the bottom of this SMS issue JHolding! What text messaging application are you using? How many bars of service on your phone? What is your ZIP code? Is this issue with all numbers or only certain short codes?
    AntonioC_VZW
    Follow us on Twitter at www.twitter.com/VZWSupport

  • Server does not send mails

    I have a problem with the mail server.
    He sends some mails not to other mail servers.
    I get back the message with the error:
    host mail.domain.de [...IP...] said: 554 5.7.1
    <unknown [...IP...]>: Client host rejected: <-- please use SMTP-AUTH
    for mail delivery, POP-before-SMTP support has been expired
    The SMTP Logfile:
    Jan 14 12:04:23 server postfix/smtp[77846]: 81FD09116D: to=<[email protected]>, relay=mail.domain.de[…IP…]:25, delay=0.12, delays=0/0.01/0.08/0.04, dsn=5.7.1, status=bounced (host mail.domain.de[…IP…] said: 554 5.7.1 <unknown[...IP...]>: Client host rejected: <-- please use SMTP-AUTH for mail delivery, POP-before-SMTP support has been expired --- bitte nutzen Sie SMTP-AUTH zum Mailversand, POP-before-SMTP wird nicht mehr unterstuetzt: <a class="jive-link-external-small" href="http://">http://smtp-auth.info --> (in reply to RCPT TO command))
    Jan 14 12:04:27 server postfix/cleanup[77842]: A5F9A91170: message-id=<[email protected]>
    Jan 14 12:04:27 server postfix/bounce[77847]: 81FD09116D: sender non-delivery notification: A5F9A91170
    Jan 14 12:04:27 server postfix/qmgr[77776]: A5F9A91170: from=, size=3504, nrcpt=1 (queue active)
    Jan 14 12:04:27 server postfix/qmgr[77776]: 81FD09116D: removed
    postconf -n
    biff = no
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    content_filter = smtp-amavis:[127.0.0.1]:10024
    daemon_directory = /usr/libexec/postfix
    debugpeerlevel = 2
    enableserveroptions = yes
    header_checks = pcre:/etc/postfix/customheaderchecks
    html_directory = /usr/share/doc/postfix/html
    inet_interfaces = all
    localrecipientmaps =
    mail_owner = _postfix
    mailboxsizelimit = 0
    mailbox_transport = dovecot
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    messagesizelimit = 10485760
    mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
    mydomain = home.de
    mydomain_fallback = localhost
    mynetworks = 127.0.0.0/8,192.168.112.0/24
    newaliases_path = /usr/bin/newaliases
    queue_directory = /private/var/spool/postfix
    readme_directory = /usr/share/doc/postfix
    recipient_delimiter = +
    relayhost =
    sample_directory = /usr/share/doc/postfix/examples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = _postdrop
    smtpsasl_authenable = no
    smtpsasl_passwordmaps =
    smtpdclientrestrictions = permit_mynetworks permitsaslauthenticated permit
    smtpdenforcetls = no
    smtpdhelorequired = yes
    smtpdhelorestrictions = rejectinvalid_helohostname rejectnon_fqdn_helohostname
    smtpdpw_server_securityoptions = gssapi,cram-md5,login,plain
    smtpdrecipientrestrictions = permitsaslauthenticated permit_mynetworks rejectunauthdestination checkpolicyservice unix:private/policy permit
    smtpdsasl_authenable = yes
    smtpdtlsCAfile = /etc/certificates/server.home.de.2348FC1580BA9FB417961D5931800EFA6B331800.chain .pem
    smtpdtls_certfile =
    smtpdtls_excludeciphers = SSLv2, aNULL, ADH, eNULL
    smtpdtls_keyfile =
    smtpdtlsloglevel = 0
    smtpduse_pwserver = yes
    smtpdusetls = no
    unknownlocal_recipient_rejectcode = 550
    virtualaliasdomains = $virtualaliasmaps
    virtualaliasmaps =
    What is wrong?
    Message was edited by: kadametz
    Message was edited by: kadametz

    If you want your mail delivered properly the Official Host Name of the sending server should match the PTR (reverse DNS) of the sending IP Address, and there should be an "A" record that matches the OHN as well.
    Example:
    mail.yourdomain.com (Official Host Name) on 123.123.123.123
    PTR for 123.123.123.123 should match mail.yourdomain.com
    There should be an A record in yourdomain.com pointing to 123.123.123.123
    Kostas

Maybe you are looking for

  • EA3500 - Windows was unable to connect... (Win 7 and Win 8.1 have done this off and on)...

    I recently purchased a Linksys EA3500 router and am using it as the sole router in my home network.  I have primarily had three devices connected to the network computers/tablets -  two running Win7 and one running Win8.1. The first few days were OK 

  • TAC GL vs tax report mismatch

    When reviewing the details for a TAX G/L code, through the Chart of accounts or through G/L report the tax figure is say $200,000 for a month and comprises approx 50 transactions. When running the tax report for the same period only 5 transactions ap

  • Exception when starting jboss

    when i starting jboss i am getting following exceptions hot to solve it java.net.BindException: Address already in use: JVM_Bind      at java.net.PlainSocketImpl.socketBind(Native Method)      at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331

  • Where to buy charger for sony xperia model no. SGPT1211?

    i would really like to get sony xperia charger.. pls.help me to find where to buy it. thanks  Solved! Go to Solution.

  • My iphone has a white screen.

    i have tried all of the tricks including 1. holding down the lock and hokme button simutaniously 2. restoring on itunes PLEASE HELP. IM DESPERATE! thanks(: