ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I mean... I want to send through email one HTML document. I tested it and it works well.... however, all the links and images are dinamically linked to the original location in internet of the HTML document I want to send... in a few words: they're broken.
Is it possible to fool the document (I'd say the browser instead) to think that the document is being downloaded from a given place instead of the mail, so the images and links are not broken?
Not an option, man... can't send a 500 kb mail to a bunch a people.
or just send the links like what? The google/linux link?
That's OK for a couple of links or images to change their directions to static, man.... but how about if there are a couple of dozens.... or hundreds? I don't want to spend a whole day just changing some directions in a HTML file (don't even want to spend 5 minutes!!!! )
That's OK for a couple of links or images to change their directions to static, man.... but how about if there are a couple of dozens.... or hundreds? I don't want to spend a whole day just changing some directions in a HTML file (don't even want to spend 5 minutes!!!! )
Well, sorry I posted mate. I obliviously don't understand what
you're getting at...and as for spending time, why don't you just
right-click "view page source" in some that you got, and read
the html?
Look. I do work with the source... linux forum, remember?
As I sais in the begining, I just want to know if there's a standard way to make the browser "assume" that the page is being downloaded from a given internet address instead of the mail itself so that the links provided in the page itself don't get broken.
I'm not sure what you are asking. Do you want to send people an email that appears to be a complete HTML document, but is actually just a link to another site? (that is, somehow "embed" some webpage from somewhere else on the internet into your email?) If so, you're pretty likely to run into a lot of link problems.
If you copy and paste the HTML code from your website into an email message, all the links should work fine if they are absolute links, like this:
But I think Chinaman has the better idea: why not just tell people "Hey, go visit this site: http://www.mysite.com/" That way you can just post everything on the webpage, and you only have to send a very short email.
That would be my FIRST solution to it.... but the BOSS (the one in command) wants the %&(%/&(/$%&/$&/()&=(/ email to show up just like the &/())&/()%&$&/ page that is on the site.
So... what I tried first was:
Send a HTML mail with a unique frame that would contain the web page at the server.... sounds easy... and effective. The only problem with that approach is that it didn't actually work.
seconf choice: What the hel. I'll just grab the page at the Web server and send it to the recipients..... but OF COURSE all links are gonna be broken. so.... well.... now you know where I'm standing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.