Attach an image to an email coming from an html page? [closed] - html

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a photo-gallery type html page. I am able to send emails using the <a href mailto:> function when a certain picture is selected. I would like to have that picture be automatically included in the email whether as an attachment (preferably) or in the body.

This is impossible.
The mailto: URI scheme provides no mechanism to either attach files or provide HTML formatted email.
The closest you could come would be to specify the URL as plain text in the body of the email (using body= in the query string).
Alternatively, send the email using server side code (which would give you full control over its content).

Related

How would I create a new HTML element through code that everyone can see [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am quite new to HTML and JavaScript and I created this extremely basic website that is meant to be a messaging thing. In theory you type your message and press the send button, and it creates a new HTML element. But the new element is only shown to the window that it is sent on. Here is the link for my deployed code.
In order for everyone to see the changes, you need to have a server where you'll be sending the text after clicking send, and on the server, you'll be broadcasting the received text to all the windows that are open currently.
Check out socket.io it is beginner-friendly to learn this kind of stuff.

Send emails with form in HTML [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am starting in the Web development and I would like to know how to send HTML forms to the email that is selected, already indicated me PHPMailer but I searched knew and did not understand very well.
Are you just trying to send form information to an email address? If so you probably don't need something like phpMailer but rather just include a mailto: action in the form tag. (example)
It really depends on what exactly you're trying to do the form data you're collecting.

Edit text in HTML [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have an h1 header on my page that simply says "Hello world".
I want to know how I can add a form to change the header to say "Hello world from my_form_field_value".
It depends on the technology you are using (jQuery, ASP(.NET), PHP, etc).
user3047190's answer used jQuery (client side solution). If using a server side solution, you can have the form send a querystring containing the text to the server and return a page with the text you just typed in.
Here's an online example: http://html.net/tutorials/asp/lesson11_ex1.asp
Here's the tutorial explaining the above classic ASP example: http://html.net/tutorials/asp/lesson11.asp
This question is horribly phrased so I'm afraid I will answer your question with other answers.
What I believe you want is on input change, you want to capture the change (Detecting input change in jQuery?) and update the h1 text: $("h1").text("newString");
(that will only work with jquery included)

how to save the datas which are get from a newsletter? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have made a newsletter with html and css,and in my newsletter,there are 4 fields,text boxes I mean,such as users name,family name,phone number and email address.I want to know that how should I save these informations which I get from the user in my newsletter. Should I save them on an excel file on the host?or what?what should I do?I will be so thankful for your help.
It is not possible to add forms in emails, they require server side code and database to work. You should link to a web based form so the email recipient can click and go to the form online to fill it in.
You have to use a server side language to store the data on a server, like PHP.
Instead link to a wufoo or google forms. You cannot embed a form in your email (yet).

How do you make a .com address into just a string in an email? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
MY code creates an email that has the text <h1>google.com</h1> in the body of the email. When I take a look at the email that is sent, it shows google.com as a link. Is there a way to tag it as not a link but just text via html?
Thanks!
This is almost always done by the client and will be dependent on on how the client decides what is and is not test. Similar issues occur with emails that with text such as "please discuss with jessica#accounting" where it's parsed as an email address.
The typical solution is to use html entities for text that shouldn't get parsed by the client. Using your example:
<h1>google.com</h1>
I would, however, consider the idea that if something is actually a URL, whether you intended it to be a hyperlink or not, letting the client do what it does, as the user may be accustomed to this feature and like clicking on any url in the body to open it.
If its really an issue, you could always make it an image. i.e Make gif/jpeg with the string "google.com"