Embed .html file in eMail
Hi,
i need to embed a .html file (to send as a newsletter) in the mail.
pls let me know how to do.
it will be more useful if u send a sample code.
Thanks,
Natesh.
http://java.sun.com/developer/EJTechTips/2004/tt0426.html#1
and other examples in google
http://www.osix.net/modules/article/?id=39
Similar Messages
-
Embed html file without using IFrame UI
Is there any way to embed html file without using IFrame UI?
Hi
To embed a static HTML content inside your view, Iframe is the easiest form or else, you can provide links through Linktourl UI or through a static text or a button, invoke a action and display the HTML content inside the frame or call it in a seperate (external) window.
Otherwise, we have only less options!
if you have anything specific, do let us know
thanks
sathya -
How to upload html file to email
Hi,
I have absolutely no html background but was able to come up with a single page layout with graphics, texts and links with the help of online tutorials using Adobe Go Live which I can open the file now in Dreamweaver.
My goal is not to come up with a webpage in cyberspace but to create an html file with images and links to specific websites that can be emailed to people. The file must be part of the email body that people can readily view the images, texts and click the links right away and not to be as an attachment.
Would appreciate it very much if someone can help me out.
Thanks.
NewbieThe simplest way to handle this would be to Upload the page and files to a remote server space and send your email buddies a link to the site. Barring that....
How to Code HTML Emails
http://www.sitepoint.com/article/code-html-email-newsletters/
Use inline CSS styles for fonts and background colors. Use Tables to hold your page elements. Use absolute URLs to images hosted on your web server because attached images may not get through. Give people who can't see your HTML page in their email client a link to the HTML page on your web server.
Download some HTML Email Templates from the links below to help you get started.
Mail Chimp
http://www.mailchimp.com/resources/html_email_templates/
Constant Contact
http://www.constantcontact.com/email-marketing/html-email-templates/index.jsp
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com -
How to embed html-file into swing
hello,
can anybody help me how to embed a html-file into a swing application??
I try to write a swing-application, that connects to a Internetpage via Sockets.
The problem is, that I can only see the sourcecode of the InternetPage in my JTextArea, but I want to see the whole Page just like in a browser.
I hope anybody can help me to solve this problem, thanx minau will need to use the JEditorPane component instead of Jtextarea.here is a url to help u get started
http://java.sun.com/docs/books/tutorial/uiswing/components/simpletext.html#editorpane -
Can i embed HTML file into HTML file?
Recently i learn to design and code my website from scratch with some help from my friend and asking here and there.
I want to make it easier for editing so i make header and footer. At first i want to embed header.html and footer.html into index.html, as my friend said index.html is more google friendly than index.php
I can't find the answer anywhere for embedding HTML into HTML, is there a way?
My website is at http://www.baliweddingphoto.com
Probably you guys can check and help me embed .html into .html
Thanks before.Already did, i'm glad to hear from MurraySummers and Rob Hecker2 that no differences between index.html and index.php, so i will stick on using my index.php
Now i can sleep well and continue my code learning without doubt
Thanks Guys. -
i am not a dreamweaver user - in fact i have managed to some
how get an electronic invite done where the RSVP buttons, when
clicked, take the user directly to and email addressed to the right
person.
however, i have no idea how to save the html document (made
in dreamweaver) to a file that can be placed in an email as an
electronic invite and stil retain it's features.
can someone help?You have to place your graphics on an external webserver and
link to these graphics with Absolute paths -
Hi
I've written a small program that allows an html file to be embedded inside an email message. The html appears as the message body when the recipient opens the email.
My code uses the following statement:
mbp.setDataHandler(new DataHandler(source1));Where mbp is a MimeBodyPart and source1 is an HTML file.
I wondered if it is possible to embed an mht file in the same way?
I've tried but with no success thus far.
Thanks for any advice
GB[http://filext.com/file-extension/mht|http://filext.com/file-extension/mht]
You want to create a multipart/related message. See the FAQ and this forum for more help. -
Files created in DW with slices, how can I email the html files to someone
Hello,
I was wondering if someone could help me please? I created my first website in DW CS4. I used Illustrator to create it, added slices, then did the rest in DW. My site is not live yet - I have not yet uploaded the files to the web host. However, I need to email the .html file to someone so that they can see what I have created so far for the site. But when I attach the .html files, the person I send them to cannot view them - when they open the file it is just a bunch of placeholders where the slices are and you can't see the web page at all. I am a newbie to web design so this is probably quite an ignoramus question. I appreciate any help anyone can give me!!The best practice is to upload the site to a TEST folder on your remote server for debugging purposes. (yourdomain.com/TEST/index.html)
Then send your client an email with the URL so they can see the site. When you're done testing & debugging, remove the TEST folder from remote server.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com -
Converting html file into zip file and send email attaching zip file
Hi Experts,
I am trying to send email with attachment(html). Which contains more than 7MB. So, It is throwing an error like Size exceeded.
So, Now i need to compress the data for less than 7MB.
I decided to convert HTML File into ZIP File.
Kindly suggest me to convert the HTML file into ZIP file and sending email with attached ZIP file.
Correct answer rewarded,
Thanks & Regards,
N. HARISH KUMARHi Experts,
*// HTML_TAB converting into ZIP File
DATA : zip_tool TYPE REF TO cl_abap_zip,
filename TYPE string ,
filename_zip TYPE string .
DATA : t_data_tab TYPE TABLE OF x255,
bin_size TYPE i,
buffer_x TYPE xstring,
buffer_zip TYPE xstring.
filename = text-007. "'HTML_TAB
*describe the attachment
DESCRIBE TABLE html_tab LINES tab_lines.
bin_size = tab_lines * 255.
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = bin_size
IMPORTING
buffer = buffer_x
TABLES
binary_tab = html_tab.
IF sy-subrc <> 0.
* message id sy-msgid type sy-msgty number sy-msgno
* with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*create zip tool
CREATE OBJECT zip_tool.
*add binary file
CALL METHOD zip_tool->add
EXPORTING
name = 'FSSAI_MAIL.HTML'
content = buffer_x.
*get binary ZIP file
CALL METHOD zip_tool->save
RECEIVING
zip = buffer_zip.
CLEAR: t_data_tab[],bin_size.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = buffer_zip
IMPORTING
output_length = bin_size
TABLES
binary_tab = html_tab.
Thanks & Regards,
N. HARISH KUMAR -
Sending HTML file as body of email message
Hello everybody,
I am trying to send a HTML file as body of an email message using JAVA mail API. If anybody has more insides pls let me know......
Waiting for your reply!!!!!!!!!Here's what our app does:message.setDataHandler(new DataHandler(new ByteArrayDataSource(bodyHTML, "text/html")));where message is a MimeMessage and bodyHTML is a String containing the HTML.
-
Html file in the content of email.
hi friends,
I want to send email in the html format.
can we pass the html file in the content of mail?
i.e instead of doing this
messageBodyPart.setContent("<html><body> " +
"--------------------------------------------------------------------------------<br><br>"+
""+firstLine+"<br><br></body></html>" );
can I directly pass the html file?
Also if we have images in the html is there any way that instead of hot linking the images we can attach them with mail?Supplying the html content using a file instead of a String is easy:
messageBodyPart.setDataHandler(new FileDataSource("file.html"));
To include images in the message is harder, see the FAQ. -
How to Email a remote html file as an attachment
Hi ,
I want to mail an html file as an attachment using JAVAMail. I have only the URL of the remote file.How can i do this? Please show me a way.......I basically want to send a multipart object as an attachment using java mail.My multipart object contains a remote html file contents and related gifs. I want to send the whole object as attachement so that the user can save it locally and view the html and embedded gifs.this is what i did
MimeMultipart multipart = new MimeMultipart("related");
messageBody.setContent(totContent,"text/html");//totContent is the html file contents.
multipart.addBodyPart(messageBody);
//loop to embed the gifs
messageBody.setDataHandler(new DataHandler(new URL(imagepath)));
messageBody.setHeader("Content-ID", imgName);
multipart.addBodyPart(messageBody);
//loop ends
i want this multipart to be send as an attachment. Please enlighten me.......this is a bit urgent........ -
I have a swf file but no html file was generated. how can I embed this? Using iframe? But how?
I am pretty sure I put the swf in the folder in idisk that is the name of the site, e.g., idisk>Web>Sites>iweb>cameraobscura
But what comes after that?Hey Jabberwock...
Check this page out...
http://www.w3schools.com/flash/flash_inhtml.asp
It has good info on the basic, basic stuff that you need to have in the <embed> or <object> tag for flash...
And I really learned a lot from this page of explanations into the need for all that classid stuff and codebase stuff...
http://www.alistapart.com/articles/flashsatay/
And finally, this is something that I am still digesting, but it looks like a nice javascript method of embedding flash (though it doesn't seem as neat and simple as the above methods)...
http://blog.deconcept.com/swfobject/
BTW, the above (first and second) HTML method is how the Google flash video is set up, so that's sort of how I got looking into this with all the Flashvars and other variables like autoplay. -
Emailing attached HTML file with embedded applet
Are there any mail servers that could reject emails with attached HTML file that includes embedded applet in a Java Plug-in Object tags? It has an absolute path to a server where the applet resides.
I have seen very few cases where Symantec Anti Virus filter is dropping the messages because of a mime problem. It appears that only two workarounds are to upgrade the Symantec product and to bypass our domain.
Is there anything I could do to prevent the mime problem issue? I hope the Java applet is not an issue.
Johnpberardi1,
I hope you get better soon from the accident you must have had. Surely you must be in the hospital or something, otherwise by now surely you'd have had the courtesy to say a simple
"Thank you".
So,
"You're welcome". -
AppleScript: Add a HTML file in the body of Email by the clipboard
I would like to insert a HTML file into the body of Email by the clipboard action.
This is my cord below:
set the clipboard to (read (choose file) as «class RTF »)
set theBody to "Hello"
tell application "Mail"
activate
set theMessage to make new outgoing message with properties {content:theBody, visible:true, subject:"mysubject"}
end tell
tell application "System Events"
tell process "Mail"
set focused of UI element 1 of scroll area 1 of window 1 to true
keystroke "v" using command down
end tell
end tell
This code enables only rtf file rather than HTML.
Also I don't want to use the html content by the function of Mail.
Because if using it, you won't insert both a html file and body at the same time.
So what I would like to is to insert a HTML file by the clipboard action into a body.
Thank you!Hi,
One solution is to use Safari to copy the document:
set x to choose file -- a HTML file
tell application "Safari"
open x
delay 2
repeat while source of document 1 does not contain "</html>"
delay 1.5
end repeat
activate
end tell
tell application "System Events"
tell process "Safari"
set frontmost to true
keystroke "a" using command down -- select all
delay 0.3
keystroke "c" using command down -- copy to clipboard
end tell
end tell
set theBody to "Hello"
tell application "Mail"
activate
set theMessage to make new outgoing message with properties {content:theBody, visible:true, subject:"mysubject"}
end tell
tell application "System Events"
tell process "Mail"
set focused of UI element 1 of scroll area 1 of window 1 to true
keystroke "v" using command down
end tell
end tell
Also try this:
set the clipboard to (read (choose file) as «class HTML») -- a HTML file
Maybe you are looking for
-
How to sort on category id using categorization schema in SAP CRM 7.0
All, Currently we are using categorization modeler within CRM7.0 for complaint transactions. It seems that the sortation with respect to the categories which have been defined within a categorization schema, is based on the date that the categories w
-
The g, h and backspace on my keyboard are not working even after replacing with a new one. I have also updated my BIOS still d same. Please help me ASAP. ...am waiting for a QIUCK RESPONSE
-
TradeMark Symbol and Registered Symbol are being replaced by question marks
Hello Everyone, I am using RTF template to generate report in PDF, otherwise "Trademark and Registered" symbols from the field data are being replace by "question marks". Any suggestions please. Regards Charan
-
Hi, I have a Nokia Lumia 620 that I brought in early Februrary from Expansys and a month later it got a broken power button. First I sent it to the Nokia service center in Canada and they said that it wasn't from Canada and they could not repair it.
-
Significant difference in performance with separate HTTP and DB servers
Hello, I have an application in TEST with a local install of HTTP (APACHE from the companion CD) and the performance is acceptable (1-2 seconds per page) I have separated the HTTP instance onto the LIVE platform (Windoze 2003). On both platforms, the