E-mailing HTML page
I would like to take a page i created in Dreamweaver that has
text, a JPG. image, as well as a rollover & Flash image and
e-mail from a yahoo page to send to another e-mail account.. I
tried copying the code & pasting on the yahoo page but it just
sends the code to the other account. Anyone know the solution,
Thanks SpockPainter
If you send it as an attachment then they can open or save
and then view it in their browser. Otherwise you have to setup
yahoo's so it sends it correctly so it can be viewed in the body of
the message. I think you go to options and then click on General
Preferences and then scoll down to the section heading titled
Composing E-mails and click the radio button that states Compose
messages as color and graphics.
Similar Messages
-
Can I display html pages in flash player
Hi all,
Can I display html pages in flash player, i mean swf. Plz
help me if it can be done. Can I call html pages in flash (i mean
in flash player no new window)
Thankshi,
Actullay i want the site to be opened with in the flash
player, just like iframe in dreamweaver calling the external site
in the mail html page. Plz Help me accessing external site page
with in flash player
Thanks -
How to send inline HTML page in mail(not as attachment)
Hi,
I am using JavaMail to send details to users using text mail. Its working successfully. But now i have to send the details on mails that will contain HTML page (not as attachment but as inline HTML page containing text) and details in it. Plz help me. Its urgent.
Thanks in advance,
DevomSet the contentType to "text/html" and send away.
(If you need both text and html you will need to make a multi-part message), this is covered in the FAQ.
http://java.sun.com/products/javamail/FAQ.html
travis (at) overwrittenstack.com -
How do i send an html page in java mail
hi everyone, i have an problem while sending html page in my java mail application.Actually it's sending the html page correctly but the thing is it doesn't display the gif files . why so ? can anyone help me. i think its b'coz of the path problem.
My requirement is like this :
I would like to send an html page to some [email protected] from my local system . for that i have written one mail application which will build an html page which is also having some gif files. And these gif files are located in my local system. when i sent to some xyz user it's not displaying the gif files . How should i give the path for that gif files. pls help me regarding this. This is Urgent.
Thanx in advance.
by
jjjavachi , here with i have attached my program which will work fine . What u have to do is u have to specify ur smtp host address. from address and to address. And if u want to embedd the gif file u have to specify the gif file name. It will work only in outlook and hotmail. if u have anyother doubt let me know.
import java.io.*;
import java.util.Properties;
import java.util.Date;
import javax.mail.*;
import javax.activation.*;
import javax.mail.internet.*;
import java.sql.*;
import java.text.*;
* @author Jeevan
public class EmbeddingGif {
StringBuffer sb = new StringBuffer();
String line;
public static void main(String[] argv) {
new EmbeddingGif (argv);
public EmbeddingGif (String[] argv) {
String to, subject = null, from = "[email protected]",
cc = null, bcc = null, url = null;
// String mailhost = null;
String mailhost = "10.1.0.106"; // SMTP host address
String mailer = "SendHtmlMail";
String protocol = "imap", host = null, user = "jeevan", password = "jeevan";
String record = "g:/rbs/web-inf/classes/emailstore"; // name of folder in which to record mail
boolean debug = false;
BufferedReader in = null;
int optind;
for (optind = 0; optind < argv.length; optind++) {
if (argv[optind].equals("-T")) {
protocol = argv[++optind];
} else if (argv[optind].equals("-H")) {
host = argv[++optind];
} else if (argv[optind].equals("-U")) {
user = argv[++optind];
} else if (argv[optind].equals("-P")) {
password = argv[++optind];
} else if (argv[optind].equals("-M")) {
mailhost = argv[++optind];
} else if (argv[optind].equals("-f")) {
record = argv[++optind];
} else if (argv[optind].equals("-s")) {
subject = argv[++optind];
} else if (argv[optind].equals("-o")) { // originator
from = argv[++optind];
} else if (argv[optind].equals("-c")) {
cc = argv[++optind];
} else if (argv[optind].equals("-b")) {
bcc = argv[++optind];
} else if (argv[optind].equals("-L")) {
url = argv[++optind];
} else if (argv[optind].equals("-d")) {
debug = true;
} else if (argv[optind].equals("--")) {
optind++;
break;
} else if (argv[optind].startsWith("-")) {
System.out.println(
"Usage: SendHtmlMail [[-L store-url] | [-T prot] [-H host] [-U user] [-P passwd]]");
System.out.println(
"\t[-s subject] [-o from-address] [-c cc-addresses] [-b bcc-addresses]");
System.out.println(
"\t[-f record-mailbox] [-M transport-host] [-d] [address]");
System.exit(1);
} else {
break;
try {
if (optind < argv.length) {
// XXX - concatenate all remaining arguments
to = argv[optind];
System.out.println("To: " + to);
} else {
System.out.print("To: ");
System.out.flush();
// to = in.readLine();
to = "[email protected]";
if (subject == null) {
System.out.print("Subject: ");
System.out.flush();
// subject = in.readLine();
subject = "New Bill @ " + new Date ();
} else {
System.out.println("Subject: " + subject);
Properties props = System.getProperties();
// XXX - could use Session.getTransport() and Transport.connect()
// XXX - assume we're using SMTP
System.out.println("mailhost :"+mailhost);
System.out.println("from :"+from);
System.out.println("to :"+to);
System.out.println("cc :"+cc);
System.out.println("subject :"+subject);
System.out.println("bcc :"+bcc);
System.out.println("url :"+url);
if (mailhost != null)
props.put("mail.smtp.host", mailhost);
// Get a Session object
Session session = Session.getDefaultInstance (props, null);
if (debug)
session.setDebug (true);
// construct the message
Message msg = new MimeMessage(session);
if (from != null)
msg.setFrom(new InternetAddress(from));
else
msg.setFrom();
msg.setRecipients(Message.RecipientType.TO,
InternetAddress.parse(to, false));
if (cc != null)
msg.setRecipients(Message.RecipientType.CC,
InternetAddress.parse(cc, false));
if (bcc != null)
msg.setRecipients(Message.RecipientType.BCC,
InternetAddress.parse(bcc, false));
msg.setSubject(subject);
collect(in, msg);
// msg.setHeader("X-Mailer", mailer);
// msg.setSentDate(new Date());
// send the thing off
// Transport.send(msg);
// System.out.println("\nMail was sent successfully.");
} catch (Exception e) {
e.printStackTrace();
public void collect(BufferedReader in, Message msg) throws MessagingException, IOException {
BodyPart bp1=new MimeBodyPart();
String html="<H1>Hello from Jeevan</H1>";
html=html+"<img src=cid:mickey>";
bp1.setContent(html,"text/html");
MimeMultipart mp=new MimeMultipart("related");
mp.setSubType("related");
mp.addBodyPart(bp1);
BodyPart bp2=new MimeBodyPart();
DataSource source=new FileDataSource("fss.gif");
bp2.setDataHandler(new DataHandler(source));
bp2.setHeader("discrete-type","image");
bp2.setHeader("Content-ID","mickey");
mp.addBodyPart(bp2);
msg.setContent(mp);
Transport.send(msg);
System.out.println("\nMail was sent successfully.");
// msg.setDataHandler(new DataHandler( new ByteArrayDataSource(sb.toString(), "text/html"))); -
How to place a html page into body part of mail?
Hi,
I want to place a html page into body part of any mail.How can i do this?
Thanks...just set ur message type to text/html and put ur whole html string into the body will do...
-
How can i send a HTML by email??
When i am sending a HTML he shows the code in the mail instead of showing the HTML page??
Anyone knows how can i solve tyhis??are you setting the content type to text/html? there are plenty of examples out there (and in here). run a search.
-
Embedding HTML page as attachment
I am sending a mail in html format. This HTML page contains some images and some links. Link in the html page refers to another html page. When clicked on this link, this referred html page should be opened in a browser window.(Html link cannot be web URL like http://...) . Inorder to do this I have embedded the images and html page with my mail. But when the link is clicked on the html, nothing is happening.(I can save the referred HTML page by selecting Save Attachments menu. That means the html page is available with mail) . How can i refer the attached html page? Please help
I guess you need to refer it using the cid:##### where ##### is some content id, as reference and use the same id as Content-ID: header for your attached html page.
check RFC2111 at http://www.ietf.org/rfc/rfc2111.txt
The following message points to another message (hopefully still in
the recipient's message store).
From: [email protected]
To: [email protected]
Subject: Here's how to do it
Content-type: text/html; charset=usascii
... The items in my
previous message, shows how the approach you propose can be
used to accomplish ... -
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
SamanSubhash,
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 -
Creating an HTML page with an embedded image in JAVA
is it possible to have a code in java that creates an HTML page,
reads an image file and embeds this to the HTML page?
can anyone give me a sample code? =)
thank you very much!Just tried this out, and it doesn't do what I was hoping: embed the image into the HTML document as a byte stream, so that the HTML document will display the image, without a seperate file.
When I did:
import java.io.*;
public class EmbeddedImageTest {
public static void writeHTML(String htmlfile) {
File htmf = new File(htmlfile);
FileOutputStream fout;
DataOutput dout;
try {
fout = new FileOutputStream(htmf);
dout = new DataOutputStream(fout);
dout.writeBytes("<html><head></head><body><img src=" +
"file:/C:/image.jpg></body></html>");
catch(IOException ie) {
ie.printStackTrace();
public static void main(String[] args) {
writeHTML("c:/embeddedImage.html");
}I just got an HTML file containing "<html><head></head><body><img src=file:/C:/image.jpg></body></html>".
I've seen images get embedded in MS Outlook HTML e-mails. Does anyone know if this is done in a standard way (ie not through some MS-proprietary way), and if it can be done with an HTML file made by Java? -
How to call HTML page through JSP ?
i want to know Hw to call Automaticly a HTML page through JSP.
example :-
have u seen yahoo login wen u put your ID & pass & Clock on login button it will chack ID & pass in the database & if it is correct then It will call A Mail Home Page.
that's same i want to do.
i have a jsp page which chacks the userID & Pass & call the first.html page
but i dont know how to call html page automaticly.
Any one can help me
what i think is this
tell me is it right or not
suppose i have made a variable
String add = "first.html"
after chacking userID & pass
if(idpass == true)
add;
if(idpass == false)
erre;
it will work or not pl tell meIf you do the redirect with javascript, the user cannot resubmit his login when he presses the refresh button. When he does press refresh, he only refreshes the redirect, not the form post that was before it. When he presses back the redirect will also kick him back in stead of going back to the login page. A simple javascript redirect page would look like this:
<html>
<body onload="document.location.href='myhtmlpage.htm';">
</body>
</html>But that is only if you care about resubmits of course. -
Script to print an html page in both sides (duplex printing)
Hi,
I have a website that can print page automatically without showing the print dialog box. Now, user's have requirement to print the page in both sides.
Is there any vbscript/javascript that will auto print the html page in both sides (duplex)
Thank You!Hello,
This should be asked in Microsoft's ASP.Net forums:
http://forums.asp.net/
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}}) -
Hello,
We are using the Workflow Mailer with Outlook '98 (to send mail) and Outlook Express (to receive mail). We have selected the 'HTML Mail' delivery. When we look at the sent and received messages, we see the HTML code in the mail, and an attachment with a HTML-page.
We can send mails as an HTML page only, but the Workflow Mailer creates always mails with code and HTML attachments.
Anybody a suggestion?I am not entirely sure what your question is here, and the answer might vary depending on the version of workflow you are using. From the Workflow Guide, here are your possible notification preferences for Workflow 2.6:
HTML mail--Send notifications as HTML e-mail. Users must read their mail using an HTML e-mail viewer.
Plain text mail with HTML attachments--Send notifications as plain text e-mail but include the HTML-formatted version of the notifications as attachments.
Plain text mail--Send notifications as plain text e-mail.
Plain text summary mail--Send a summary of all notifications as plain text e-mail. Users must use the Notifications web page to take action on individual notifications.
Do not send me mail--Do not send the notifications as e-mail. Users must view the notifications and take action from the Notifications web page.
Hello,
We are using the Workflow Mailer with Outlook '98 (to send mail) and Outlook Express (to receive mail). We have selected the 'HTML Mail' delivery. When we look at the sent and received messages, we see the HTML code in the mail, and an attachment with a HTML-page.
We can send mails as an HTML page only, but the Workflow Mailer creates always mails with code and HTML attachments.
Anybody a suggestion? -
.swf file in html page with WebLogic Server in Netscape
I am not able to embed .swf (flash) files in html page when accessed thru' Weblogic server in Netscape Ver. 5 and below but supported in Netscape6.0 and IE. When run as html page without WebLogic server, it is working well. Please suggest a solution for this problem to my mail id.
I've had a quick trawl round the web, but can't find an answer to this specific problem - will let you know if i discovr anything.
Lots of people seem to have problems because the relative url address has to be in relation to the html page, not the loading swf. All my files are in the same folder, so it;s not that. Also, the problem occurs whether running from my hard drive or web server. -
Access HTML Pages from Forte Applications
We are currently looking at how to redevelop our online help facility for a
Forte application. We are investigating the use of HTML pages.
Has anyone written a Forte application that opens particular HTML pages? If so,
how was it done?
Regards,
Steve Isaac
Senior Consultant, Information Services Group
Hydro Electric Corporation of Tasmania
4 Elizabeth St, Hobart, Australia, 7000
Phone : +61 03 6230 5161
e-mail: [email protected]We have created the idea of an OnLineAssistant that uses HTML pages to drive
help in a Wizard-like fashion.
We use an embedded ActiveX browser control in a Forte window to display the
HTML pages. The pages are launched by passing the application, window, and
widget name to the OnLineAssistant window, which uses the information to load
the correct page.
For example: an application screen for entering customer name and address
passes it's information to the on-line assistant, which links and displays the
page associated with that particular step of a task wizard defined for that
widget. The ActiveX control then allows the user to link into any of the
other pages associated through standard HTML.
This context-sensitive mechanism is also used to launch on-line help (without
the task orientation) at the user's request.
One of the benefits of this approach is that we can put the message passing
into a generic framework ancestor without making any application code changes,
and the OnLineAssistant HTML pages can then be created by non-programmers and
deployed independently from the application, and HTML can do most of the
navigation work.
-DFR -
Page length problem in PDFs generated from HTML pages in Acrobat
I just spent an exhausting 2-1/2 hours on the phone with Adobe tech support (offshore) in order to get a 5 minute fix. I figured that I'd document it here in case another user has the same problem. (I'd checked the forums and a few e-mail lists and hadn't found a solution.)
When generating PDFs from HTML (Web) pages, Acrobat squeezed all of the text into the middle of a single page (with just the last inch or so of text on page 2). This resulted in pages that Acrobat identified as being 30", 40", even 60" long, and the printed results were unusable. I haven't been able to identify an event or a system change that caused this to happen; Acrobat had been generating PDFs properly before this trouble started.
THE FIX:
1. Start Acrobat and run the Repair Installation option from the Help menu.
2. Go to C:\Documents and Settings\user\Application Data\Adobe\Acrobat\8.0
and rename the Preferences file to PreferencesOld. A PC restart will be
required after this change.
3. Restart Acrobat. This creates a fresh Preferences folder.
4. Test creating PDFs from a single HTML page and from multiple pages.Thanks, Bernd, but where are these settings? While I'm writing, is there a setting to make an html file fit on one page in Acrobat?
Maybe you are looking for
-
Saving form with content (end user)
I have created a form using AdobeLiveCycle Designer. Everything seams to work when I tested it... However, When I send it for someone to fill out, she wanted to save a copy for her records with the data included. I was able to do a simple "save as" t
-
N82 problems... anyone else having them?
I love this phone to death (I only wish it had a slightly bigger screen with touchscreen capability but oh well) but am having some issues: *Almost every time I play a video using Smart Movie Player the phone freezes completely, requiring taking the
-
Is there a 64 bit version of firefox? If there is please post or send a link.
I am running a 64-bit version of windows seven and I was wondering if there is a 64-bit version of firefox
-
DB was down for unknow reason?
Dear all, Last night the database was down for some unknow reason. I have checked the alert.log and see everything is ok (highlight in bold) and just around 15 mins the database encounter errors. ---------------------- alert.log ---------------------
-
Hi all, I'm not familiar with Cisco new AP and have a question for all. Is it possible to have one access point authenticate domain users on one vlan and then outside users on another vlan without authentication? For example, if i am as a domain user