Sending a default HTML page when email is blank

How can I send a default HTML contents if HTML portion is blank in the email using JSP?
I'm writing a JSP file where it emails To, from and with some HTML contents.

If you are sending the email, then you are defining the contents, so if you want to send a default value, you have to check that what you are sending as content is blank or not and make the substitution when you construct the mail message. Why would there need to be some automate thing for that?

Similar Messages

  • Can I set a default home page when people use my router?

    Can I set a default home page when people use my router?
    Can I set it to my web site for example so that people have to go there when they connect?
    Thanks,
    Paul

    Hello EireReality. Welcome to the Apple Discussions!
    Can I set a default home page when people use my router?
    No, at least not that I'm aware of. Setting a "default home page" is typical feature of a web browser, not an Internet router.

  • How to send a document from pages in email

    Can u send a document from pages in email that can be opened by a PC.

    Ourdream wrote:
    even if I dont have word it can be sent as word?
    Yes, try Share > Send Via Mail

  • Displaying HTML page when server is unavailable

    Hi,
    I would like to display the static html page when the server is down. For example when server maintanance is going on I would like to display html page with information
    Please let me know what is the process to achive this.
    Thanks

    You might also want to check Custom Error pages:
    http://help.sap.com/saphelp_nw70/helpdata/EN/9a/e74d426332bd30e10000000a155106/frameset.htm
    Regards,
    Siddhesh

  • How to generate a html page when a button is pressed

    hi
    i have to generate a html page when a help button is pressed
    so please help me
    thanks
    shiva

    "touch index.html"
    Might not be what you're looking for but creates an html page.

  • How to send browser display HTML page as HTML Email using JSF

    Hi all
    i need to send a whole jsf rendered page as a html page.... . say theres a page which hav few links , images etc & theres a send email button at the end of the page. once the user clicks on the button the whole page shld appear in another window which hav from,to, subject line + the html body of tht earlier page & once he clicks the send button it should send to the sender & the receiver should see the email a s a html email.where u can click on the links,images showin etc...
    Thanks
    Saman

    Subhash,
    Here is one approach..
    1. Make the report page as PUBLIC ( no Authentication required)
    2. Create procedure which will pull the page content and send it to pre-defined e-mail address
    2.1 Use utl_http.request to pull the page content
    2.2 Store the page content in some PL/SQL variable and pass it as 'p_body_html' parameter to APEX_MAIL.SEND procedure.
    3. Schedule the above procedure to run on daily using DBMS_JOB API.
    I have not implemented it and its just a thought.
    Regards,
    Hari

  • What's going on in existing html page when I add animations?!!

    I am working in Dreamweaver CC on a windows 7 pc, also working in Edge Animate.
    I am in an existing site, and I followed the tutorials for opening an existing html file (page) and animating two elements on the page.  I did not create a separate file to save to or to publish to, since nothing in the tutorials (either lynda.com or adobe tv) said anything about creating separate folders either in the site or out of the site.  The tutorials just say "save and publish." 
    This works GREAT!!  BUT, but, but...nope, not so great.  It creates a "publish/web" folder inside my site root folder that has duplicates of every page on my site!  AND, while the animations work GREAT on the index page, I lose my nav bar functionality--no links, no rollover states, nada.
    If I go into the html file in Dreamweaver and make changes to the page, then the animation also stops working.
    Are all the pages duplicated because all of my html pages are based on a single template?  And by trying to animate the header on the index page, it duplicates all of the pages?
    Why does it eliminate the nav bar functionality?  Is this again because the page is based on a template?
    And finally, why do I lose the animation when I edit the page (ANYTHING on the page) in Dreamweaver???
    I don't know if I am missing something?  The help will be greatly appreciated! 
    The site can be found here.  It is 8:00 pm pacific mountain time, and I am shutting off the computer until tomorrow about 11 am.  If you get a chance to look at the page before 11 am on November 17, maybe you can spot the problem for me?  I will start revising it again after 11 am pacific time on Sunday November 17.

    Welcome to the Support Communities. If you're sure that the problem isn't in your browser, you can send feedback to Apple here:
    http://www.apple.com/es/contact/feedback.html
    http://www.apple.com/contact/feedback.html
    There's also this:
    http://www.downforeveryoneorjustme.com

  • Change the default HTML template when saving for web

    Hi,
    Is there a way to change the default HTML output template when you go to "Save for web" and select "HTML & Images"? I would like to modify the default HTML <head> tag.
    Thanks.

    Two observations.
    First — "Tools-> ...." is specific to Acrobat X and XI. It did not exist prior to Acrobat X.
    Second — Acrobat 9 Pro / Standard (nor earlier release) does not support viewing a PDF page containing a scanned image and performing a right-click  ... Save Image As. 
    The context menu provided by Acrobat 9 Pro with a right-click on a scanned image is:
    The context menu,from a right-click with the TouchUp Object tool selected, for Acrobat 9 Pro is:
    So, to paraphrase what Paul Harvey used to say ... What's the rest of the story?
    Be well...

  • How to send info from JSP page as email-body

    Hi,
    i have a JSP page that generates dynamically as a result of some query. I have a Button - "Send Email".
    I want to send the information to the receipient thru email automatically on a button click,
    All information is in the memory. How can we pick the info from memory and send it as a message thru email?
    Pls help.
    thanx & regards,
    Shalini

    create a servlet to send mail (use the JavaMail api) then Post the message to the servlet when you click on the button.
    OR, put the message and any other data (like the email address) into the session, and then just call the servlet on click of the button, and have the servlet retrieve the information from the session.

  • How do i send a link or page via email with firefox?

    i am new to firefox. had internet explorer for a long time. when i found a site on the internet that i wanted to share with a friend, there were choices somewhere on the menu bar or where the tabs are that said "send link via email" and "send page via email". when i selected one of these, a new email would open in yahoo with the link or page in the body, and i could send this to any contact. can't find these options here. please help! thank you!

    There is an option to "Send Link..." in the File menu. Firefox does not have a built-in send page by email option.

  • Vs 2013 community screws up formatting of html page when saving file

    I have seen other people having this issue with suggestions like 'Formatting and visualizations, tag specific options. However this is not solving my issue
    example
    I type the following code this way
    <asp:Panel ID="Panel1" runat="server">
    <asp:Label ID="Label1" runat="server" Text="Days Old " />
    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server">
    <asp:Label ID="Label2" runat="server" Text="Days Old " />
    </asp:Panel>
    then when I hit save the code changes to
    <asp:Panel ID="Panel1" runat="server">
    <asp:Label ID="Label1" runat="server" Text="Days Old " />
    </asp:Panel><asp:Panel ID="Panel2" runat="server">
    <asp:Label ID="Label2" runat="server" Text="Days Old " />
    </asp:Panel>
    This messes with the outlining and makes it hard to see where controls like Panel2 is in the code.
    I am using a fresh install of visual studio community 2013 on a fresh install of windows 8.1 so this is not an issue with my istallation.
    I have tried setting tag Specific options with no change
    It doesn't do this every time or just on asp:panels
    I have tried adding line breaks and spaces etc. this doesn't help either.
    is this just a bug in visual studio or is there a general setting out of wack. I didn't have this problem with vs express for web 2012. but I did have it with vs express for web 2013 and community 2013

    Hi PBPuddin,
    Thank you for posting in MSDN forum.
    Based on your issue, I tried to add this code as you said into a html page and then I saved the code. I found that the code formatting of the html page did not occur like you said that in VS2013 Community.
    So to check if this issue is related to the VS2013 Community IDE, I suggest you could try to copy the  same version of the VS2013 Community setup file on other machine and then install it check this issue again.
    (1) If you still get the issue, I assume that the issue maybe related to this VS2013 Community setup file, so please download it from Microsoft official website and then install it again.
    https://www.visualstudio.com/en-us/news/vs2013-community-vs.aspx
    (2) If you did not get same issue, I suggest you could try the following suggestion to check the issue.
    (2.1) please try to open your VS in safe mode and then check if you install some add-ins in the VS IDE.
    https://msdn.microsoft.com/en-us/library/ms241278.aspx?f=255&MSPPError=-2147217396
    Or you could try to check if you install some third-party tool/ software on your machine.
    Hope it help you!
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error while trying to send a report link/page through email

    Hi,
    I was trying to send a bam report url through email but the following error occurs when i click on send button :
    The Message Center component is not configured correctly.The "Email Account for Alerting" field isn't specified correctly.Contact your system administrator to fix this
    Anyone help me by giving a solution
    Thanks in advance

    Hi, firstly I would like to ask whether, are you trying to send report URL in an alert mail? If it is so, then you have to configure your SMTP settings in your 'Message Center'. The steps to configure are as below-
    To configure the Message Center settings:
    1. Select Message Center Management from the drop down list.
    Some table cells are blank the first time you install the Oracle Business Activity
    Monitoring applications.
    2. Click Edit.
    3. Enter the mail server machine name or IP address in the SMTP Server Name field.
    The mail server must have the capabilities to send email to other SMTP servers
    that Active Viewer users specify in their personal settings.
    4. Enter an email account including the domain used by the Oracle BAM service in
    the Email Account for Alerting field. This is the account that will appear in the
    From header of e-mailed alerts.
    5. Click Save to save your changes.
    6. Restart the Oracle BAM Event Service to make the changes effective.
    Let me know if this helps. If this is not the requirement, please mention your requirement precisely.
    Harsha.

  • I can set my default home page (when Firefox starts) but if I open subsequent tabs I get a blank page. How do I set my default home page for all tabs.

    I set my default home page to AltaVista.com. This page comes up as expected when I start Firefox. However if I open a new tab I get a blank page. How to I setup Firefox to use my default web page for all subsequent tabs. This was an easy process in IE

    Sounds like you want the New Tab Homage extension.
    https://addons.mozilla.org/en-US/firefox/addon/777/
    For more info about extensions, see [[Using extensions with Firefox]]

  • How to send information from HTML page to JSP without reloading HTML page?

    Hello,
    Is it possible to send information(row number selected by user) from HTML page to JSP without reloading HTML page?
    Thanks.
    Oleg.

    Yes, you can do this with framesets and a hidden frame.
    You need a bit of JavaScritp in the "visible" frame that
    sets the location of the hidden frame to the JSP.
    Add the user's choice as a parameter to the JSP URL.

  • Sending content in an html page via email as body

    Hi
    I am really in need of a prompt help for sending a web page which contains some html content as an email body.
    I really have no clue about this.
    I have tried searching in google but could not find any thing in java.
    I have everything ready for sending an email, i.e. to, from and subject.
    The only thing i need is the content from an html.
    I can set the content type as text/html.
    I need some help on content Id and content.
    Any quick help is really appreciated.
    Thank you.

    I have tried searching in google but could not find
    any thing in java.You actually didn't. Go take a look:
    http://java.sun.com/developer/EJTechTips/2004/tt0426.html#1

Maybe you are looking for

  • F-51 bal field profit center in line item 001 not filled

    when i am clearing vendor account by using f-51 t.code sap system is poping message bal field profit center in line item 001 not filled. can anyone resolve the issue or if any suggestions so that i can go further. Moderator: Please, search SDN; this

  • LG Blu-Ray Surround Sound Receiver

    Hi there, almost 2 years ago I bought an LG Blu-Ray player with the 5 speaker surround sound.  At the time, I lived in an apartment and could position the speakers properly.  However, recently I purchased a house (Yah!), but there isn't a way to run

  • App world disappear, bold 9780

    Hello,my app world disappear when I was trying to upgrade my bbm to the latest version that also disappear after. I tryied to download it many times and tried to delete it from my applications and reinstall it and nothing is working with me. Any help

  • Audio/Video (Adjustments Disabled)

    I have a PHOTO that cannot be edited (in the Adjustments window it says Audio/Video (Adjustments Disabled)), everything in edit greyed out. Previews are enabled and all other photos are working fine. If I duplicate this picture (remember it is not a

  • [Request] Maintainer needed for Gourmet Recipe Manager

    The recent Python upgrade broke this AUR [community] package and there presently is not a maintainer. I know nothing about Python or maintaining a package, so I think I am a poor candidate. Any one willing to pick this one up? Thanks! Bob p.s. or is