How to send JMS Message with use title, content, and attach file

I use OpenJMS server such as Message server
and use Tomcat 4.0 as web server.
I want to use JMS to send Message that message have
title, content, and can attach file.

You probably wanna use SOAP. SOAP is based on XML, it has a soapheader (can have the title) the soapbody (has your actual message) and it can also have files attached.
read more here
http://www.w3.org/TR/SOAP/
The only thing you have to be carefull with is that when you want to put a SOAPMessage on a JMS queue, you have to serialize it
kind regards

Similar Messages

  • How to send JMS Message from a BPM Process

    Hi All
    I have small query regarding sending JMS Message from a bpm process. Is it possible to send JMS message from one bpm process to another bpm process.
    I have a scenario in which I need to send a JMS message to a queue where another process is listening on that queue and as soon as the message is received on the queue the process instance is created.
    I know how to listen for the JMS message on the queue, but I don't how to send a JMS message from a process.
    Also Can I create process by sending the Notification to the process instead of a JMS message. But the process to be created is not a subprocess i.e. Can notification be send accross different processes.
    Any information or example in this regard would be helpful.
    Thanks in advance
    Edited by: user9945154 on Apr 22, 2009 7:46 PM

    Hi,
    Here's one approach to sending JMS messages from an Oracle BPM process. If you're doing this just to send a message into another process, do not take this approach. It's far easier and quicker if you do this using the OOTB "send notification" logic.
    These steps describe how to do this using WebLogic. The steps would be different if you're using another ap server / JMS provider.
    1. Guessing you've already done this, but first expose the two required WebLogic jar files for JMS messaging as Java components in the External Resources. The two files for WebLogic are weblogic.jar and wljmsclient.jar” (located in the < WebLogic home directory > /weblogic/server/lib” directory).
    AquaLogic BPM JMS Queue Listener for WebLogic 8.1
    2. You've probably already done this, but add an External Resource to represent the J2EE container:
    • Name: “weblogicJ2EE” - this is important and will be used in the next step
    • Supported Type: “GENERIC_J2EE”
    • Initial Context Factory: “weblogic.jndi.WLInitialContextFactory”
    • URL: “t3://localhost:7001”
    • Principal: and Credentials: whatever userid and password you defined to access theWebLogic administrative console.
    3. Create the External Resource that represents the send queue configuration. In this example, I'm calling it “WebLogic Send Queue”. This is important - remember what you named it because you will use this name in the logic that sends the JMS message. This new External Resource is configured as:
    • J2EE: “weblogicJ2EE” (same name as the second External Resource you created)
    • Destination Type: “QUEUE”
    • Lookup Name: “weblogic.examples.jms.exampleQueue”
    • Connection Factory Lookup Name: “weblogic.examples.jms.QueueConnectionFactory”
    4. Here's the logic to send a Message to the Queue
    <pre class="jive-pre"><p />msg as String = "Hello World"
    jmsMsg as Fuego.Msg.JmsMessage
    msg = "<?xml version=\"1.0\"?><Msg>" + msg + "</Msg></xml>"
    jmsMsg = JmsMessage(type : JmsMessageType.TEXT)
    jmsMsg.textValue = msg
    sendMessage DynamicJMS
    using configuration = "WebLogic Send Queue",
    message = jmsMsg</pre>
    Note that the “sendMessage” method uses the configuration parameter “WebLogic Send Queue”. You previously created a JMS messaging service External Resource with this name in the third step.
    Again, please don't go this route if you're just using it to send notifications between processes,
    Dan

  • How to send JMS message from oracle to weblogic

    Hello,
    I am facing with a problem of sending jms message from oracle to weblogic. I am using oracle 10g and weblogic server 9.1. Here is the problem. I would like to create a trigger to send JMS message to weblogic server whenever there is an update in oracle database. So I created a java class that will send a jms message to weblogic server. But in that class I use the jndi from weblogic: weblogic.jndi.WLInitialContextFactory
    when I use the loadjava utility to load that class into oracle, the status of that class is invalid though this class is working fine in eclipse with the weblogic.jar included. I was thinking because the jndi from weblogic needs the weblogic.jar in order to work, then I loaded that jar file into oracle (it took about 20 minute to load everything) and everything loaded into oracle from that jar file is invalid and missing some reference.
    So my question is: how do I send a jms message from oracle to weblogic using a java class with the right jndi?
    Any help will be appreciated.
    Thanks
    TL

    It should be quite straightforward to do this. As stated you need weblogic.jar in your classpath, then use 100% standard JMS calls to publish.
    Ensure that you set the following properties before getting your initial context:
    java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
    java.naming.provider.url=t3://node:7001 (or whatever)
    this will ensure that the correct JMS implementation classes are invoked.
    You can't easily (without some mucking around) build a test implementation in an AQ environment and then deploy to WebLogic because in AQ you don't tend to use JNDI lookups (unless you've implemented oracle JNDI etc) but rather use non standard factory class to create connections etc.

  • How to send a message with javamail api

    Hi, anybody can tell me how i do to send a message with javamail?
    Thanks.
    Daniele.

    [rossifumi80],
    Here's a simple JavaMail application SendMessage.java that will connect a SMTP host and send a mail message out:
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class SendMessage {
      public static void main (String args[]) throws Exception {
        String host = args[0];
        String from = args[1];
        String to = args[2];
        // Get system properties
        Properties props = System.getProperties();
        // Setup mail server
        props.put("mail.smtp.host", host);
        // Get session
        Session session = Session.getDefaultInstance(props, null);
        // Define message
        MimeMessage message = new MimeMessage(session);
        // Set the from address
        message.setFrom(new InternetAddress(from));
        // Set the to address
        message.addRecipient(Message.RecipientType.TO,
          new InternetAddress(to));
        // Set the subject
        message.setSubject("Hello JavaMail");
        // Set the content
        message.setText("Welcome to JavaMail");
        // Send message
        Transport.send(message);
    }HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • How to send a message with a photo to a company?

    I AM S DISABLED SENIOR WITH SHORT-TERM MEMORY. PLEASE TELL ME HOW TO SEND A MESSAGE AND INCLUDE A PHOTO I HAVE ON MY i-PHONE 5S?
    THANK YOU IN ADVANCE FOR THE ASSISTANCE.
    FLIGHTLEADER-1

    Open the photo, assuming it is in Photos, and then in the lower left corner under the photo is a box with an up-pointing arrow.  Tap that box, and then the photo will have a blue circle with a checkmark in its lower right corner and the word Next at the upper right.  Tap Next, then choose how you want to send the photo, by text message, email, and so on.  Simply address the method you have chosen and put in any text you want to include.

  • How to send SOAP Message with Oracle B2B

    Hi everyone,
    I need your help to send out from Oracle B2B a SOAP message with attachment of any type of file (image, pdf, etc.). Possibly using a SOA composite application or another way, it doesn't matter. I already create an ebMS partnership with a custom document protocol and I already create a working SOA composite application to send only text message to my trading partner. I have tried this solution: http://anuj-dwivedi.blogspot.it/2011/04/ebms-attachment-handling-in-oracle-b2b.html but it doesn't work for my case... It is to be noticed that I don't give any schema to my component in the SOA application explained firstly, and I select opaque as schema.
    Thanks to all, regards
    Nello

    Hi Anuj and thanks for your help,
    I need to send an ebXML message, with SOAP, and I try to send it with a .war application written in jsp connecting to http://10.85.28.24:8001/b2b/transportServlet to send the SOAP message. The errors reported is:
    javax.xml.soap.SOAPException: Unable to receive message. Received a response from url: http://10.85.28.24:8001/b2b/transportServlet with HTTP status 200 and SOAP content-type: null.
    the code I write is the following (to evaluate the two "null" in the super constructor)
    <%!
    public class EBMSSender extends SOAPRunner
    private String cpaId;
    private String service;
    private String action;
    private String mess;
    private ArrayList<String> allegati=null;
    public EBMSSender(String cpaId, String service, String action, String mess, ArrayList<String> file)
    super("http://10.85.28.24:8001/b2b/transportServlet","null", "null");
    this.cpaId = cpaId;
    this.service = service;
    this.action = action;
    this.mess=mess;
    this.allegati=file;
    @Override
    protected void prepareRequest(SOAPMessage soapMessage, SOAPBody soapBody) throws SOAPException
    soapBody.addChildElement(SOAPUtility.createElement("CPAId", getNsPrefix(), getNsURI(),"agr3"));
    soapBody.addChildElement(SOAPUtility.createElement("service", getNsPrefix(), getNsURI(),"OracleService"));
    soapBody.addChildElement(SOAPUtility.createElement("action", getNsPrefix(), getNsURI(),"Oracletohermesb"));
    soapBody.addChildElement(SOAPUtility.createElement("serviceType", getNsPrefix(), getNsURI(),"OracleServiceType"));
    soapBody.addChildElement(SOAPUtility.createElement("convId", getNsPrefix(), getNsURI(), "convId"));
    soapBody.addChildElement(SOAPUtility.createElement("fromPartyId", getNsPrefix(), getNsURI(), "Oracle"));
    soapBody.addChildElement(SOAPUtility.createElement("fromPartyType", getNsPrefix(), getNsURI(), "Name"));
    soapBody.addChildElement(SOAPUtility.createElement("toPartyId", getNsPrefix(), getNsURI(), "Hermes-b"));
    soapBody.addChildElement(SOAPUtility.createElement("toPartyType", getNsPrefix(), getNsURI(), "Name"));
    attach(soapMessage);
    protected void attach(SOAPMessage soapMessage)
    String h=mess;
    DataHandler dh;
    AttachmentPart ap = soapMessage.createAttachmentPart(h,"text/plain");
    soapMessage.addAttachmentPart(ap);
    if(allegati!=null)
    for(int i=0; i<allegati.size();i++)
    dh=new DataHandler(new FileDataSource(new File(allegati.get(i))));
    ap=soapMessage.createAttachmentPart(dh);
    ap.setContentType(new MimetypesFileTypeMap().getContentType(allegati.get(i)));
    ap.setContentLocation(allegati.get(i));
    soapMessage.addAttachmentPart(ap);
    @Override
    protected void processFault(SOAPFault soapFault) throws SOAPException{}
    @Override
    protected Object processResponse(SOAPMessage responseMessage,SOAPBody responseBody) throws SOAPException
    SOAPElement messageId = SOAPUtility.getChild(responseBody, "message_id", getNsURI());
    return null;
    %>
    The code works fine on the other trading partner side to send ebXML message to Oracle B2B. Apart from this solution (however,it would be my favorite), I find your blog and I try to implement your solution. It works: it sends files with only text payload to the other trading partner without any problem, but if I try to send for example an image in byte array written in a file .txt, the ebxml file received has the byte array with wrong characters. it may be that I have not provided the xsd schema? in case if I wanted to send an ebXML message with text and attachments, what xsd schema do I need to provide?
    or is there another way to implement a SOA composite application to send SOAP messages with attachments?
    Thank for your help!, regards
    Nello

  • How to send SOAP message with attachment?

    Hi Experts,
    How do I simulate to send a SOAP message with an attachment? Can I use XMLSpy?
    Please help.
    Thanks,
    Shobhit

    Ravi,
    With the generic SOAP client, it asks for the http based wsdl file location. But my wsdl has been generated by XI and I have the file stored on my desktop.
    Something to do with the path http://zpidd01:8030/XISOAPAdapter/MessageServlet?channel=NetworkPartners:NP_Order_BS:NP_SOAP_Sender_CC ??
    Stefan,
    my scenario is to send a SOAP request with attachment and post the attachment in ECC through the ABAP server proxy.
    WebService Client -
    SOAP----> XI -
    ABAP PROXY CALL ---> ECC
    Need further assistance from both of you how to achieve this scenario.
    Thanks,
    Shobhit
    Edited by: Shobhit Swarup Mathur on Jul 24, 2008 4:34 AM

  • How to send SOAP Message with attachments?

    Hi All,
    I am working on a SOAP to RFC Scenario With specific requirement of handling the attachment(Mainly Excel Attachments) at the Sender SOAP Adapter.
    Kindly Suggest.
    I found lot of theoritical stuff but no practical scenario.
    Regards,
    Sachi

    Hi Sachi,
    To handle attachment in SOAP sender adapter  first of all you will have to use the AXIS message protocol.
    Then by using MessageTransformBean you can handle the attachment.
    1) Check this link for the module processing sequence used to get the attachment from SOAP
    SOAP Axis sender with CSV file attachment
    2) Check this blog which will help you on the usage of MessageTransformBean
    Solve Key Field Problem using StructPlain2XML in MessageTransformationBean!!
    http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/frameset.htm
    using MessageTransformBean you can handle only the text file attachments like comma separated file, pipe separated, fixed lengths etc. But if you are looking to handle a excel file you will have to use a java mapping to get the data from excel attached file. for this have a look at this following blog by Shabarish:
    Excel Files - How to handle them in SAP XI/PI (The Alternatives)
    Do remember to use SOAP Axis adapter and to tick the keep attachment option.
    Hope this helps.
    Regards,
    Aravind

  • Tutorial Announcement :: how to send a message with file attachments

    Hi, everyone
    i made a simple tutorial explains how to send email from your site with attachment, using the ADDT`s send email.
    also it`s useful when you want to receive let`s say the employee c.v resumes, also it can use for many proposes as explained in the tutorial.
    the level for this tutorial is: beginner -- intermediate.
    hope it`s useful.
    - for more dreamweaver developer toolbox please visit:
    www.developer-online.com

    Hi, everyone
    i made a simple tutorial explains how to send email from your site with attachment, using the ADDT`s send email.
    also it`s useful when you want to receive let`s say the employee c.v resumes, also it can use for many proposes as explained in the tutorial.
    the level for this tutorial is: beginner -- intermediate.
    hope it`s useful.
    - for more dreamweaver developer toolbox please visit:
    www.developer-online.com

  • How to send jms message to mq series

    Hi all,
    I'm new to JMS and I've been asked to send an xml file to a IBM MQ series message queue.
    I need to send this message from an application running on a tomcat webserver.
    Basically, what packages do I need to start with that?
    Is that possible without installing an MQ client on the webserver?
    What parameters would I need to make a connection? I currently only know the QUEUE name and that the MQ is running on a different machine than the webserver is.
    Thank you!
    Steven

    This can help u writing to MQueue
    ==================================================================
    // Program Name
    // MQWrite
    // Last date of modification
    // 1 Oct 2000
    // Description
    // This java class will read a line of input from the keyboard
    // and send it as a message. The program will loop until the
    // user presses CTL^Z.
    // Sample Command Line Parameters
    // -h 127.0.0.1 -p 1414 -c CLIENT.CHANNEL -m MQA1 -q TEST.QUEUE
    // Copyright(C), Roger Lacroix, Capitalware
    import com.ibm.mq.*;
    import java.io.IOException;
    import java.util.Hashtable;
    import java.io.*;
    public class MQWrite {
    private MQQueueManager _queueManager = null;
    private Hashtable params = null;
    public int port = 1414;
    public String hostname = "127.0.0.1";
    public String channel = "CLIENT.TO.MQA1";
    public String qManager = "MQA1";
    public String outputQName = "SYSTEM.DEFAULT.LOCAL.QUEUE";
    public MQWrite()
    super();
    private boolean allParamsPresent()
    boolean b = params.containsKey("-h") &&
    params.containsKey("-p") &&
    params.containsKey("-c") &&
    params.containsKey("-m") &&
    params.containsKey("-q");
    if (b)
    try
    port = Integer.parseInt((String) params.get("-p"));
    catch (NumberFormatException e)
    b = false;
    // Set up MQ environment
    hostname = (String) params.get("-h");
    channel = (String) params.get("-c");
    qManager = (String) params.get("-m");
    outputQName = (String) params.get("-q");
    return b;
    private void init(String[] args) throws IllegalArgumentException
    params = new Hashtable(5);
    if (args.length > 0 && (args.length % 2) == 0)
    for (int i = 0; i < args.length; i+=2)
    params.put(args, args[i+1]);
    else
    throw new IllegalArgumentException();
    if (allParamsPresent())
    // Set up MQ environment
    MQEnvironment.hostname = hostname;
    MQEnvironment.channel = channel;
    MQEnvironment.port = port;
    else
    throw new IllegalArgumentException();
    public static void main(String[] args)
    MQWrite write = new MQWrite();
    try
    write.init(args);
    write.selectQMgr();
    write.write();
    catch (IllegalArgumentException e)
    System.out.println("Usage: java MQWrite <-h host> <-p port> <-c channel> <-m QueueManagerName> <-q QueueName>");
    System.exit(1);
    catch (MQException e)
    System.out.println(e);
    System.exit(1);
    private void selectQMgr() throws MQException
    _queueManager = new MQQueueManager(qManager);
    private void write() throws MQException
    String line;
    int lineNum=0;
    int openOptions = MQC.MQOO_OUTPUT + MQC.MQOO_FAIL_IF_QUIESCING;
    try
    MQQueue queue = _queueManager.accessQueue( outputQName,
    openOptions,
    null, // default q manager
    null, // no dynamic q name
    null ); // no alternate user id
    DataInputStream input = new DataInputStream(System.in);
    System.out.println("MQWrite v1.0 connected");
    System.out.println("and ready for input, terminate with ^Z\n\n");
    // Define a simple MQ message, and write some text in UTF format..
    MQMessage sendmsg = new MQMessage();
    sendmsg.format = MQC.MQFMT_STRING;
    sendmsg.feedback = MQC.MQFB_NONE;
    sendmsg.messageType = MQC.MQMT_DATAGRAM;
    sendmsg.replyToQueueName = "ROGER.QUEUE";
    sendmsg.replyToQueueManagerName = qManager;
    MQPutMessageOptions pmo = new MQPutMessageOptions(); // accept the defaults, same
    // as MQPMO_DEFAULT constant
    while ((line = input.readLine()) != null)
    sendmsg.clearMessage();
    sendmsg.messageId = MQC.MQMI_NONE;
    sendmsg.correlationId = MQC.MQCI_NONE;
    sendmsg.writeString(line);
    // put the message on the queue
    queue.put(sendmsg, pmo);
    System.out.println(++lineNum + ": " + line);
    queue.close();
    _queueManager.disconnect();
    catch (com.ibm.mq.MQException mqex)
    System.out.println(mqex);
    catch (java.io.IOException ioex)
    System.out.println("An MQ IO error occurred : " + ioex);
    // Description
    // This java class will read a line of input from the keyboard
    // and send it as a message. The program will loop until the
    // user presses CTL^Z.
    // Sample Command Line Parameters
    // -h 127.0.0.1 -p 1414 -c CLIENT.CHANNEL -m MQA1 -q TEST.QUEUE
    import com.ibm.mq.*;
    import java.io.IOException;
    import java.util.Hashtable;
    import java.io.*;
    public class MQWrite {
    private MQQueueManager _queueManager = null;
    private Hashtable params = null;
    public int port = 1414;
    public String hostname = "127.0.0.1";
    public String channel = "CLIENT.TO.MQA1";
    public String qManager = "MQA1";
    public String outputQName = "SYSTEM.DEFAULT.LOCAL.QUEUE";
    public MQWrite()
    super();
    private boolean allParamsPresent()
    boolean b = params.containsKey("-h") &&
    params.containsKey("-p") &&
    params.containsKey("-c") &&
    params.containsKey("-m") &&
    params.containsKey("-q");
    if (b)
    try
    port = Integer.parseInt((String) params.get("-p"));
    catch (NumberFormatException e)
    b = false;
    // Set up MQ environment
    hostname = (String) params.get("-h");
    channel = (String) params.get("-c");
    qManager = (String) params.get("-m");
    outputQName = (String) params.get("-q");
    return b;
    private void init(String[] args) throws IllegalArgumentException
    params = new Hashtable(5);
    if (args.length > 0 && (args.length % 2) == 0)
    for (int i = 0; i < args.length; i+=2)
    params.put(args[i], args[i+1]);
    else
    throw new IllegalArgumentException();
    if (allParamsPresent())
    // Set up MQ environment
    MQEnvironment.hostname = hostname;
    MQEnvironment.channel = channel;
    MQEnvironment.port = port;
    else
    throw new IllegalArgumentException();
    public static void main(String[] args)
    MQWrite write = new MQWrite();
    try
    write.init(args);
    write.selectQMgr();
    write.write();
    catch (IllegalArgumentException e)
    System.out.println("Usage: java MQWrite <-h host> <-p port> <-c channel> <-m QueueManagerName> <-q QueueName>");
    System.exit(1);
    catch (MQException e)
    System.out.println(e);
    System.exit(1);
    private void selectQMgr() throws MQException
    _queueManager = new MQQueueManager(qManager);
    private void write() throws MQException
    String line;
    int lineNum=0;
    int openOptions = MQC.MQOO_OUTPUT + MQC.MQOO_FAIL_IF_QUIESCING;
    try
    MQQueue queue = _queueManager.accessQueue( outputQName,
    openOptions,
    null, // default q manager
    null, // no dynamic q name
    null ); // no alternate user id
    DataInputStream input = new DataInputStream(System.in);
    System.out.println("MQWrite v1.0 connected");
    System.out.println("and ready for input, terminate with ^Z\n\n");
    // Define a simple MQ message, and write some text in UTF format..
    MQMessage sendmsg = new MQMessage();
    sendmsg.format = MQC.MQFMT_STRING;
    sendmsg.feedback = MQC.MQFB_NONE;
    sendmsg.messageType = MQC.MQMT_DATAGRAM;
    sendmsg.replyToQueueName = "ROGER.QUEUE";
    sendmsg.replyToQueueManagerName = qManager;
    MQPutMessageOptions pmo = new MQPutMessageOptions(); // accept the defaults, same
    // as MQPMO_DEFAULT constant
    while ((line = input.readLine()) != null)
    sendmsg.clearMessage();
    sendmsg.messageId = MQC.MQMI_NONE;
    sendmsg.correlationId = MQC.MQCI_NONE;
    sendmsg.writeString(line);
    // put the message on the queue
    queue.put(sendmsg, pmo);
    System.out.println(++lineNum + ": " + line);
    queue.close();
    _queueManager.disconnect();
    catch (com.ibm.mq.MQException mqex)
    System.out.println(mqex);
    catch (java.io.IOException ioex)
    System.out.println("An MQ IO error occurred : " + ioex);

  • How to send a mail with rich text content like using outlook

    Hi All. I have a serious problem. When we send the mail from
    outlook express or yahoo, we can send the mail with the text appearing
    in the mail with bold font , with different colors, underlined etc.
    If i type this kind of text in any word processor and mail that content through java mail then the message should be received by the recepient with all that bold,color and underlines etc as it is. Can anybody please help me in this case ASAP.

    Go to this site and download the htmlArea Javascripts. Embedd them in your HTML and it will turn your normal HTML Text Area into Rich Text Area. Your real code will include all HTML tags. For example if you select some text and make it bold , the real HTML output will look like <B>YOUR TEXT </B>. So i guess your recipient should be able to receive HTML contents.
    http://www.interactivetools.com/products/htmlarea/

  • How to send JMS message from pl/SQL to jBoss

    Hi all,
    I need a helping. This is my problem:
    There's a queue which is definitied under the Jboss. I would like send a message from pl/SQL to jBoss.
    Why is't working??
    http://www.oracle.com/technology/sample_code/tech/java/jsp/samples/jms/Readme.html
    thnk's,
    fgy,,

    You can defince a queue in Oracle, then access this queue from your Jboss application. Not sure if you need JMS, but there are some Oracle OCI functions that are certainly helpful for such a task.
    You might look into further details be reading the manual on Oracle Advanced Queuing or Oracle Streams.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14257/part4.htm#i436427

  • How to send SMS Message with Automator

    I find the Action listed but I don't know where I type my message.

    I discovered that I have to add the action Ask for Text prior to the Send SMS Message. Also, I found it odd that I am sending to my iPHone which is AT&T here in the US, but I have to choose Cingular from the carrier dropdown before the text comes through.

  • How to send a message with Send-MailMessage cmdLet powershell exchange which uses a html file as a parameter

    Before the mailboxes migration E2003 toward E2010 SP2, I have to send a mail which body already exists as a html file.
    Here the powershell I currently use :
    import-csv d:\path\TestLot.csv  | foreach {Send-MailMessage -To $_.PrimarySmtpAddress -From
    [email protected] -Subject "Migration " -body "Your mailbox Migration will start in 2 days." -SmtpServer servXXX}
    And it is allright !
    But, I was asked to use an existing html file instead of my poor : -body "Your mailbox Migration will start in 2 days." 
    Does anybody know the way to do this ?
    Thank you for your help
    PATMOY
    BOAT

    Hi,
    I have the html code in a variable so i can personalize the mails:
    $htmlcode = '<html><body style="background:#FFFFFF"><head><title>Activaion email</title></head>'
    $htmlcode += '<style type="text/css">'
    $htmlcode += '#HLine { font-size:20px; font-family:Verdana; font-weight: bold; }'
    $htmlcode += '#txt { font-size:12px; font-family:Verdana;}'
    $htmlcode += '</style>'
    $htmlcode += '<img src="/img/HBPMAN0aGcc.gif" width="52" height="52" />&nbsp;&nbsp;&nbsp;<br />'
    $htmlcode += '<h1 id="HLine">Your BlackBerry account has been created ...</h1>'
    $htmlcode += '<div id="txt"><strong>... Your User Data:</strong><br />'
    $htmlcode += '&nbsp;&nbsp;&nbsp;<br /><table border="0" id="txt"><tr><td>&nbsp;&nbsp;<strong>Username:</strong></td><td>'+$UsrData.Email+'</td></tr>'
    $htmlcode += '<tr><td>&nbsp;&nbsp;<strong>Activation Password:</strong></td><td>'+$UsrData.pass+'</td></tr></table><br />'
    $htmlcode += '<strong>The activation credentials are valid for just 5 days after receipt of this email!</strong><br /><br/ >'
    $htmlcode += '<strong>... Next Steps: </strong><br /><br />'
    $htmlcode += '<a href= "/bb/doc/EN.pdf">- Activate your Device</a>&nbsp;<br />'
    $htmlcode += '&nbsp;&nbsp;To be able to use your new BlackBerry you need to complete this steps.<br /><br />'
    $htmlcode += '<a href= "/bb/doc/Tips.pdf">- Tips and Tricks for your Device</a><br />'
    $htmlcode += '&nbsp;&nbsp;Tips and Tricks to make your Device experience a success.<br /><br />'
    $htmlcode += '<strong>... in case you require technical support:</strong><br /><br />'
    $htmlcode += 'If you experiance problems with your Device, please contact your local IT-Support.<br /><br />'
    $htmlcode += 'Thank You.'
    $htmlcode += '<br/><div></body></html>'
    Send-MailMessage -to $UsrData.Email -From $from -Body $htmlcode -SmtpServer $smtp -Subject $subject -BodyAsHtml
    If you want to make sure the mail is displayed as a HTML Mail add to the send-mailmessage the option
    -BodyAsHtml
    Regards
    Dan

  • How to send UDP message with flash CS5.5?

    Hi,
    I want to send a single UDP message when a button is clicked on an iOS and android device.
    Does anyone know how this is done in Flash?
    Regards,
    Frank

    This doesn't apply directly to iOS and Android but to AS3 in general. I'm not sure how well it'll work since it is noted to be in a beta stage, but:
    http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/net/Datagram Socket.html
    and some examples:
    http://help.adobe.com/en_US/as3/dev/WSb2ba3b1aad8a27b0-181c51321220efd9d1c-8000.html#WSb2b a3b1aad8a27b0-181c51321220efd9d1c-7ffe

Maybe you are looking for