Email bursting - body format in HTML

Hi,
I am using standalone version of BI Publisher 10.1.3.4.1.
How does one send the body of the email as html instead of text?
Referring to the body of the email not the report.
thanks,
Greg

Please set the content-type="html/text" under message section.
<xapi:message id="123" to="${EMAIL}" cc="${EMAIL}" attachment="true" content-type="html/text" subject="Salary deails for ${ENAME}">Mr. ${ENAME}, Please review the attached document</xapi:message>

Similar Messages

  • Email bursting send report as HTML in email body

    Hello,
    I have Oracle BI Publisher 10.1.3.4.1 (build# 1101) version installed as part of Oracle Business Inteligence.
    I have question about email bursting. I created simple report and I am bursting it via email. But I would like to send report in HTML as part of email body and not as attachment. I read that it is possible in other versions of BIP (as part of EBS) with using of bursting configuration file. But I can not use this file with my version of BIP, I can configure bursting only vie SQL query.
    Is there any solution?
    Thank you

    My bursting SQL query:
    SELECT DISTINCT
    ip.APPL_ID KEY,
    '11F_Search_Prospect_Email' TEMPLATE,
    'RTF' template_format,
    'en-US' locale,
    'HTML' output_format,
    'EMAIL' DEL_CHANNEL,
    ip.email PARAMETER1,
    '[email protected]' PARAMETER3,
    'Welcome' PARAMETER4,
    'true' PARAMETER6
    FROM ugrad.inquiry_prospect ip,
    ugrad.correspondence f,
    ugrad.address e,
    ugrad.f_lookup fl
    WHERE ip.appl_id = f.appl_id
    AND ip.APPL_ID = e.APPL_ID
    AND fl.TYPE_CODE='C'
    AND ip.record_stage = 'Prospect'
    AND e.COUNTRY_CODE=fl.code
    AND e.table_name = 'INQUIRY_PROSPECT'
    AND e.address_type =
    NVL ((SELECT gg.address_type
    FROM ugradadm.address gg
    WHERE gg.address_type =
    DECODE (f.mailpref,
    'Home', 'HOME',
    'Best', 'LOCAL',
    'HOME'
    AND gg.table_name = 'INQUIRY_PROSPECT'
    AND gg.APPL_ID = ip.appl_id
    AND((gg.address_type='LOCAL' AND NVL(gg.address_expir_date,sysdate)>sysdate)
    OR gg.address_type='HOME')),
    'HOME'
    AND f.batchid = :Batch_ID
    This report when bursted sends an email with the layout template as html body.
    The EMAIL configuration is set with a server Port number and its host address.

  • Incoming email will not format in html even though all settings are correct

    I have Windows Vista operating system. Our IT guy recently updated my Thunderbird version to 31.5.0.5531 from a very old version. I have tried all suggestions from forums about settings for HTML viewing. At this point, I don't even get the option of reading an email in HTML. I forward a lot of messages to my coworkers, and I can't do that any more. Any help would be greatly appreciated. I would also gladly go back to an earlier version.
    Thanks Cindy

    You ask about HTML, but most of your settings are about remote content. Is it images that are causing grief or HTML?

  • HTML dynamic content email bursting (no attachment)

    Hello,
    Could you please advise if the below scenario is feasible using BI Publisher:
    An email need to be bursted. This email should have an html template in it (with some dynamic values, like name, etc. - "Dear X,"). This html template should include some images and a very specific format.
    There has to be no attachment - the only place with dynamic fields should be an email body formatted as a specific template (html).
    I've done some investigation on the web and metalink so I know I can specify the body content (parameter 6) and even a dynamic one.
    Can I include HTML tags/HTML template as the email body?
    Could anyone please advise?
    Thanks,
    Michal
    Edited by: MichalB on Aug 1, 2011 12:36 PM
    We're using BIP Release 10.1.3.4
    Edited by: MichalB on Aug 1, 2011 4:35 PM

    I am assuming, you are using bursting from Enterprise Release. First try file delivery. If it works fine, then make sure you set the delivery SQL setting properly. You can validate from the following mapping.
    KEY
    TEMPLATE_FORMAT
    TEMPLATE
    LOCALE
    OUTPUT_FORMAT
    DEL_CHANNEL=>     EMAIL
    PARAMETER1 =>     To Email address
    PARAMETER2 =>     Cc Email address
    PARAMETER3 =>     From
    PARAMETER4 =>     Subject
    PARAMETER5 =>     Message Body
    PARAMETER6 =>     Attachment (true/false)
    PARAMETER7 =>     Reply-to
    Regards
    Ashish

  • How to maintain format in html email using the send email....

    Does anyone know how to maintain the format in a HTML email using the Send E-mail To Recipients From Recordset behavior?
    When text only is selected instead of HTML text on the Options tab the format of the input is maintained, but when HTML text is selected the email has no format. I have tried to use a replace \n with
    as I have done when hand coding PHP, BUT I am trying to learn to use ADDT. I also tried to use a Custom trigger without success.
    Help!

    Hi Dave,
    in my snippets folder I have this thing which I found on the old MX Kollection forums and which was suggested by the Interakt staff:
    //trigger SendEmail (write content)
    function Trigger_SendEmail(&$tNG) {
    ob_start();
    include("myDynamicContentFile.php");
    $mailcontent = ob_get_contents();
    ob_end_clean();
    $emailObj = new tNG_Email($tNG);
    $emailObj->setTo("[email protected]");
    $emailObj->setFrom("[email protected]");
    $emailObj->setSubject("A new User was added");
    $emailObj->setContent($mailcontent);
    $emailObj->setEncoding("UTF-8");
    $emailObj->setFormat("text");
    $emailObj->setImportance("Low");
    return $emailObj->Execute();
    //trigger SendEmail (write content)
    The only modification is the possibility to include a dynamic PHP file rather than some static text or a HTML file which will also render textarea contents on one line:
    ob_start();
    include("myDynamicContentFile.php");
    $mailcontent = ob_get_contents();
    ob_end_clean();
    That said, it should be possible to define all the "rendering" options in the external PHP file, what would mean to apply the nl2br function there, e.g.: nl2br($row_queryname['columnname'])
    What I´m not sue about is, if you will have to strip the external file´s head and body tags before it´s getting included -- however, please give this a try and tell us how it worked.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Output in Email Body Formatting Warped

    Hi All
    I am completly new to powershell & am googling about for code.
    I have been able to so far to send the results of a powershell query by email and am mightly impressed it worked.
    When the query is done on the command line it works great, by email the output is spread wide and the fields dont align with each other.
    I have pasted my commands below. I am querying the Exchange Mailbox sizes and wish to sort by the biggest down.  This works great and I out put it to a text file.
    I then read the text file and substitute it for the body of the email.
    On the outlook email recepient end It looks to me like the window size of outlook causes the text to wrap around and it is no longer displayed lengthways.
    Is there anything I can do?
    Thanks
    Below gets data
    Get-WMIObject -Class Exchange_Mailbox -Namespace ROOT\MicrosoftExchangev2 -ComputerName
    MyExchangeServer | Where-Object {$_.LastWriteTime -le (Get-Date).AddYears(1)} | Select-Object MailboxDisplayName,Size
    | sort-object size -descending
    Below tells which exchnage server to use
    $psEmailServer = "MyExchangeServer"
    Below is the text file containing the data I need assigned to $body
    $body= (Get-Content mailboxsize.txt)
    Below sends the email using the contents of the email as the email body, BUT it dosent come out right and its out of alignment in outlook.
    send-mailmessage -from "[email protected]" -to "[email protected]" -subject "test powershell email" -body "$body"
    confuseis

    The PowerShell console uses a fixed-width font, by default, but most email clients don't.  The best solution is to use the ConvertTo-Html command on the results of your pipeline, instead of saving the text to a file.  This renders the objects in
    an HTML table instead of relying on a fixed-width font, and then you use the -BodyAsHtml switch when calling Send-MailMessage:
    $data = Get-WMIObject -Class Exchange_Mailbox -Namespace ROOT\MicrosoftExchangev2 -ComputerName MyExchangeServer |
    Where-Object {$_.LastWriteTime -le (Get-Date).AddYears(1)} |
    Select-Object MailboxDisplayName,Size |
    sort-object size -descending
    $psEmailServer = "MyExchangeServer"
    $body = $data | ConvertTo-Html | Out-String
    Send-MailMessage -From "[email protected]" -To "[email protected]" -Subject "test powershell email" -Body $body -BodyAsHtml
    Edit:  If you absolutely must send the contents of the file as-is, you can still try sending the body as HTML, wrapping the body text in a <pre> tag, which should be displayed in a fixed-width font:
    $body = Get-Content mailboxsize.txt -Raw
    $body = '<pre>{0}</pre>' -f [System.Net.WebUtility]::HtmlEncode($body)
    $psEmailServer = "MyExchangeServer"
    Send-MailMessage -From "[email protected]" -To "[email protected]" -Subject "test powershell email" -Body $body -BodyAsHtml

  • Email Body formatting Issue

    Hi,
    We have a requirement to send an email with body in the below mentioned format. I have populated the final internal table with necessary data. I have concatenated all the columns of each record of the final internal table into a text variable with necessary spaces and appended to another internal table of type 'SOLI_TAB'. I am using CL_BCS class to send email. But I am facing an issue with the formatting. Also the column headings should be in bold.
    Column1        Column2         Column3     Column4      Column5
    XXXXX          XXXXXX         XXXXXX    XXXXXX      XXXXX
    XXXXX          XXXXXX         XXXXXX    XXXXXX      XXXXX
    XXXXX          XXXXXX         XXXXXX    XXXXXX      XXXXX
    Current Behaviour:
    Column1        Column2         Column3     Column4      Column5
    XXXXX          XXXX        XXXXXX    XXXXXX      XXXXX
    XXXXX          XXXXXX         XXXXXX    XXXXXX      XXXXX
    XXXXX          XXXXXX         XXXX    XXXXXX      XXXXX
    Can any one help me on this?
    Regard

    hi ,
    Why cant you try putting tablle format for this. and you can make header in bold also
    refer this page
    Table as Email Body
    Thanks Sam.

  • BI Publisher Email Bursting with HTML code

    Hi ,
    Possible to use the following HTML hyper link code in the email deliver
    *<a herf="www.google.com">google</a> parameter5*
    tried but no luck Please tell me the solutions.
    Thx
    Edited by: 924603 on Nov 9, 2012 10:51 AM
    Edited by: 924603 on Nov 9, 2012 10:52 AM

    I am facing a strange problem in EMAIL Bursting using Java API. If I am sending 10 PDF files as attachment to 10 recipient, status is showing as successful. But not all recipients are getting EMAIL attachment. only 8 people are getting attachments. Can any one help me out in removing this problem. How to send attachments to all recipient?

  • Schedule a job with email destination in BOXI R2 with email format as html

    Hello Guys, would it to possible to schedule a job with email destination in BOXI R2 with email format as html? we are able to get it running with plain text email format. we use Java SDK to interface with BO Enterprise servers.
    thanks for your thoughts,
    Venkat

    Hi
    your job should SMOF_DOWNLOAD can bring new material master if you set up correctly.
    as a smart method smof_download is the best way.
    doble check your filter condition. it should work as you expected. because we dont involve in  manual pulling...
    check your variant once again. in vari table,
    can you check r3ac1 - filter settings- source seetingsa--> source site nmae --> backendlogical system and filter sync..
    br
    Muthu

  • Email reports with graphs as HTML (via schedule)

    == W2K machine with Oracle Reports Server 6i R2 ==
    How can I schedule/design a report if sent via email (in HTML format), so the graph that is part of the reports shows up? Currently, the gif is missing. I can use the "hyperlink" in the web setting to point to the file on the web server, but this means my "customers" need to click the missing object.
    If I send the report as PDF, all is well but again, my customers need to "open" the file.
    Is there a way to email reports with graphs as HTML?
    In any other format where the receiver does not have to take any other action?
    Thx
    Josh

    My bursting SQL query:
    SELECT DISTINCT
    ip.APPL_ID KEY,
    '11F_Search_Prospect_Email' TEMPLATE,
    'RTF' template_format,
    'en-US' locale,
    'HTML' output_format,
    'EMAIL' DEL_CHANNEL,
    ip.email PARAMETER1,
    '[email protected]' PARAMETER3,
    'Welcome' PARAMETER4,
    'true' PARAMETER6
    FROM ugrad.inquiry_prospect ip,
    ugrad.correspondence f,
    ugrad.address e,
    ugrad.f_lookup fl
    WHERE ip.appl_id = f.appl_id
    AND ip.APPL_ID = e.APPL_ID
    AND fl.TYPE_CODE='C'
    AND ip.record_stage = 'Prospect'
    AND e.COUNTRY_CODE=fl.code
    AND e.table_name = 'INQUIRY_PROSPECT'
    AND e.address_type =
    NVL ((SELECT gg.address_type
    FROM ugradadm.address gg
    WHERE gg.address_type =
    DECODE (f.mailpref,
    'Home', 'HOME',
    'Best', 'LOCAL',
    'HOME'
    AND gg.table_name = 'INQUIRY_PROSPECT'
    AND gg.APPL_ID = ip.appl_id
    AND((gg.address_type='LOCAL' AND NVL(gg.address_expir_date,sysdate)>sysdate)
    OR gg.address_type='HOME')),
    'HOME'
    AND f.batchid = :Batch_ID
    This report when bursted sends an email with the layout template as html body.
    The EMAIL configuration is set with a server Port number and its host address.

  • How do I customize the Email Attachment name in Email Bursting?

    I had worked on BI Publisher extensively on 10g and 11g. I have a client requirement with BIP email bursting to deliver the reports as email attachments. I'm able to do it, and also customize mail body etc. However the email attachment file name is randomly generated with some numbers. I read through the docs, and couldn't find any parameter mapping to the attachment/file name (like we do it with File bursting). How do I specify the mail attachment file names in my Busrting properties?
    Thanks,
    Padma

    Please go through the following link:
    http://garethroberts.blogspot.com/2008/03/bi-publisher-ebs-bursting-101.html
    I think after the 'Output' we can specify the filename

  • This.mailDoc or app.mailMsg body format/clickable link

    Hello,
    I want to send a PDF using this.mailDoc() in a script, but want to include a link to an internal help web page.  Is there a way to make the message body contain a link, maybe by forcing the message to be formatted as HTML? In another, I want to simply send an email with a link in the body, but this time to a file on our server.  It is all for internal use, and all using Windows, and (currently) Outlook as the mail client.
    Any suggestions on how to force the message to go out with a link that can be clicked?

    You can try formatting your message as an HTML page and hope that your email client will interpret it correctly. Beyond that there's nothing that can be done.

  • The file should be in XML-BURSTING-FILE format.

    I'm gettting an error when I try to upload my xml bursting control file for my oracle report that has an rtf template defined.
    The error message says"The uploaded file MT_RAXINV.xml is invalid. The file should be in XML-BURSTING-FILE format."
    and my code is as below:
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" >
    <xapi:globalData location="stream">
    </xapi:globalData >
    <xapi:request select="/ZRAXINV/LIST_G_ORDER_BY/G_ORDER_BY/LIST_G_INVOICE/G_INVOICE">
    <xapi:delivery>
    <xapi:email server="mailhost.microtune.com" port="25" from="[email protected]"
    reply-to ="[email protected]" >
    <! - filter=".//G_INVOICE[BILL_TO_EMAIL IS NOT NULL]"- >
    <xapi:message id="${TRX_NUMBER}" to="[email protected]" cc="[email protected]" attachment="true"
    subject="Microtune Inc - Receivables Statement for payment due from ${BILL_CUST_NAME}">
    Please find attached Receivables Statement for payment due of ${TOTAL_AMOUNT_DUE}.
    Regards,
    The Receivables Team
    Microtune Inc
    </xapi:message>
    </xapi:email>
    <xapi:print id="printer_tune"
    printer="ipp:\\congo\sunset" filter=".//G_INVOICE[BILL_TO_EMAIL=NULL]" copies="1" />
    <xapi:filesystem output="\\astro\erp\Oracle\${TRX_NUMBER}.pdf"/>
    <! - Add an id for this delivery method i.e. printer1 - >
    </xapi:delivery>
    <xapi:document output-type="pdf" delivery="printer_tune,${TRX_NUMBER}">
    <! - Deliver to printer and email - >
    <xapi:template type="rtf" location="xdo://SQLAR.ARInvoice.en.US/"?getSource=true" filter="">
    <! - Specify template to be used for Receivables Statements- >
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    Any help would be much appreciated.
    Thanks,
    Leo

    Thanks, for the update. Sorry I did not update this entry, I had actually figured that out but still my problem is that my email is sending without an attachment. I'm not getting any error and the email is sending fine but without the attachment.
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    <xapi:request select="/ZRAXINV/LIST_G_ORDER_BY/G_ORDER_BY/LIST_G_INVOICE/G_INVOICE">
    <xapi:delivery>
    <xapi:email server="mailhost.microtune.com" port="25" from="[email protected]" reply-to ="[email protected]">
    <xapi:message id="${TRX_NUMBER}" to="[email protected]" cc="[email protected]" attachment="true"
    subject="Microtune Inc - Receivables Statement for payment due from ${BILL_CUST_NAME}">
    Please find attached Receivables Statement for payment due of ${TOTAL_AMOUNT_DUE}.
    Regards,
    The Receivables Team
    Microtune Inc.
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output="Invoice_${TRX_NUMBER}" output-type="pdf" delivery="${TRX_NUMBER}">
    <xapi:template type="rtf" location="xdo://SQLAR.ZRAXINV.en.US/?getSource=true"></xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>

  • Email in Jumbled format when sent to outlook mail box (Unix Corn Script)

    Hi All,
    We recently migrated from Lotus noted mail to Outlook Mailbox, We had the CORN scripts written to generate the html files and sent them to Lotus mail ID, File formats were html.
    After migration to outlook we are getting the mail in the jumbled format...
    Below s the corn JOb-
    #!/bin/sh -x
    Filename:   detial_report.sh
    Purpose:    Report
                Identifies key activities to complete to ensure
                the integrity of the SAP Security System
    . ~/.profile
    #DECLARATION
    SUBJECT="SAP Daily Report "
    ##TO="rocksap_at_outlook.com"
    WORKDIR=/Application/home/p11adm/security_scripts/
    PASS_FILE=$WORKDIR/pass_file
    SYSDATE=`date`
    CONTENT=$WORKDIR/daily_scripts/contentamc.txt
    SQLDIR=$WORKDIR/daily_scripts/sql/
    TMPDIR=$WORKDIR/daily_scripts/tmp/
    #START-EXECUTION
    echo "$SUBJECT Initiated on $SYSDATE"
    for FILE in `ls $SQLDIR | sort`
      do
        sqlfile=$SQLDIR$FILE
        tmpfile=$TMPDIR$FILE`date +%Y%m%d%H%M%S`.html
        heading=`grep Validation: $sqlfile`
        connsys=`grep Connection: $sqlfile | awk '{print $2}`
        connstr=`grep $connsys $PASS_FILE | awk '{print $2}`
        connection="$connsys/$connstr"
        query=`cat $sqlfile | grep -v Validation: | grep -v Connection: | grep -v Heading: `
        sqlplus -S $connection  >>$tmpfile <<-EOF
         set heading on
         set markup html on entmap on spool on preformat off
         set echo off feed off veri off linesize 32467
            set pagesize 2000
            $query
         EOF
        FILESIZE=`du -ks $tmpfile|awk '{print $1}'`
        echo "$heading" >> $CONTENT
        echo " " >> $CONTENT
        if [[ $FILESIZE != 0 ]]
        then
         uuencode $tmpfile `basename $tmpfile` >> $CONTENT
        else
         echo "  No results for this validation today : ) \n\n ==================================================" >> $CONTENT
        fi
        echo " " >> $CONTENT
        echo "\n\n ======================================================================================">> $CONTENT
      done
    CONTENT_TEXT=`cat $CONTENT`
    echo "Send the E-mail message to the AMC Security Administrator on $SYSDATE"
    /usr/bin/mailx -s "$" $ <<-EOF
    Please review the following SAP Security Health Check Reports and take necessary action.
    Upload these file into Livelink daily including the action taken for record.
    =======================================================================================
    $CONTENT_TEXT
    EOF
    rm $CONTENT
    rm $TMPDIR/*
    echo "$SUBJECT Processed on $SYSDATE"
    #END-EXECUTION
    EOD Script----
    After the exectuion of the job below is the jumbled mail which we are getting in outlook.
    --Validation: FFID's in Each System with Active Users with PeopleSoft Termination Details
    begin 664 02_FFID_User_Details_Terminated_spool20110719220005.html
    M/'`^"CQT86)L92!B;W)D97(])S$G('=I9'1H/2<Y,"4G(&%L:6=N/2=C96YT
    M97(G('-U;6UA<GD])U-C<FEP="!O=71P=70G/@H\='(^"CQT:"!S8V]P93TB
    M8V]L(CX4UE35$5-"CPO=&@^"CQT:"!S8V]P93TB8V]L(CX34%.1%0*/"]T
    M:#X*/'1H('-C;W!E/2)C;VPB/@I&1DE$"CPO=&@^"CQT:"!S8V]P93TB8V]L
    M(CX*1D9)1%]&54Q,3D%-10H\+W1H/@H\=&@@<V-O<&4](F-O;"(^"EI625)&
    M25)%1DE'2%1%4@H\+W1H/@H\=&@@<V-O<&4](F-O;"(^"D9&7U5315)?1E5,
    M3$Y!344/"]T:#X/'1H('-C;W!E/2)C;VPB/@I&1E5315)?5D%,241&4D]-
    M"CPO=&@^"CQT:"!S8V]P93TB8V]L(CX1D954T527U9!3$E$5$\/"]T:#X*
    M/'1H('-C;W!E/2)C;VPB/@I%35!?4U1!5%53"CPO=&@^"CQT:"!S8V]P93TB
    M8V]L(CX5$5234E.051)3TY?1%0/"]T:#X*/'1H('-C;W!E/2)C;VPB/@I!
    M0T-%4U-?1$5.245$7T0/"]T:#X/"]T<CX*/'1R/@H\=&0^"E`P,RU020H\
    MW1D/@H\=&0^"C(P,`H\W1D/@H\=&0^"D9&251"0D=,0C(/"]T9#X/'1D
    M/@I$;R!.;W0@4F5M;W9E("T@4W5P<&]R="!&:7)E1FEG:'1E<B!)9"`M("A*
    M:6%T86DL(%=U0H\+W1D/@H\=&0^"E@P-38T,#D/"]T9#X*/'1D/@I3<F5E
    M;FEV87-A(%EA9&QA<&%L;&D/"]T9#X/'1D/@HR,#`Y,3`R-@H\+W1D/@H\
    M=&0"CDY.3DQ,C,Q"CPO=&0"CQT9#X*5&5R;6EN871E9`H\+W1D/@H\=&0^
    `
    end
    Rakesh

    As mentioned, Outlook is not email standards compliant. It probably never will be based on Microsoft's history. However, I think there are various issues involved in the problems people have. I often send emails from home to my Outlook account at work. I have never experienced any of the problems that I've seen posted anywhere regarding Mail and Outlook.
    My conclusion is that there are issues with certain Exchange Server configurations and/or issues with your own ISP mail server causing the issues.
    I do have my system set up to Always send windows friendly attachments (from what I've read, this really is 'send Outlook friendly attachments'), and always put attachments at the end. Prior to the 'always put attachments at the end,' I wasn't having any issues, either. However, I read that that setting helped with other email clients, so I use it.
    The obvious question is, "well, how is your exchange server configured." I would love to provide the answer to that question; however, I work for a DoD organization, so actually tracking down the person that knows the answer to that question will take somewhere between five years and never. With my 20+ years experience with the DoD, I'm leaning towards the never end of the spectrum. The other half of the equation is, "I'm using cox as my ISP."

  • Send a message from a list of emails in lightswitch 2013.4 HTML screen using ajax

    Hi There,
    any idea how to make a button to send a message from a list of emails in lightswitch 2013.4 HTML.
    my idea is to send message to all emails in the details picker (or the drop down menu or a choice list) tat is filled by SQL query (as a data source in lightswitch)
    i have read many articles,  most of them were written in PHP or VB !
    for example:
    http://www.devarticles.com/c/a/HTML/Sending-email-with-AJAX-building-a-small-application/1/
    http://stackoverflow.com/questions/22442074/how-to-send-email-to-a-list-of-addresses-from-lightswitch
    http://lightswitchhelpwebsite.com/Forum/tabid/63/aft/75/Default.aspx
    http://maxslabyak.com/c-sharp/using-jquery-to-send-email-with-web-services/
    http://www.paulspatterson.com/microsoft-lightswitch-sending-emails-from-the-client/
    http://www.quercussolutions.com/blog/index.php/microsoft-lightswitch-sending-emails/
    http://www.lightswitchspecial.com/2013/01/7-most-easiest-way-to-send-email-from.html
    as far as  i know, the HTML screens in lightswitch 2013 can be encoded with ajax only, not vb or C# any more!
    my project contains only HTML screens, no desktop screens. i know that i can do the VB programming in the tables actions, but i am looking to have this code in the Browse screen to give me more flexibility depending on my decision to
    send or not..
    help please :)  

    Hello Hasan,
    I do this using a generic handler(e.g. sendmail.ashx). In the ashx file i use this code:
    Imports System.Net.Mail
    Imports System.Web
    Imports System.Web.Services
    Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
    Dim str As String = "there was no error "
    Dim Recipient As String = Convert.ToString(context.Request.Params("pRecipient"))
    Dim strsub As String = Convert.ToString(context.Request.Params("pSubject"))
    Dim strmsg As String = Convert.ToString(context.Request.Params("pMessage"))
    Dim msg As New MailMessage
    Try
    ' Your mail address and display name.
    ' This what will appear on the From field.
    ' If you used another credentials to access
    ' the SMTP server, the mail message would be
    ' sent from the mail specified in the From
    ' field on behalf of the real sender.
    msg.From = New MailAddress("[email protected]", "Displayname")
    ' To addresses
    msg.To.Add("[email protected]")
    'msg.To.Add(New MailAddress("[email protected]", "Friend B"))
    ' You can specify CC and BCC addresses also
    ' Set to high priority
    msg.Priority = MailPriority.High
    msg.Subject = strsub
    ' You can specify a plain text or HTML contents
    msg.IsBodyHtml = True
    msg.Body = strmsg
    'msg.Body = _
    ' "Hello everybody,<br /><br />" & _
    ' "I found an interesting site called <a href=""http:'JustLikeAMagic.WordPress.com"">" & _
    ' "Just Like a Magic</a>. Be sure to visit it soon."
    ' In order for the mail client to interpret message
    ' body correctly, we mark the body as HTML
    ' because we set the body to HTML contents.
    ' Attaching some data
    ' msg.Attachments.Add(New Attachment("D:\Site.lnk"))
    ' Connecting to the server and configuring it
    Dim client As New SmtpClient()
    client.Host = "mail.gmx.com"
    client.Port = 25
    client.EnableSsl = True
    ' The server requires user's credentials
    ' not the default credentials
    client.UseDefaultCredentials = False
    ' Provide your credentials
    client.Credentials = New System.Net.NetworkCredential("yourcredentias", "f2f081639ad")
    client.DeliveryMethod = SmtpDeliveryMethod.Network
    ' Use SendAsync to send the message asynchronously
    client.Send(msg)
    Catch ex As Exception
    str = ex.Message
    Finally
    msg.Dispose()
    End Try
    context.Response.ContentType = "text/plain"
    context.Response.Write(str)
    End Sub
    When you create the ASHX then replace the ProcessRequest with the above function.
    In LS HTML Screen create the function for pressing a button an appen the following text:
    $.ajax({
    type: 'post',
    data: {
    pRecipient: Screen.yourdata,
    pSubject: Screen.yourdata,
    pMessage: Screen.yourdata,
    url: '../sendmail.ashx',
    success: function success(result) {
    alert(result);
    This is a way you can do that. In VB and out of your browse Screen.
    Hope this helps
    Thomas

Maybe you are looking for

  • How to change the default save encoding of the dvm files when create dvm???

    When I creating a DVM(domain-value mapping) in Chinese on the ESB control and confirm it, then restarted the SOA service, the DVM that I created in Chinese disappeared from ESB control. All the maps(both English and Chinese ) are in DVM Repository. A

  • How do I get a digital out task to only generate port 0?

    HI; I have a VI into which I feed a DO 9476 task. When I created the task, I selected port 0 (which was the only option). When I run my VI, I get an error that tells me I'm looking for 8 bits yet the task feeds in 32. See the attached VI and error sc

  • Virtualized Windows 8.1 with Hyper-V as a home PC?

    Hello everyone, I'm getting ready to reimage my Windows 8.1 home PC as it has been unreliable of late and I simply don't have the time to invest troubleshooting the various oddities of its behavior. Since this is something I tend to do somewhat regul

  • Using Keynote from another Mac

    My work group just recently purchased a single copy of iWork '08 and installed it on a G5 running OSX 10.5. We had hoped to be able to log onto this machine remotely and be able to use Keynote. Unfortunately when I try to open Keynote on my Mac Pro I

  • Stock transfer between locations involving two different excise duty

    Hi, While doing delivery confirmation under O4H1 transaction, I'm facing below error: E OB 048 ED status from valuation type does not match ED status handling type TA UNTAX I'm trying stock transfer between locations involving two different excise du