Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

HTML mailto command is adding + signs in the mail.

iliano10

New Coder
I am very new and am kinda teaching myself how to code with HTML and such, after a long time of research i finally found a way to create 2 textarea's and allow people to write the subject and body of the mail themselves. after pressing the submit button it opens the mail client but it now shows + signs where spaces should be.

I am unable to find a way to fix this, anyone here know what to do, or is there an easier way of doing this?

Here you can find some code and the screenshots of the issue.

code.PNG
webbie.PNG
mail.PNG
 
Very happy to see you have chosen the journey of becoming a coder! Coding can very exciting! So this issue with the plus symbols showing up in place of the spaces seems very strange, I certainly reongize that's defiently not a great way to send email. With that said, to help us find a solution to this could you share the code as text so we can easily copy it to our editors, it makes it easier to solve the problem without trying to copy each letter form the picture.
 
I will not go into fixing this as it is a "very bad" way to send mail, most new browser's will throw a security error with this method.

This will help you: html-email-form
Could you explain why this is a bad way of doing it this way, what type of errors they might get and what should be the proper way of doing it?

Very great resource but it's important that when sharing links you provide the context of what it's leading to and why you are sharing it.
 
I will not go into fixing this as it is a "very bad" way to send mail, most new browser's will throw a security error with this method.

This will help you: html-email-form
It's not really a security issue per se, it just makes email harvesting easier. First thing that will get scraped will be the mailto links, followed by any emails within a page. It is easier to just add the email as an image, that way the email may be read by human eyes, but not picked up as easily with a crawler.. unless the bot dev is smart enough to account for this, and adds in OCR functionality.
 
I am very new and am kinda teaching myself how to code with HTML and such, after a long time of research i finally found a way to create 2 textarea's and allow people to write the subject and body of the mail themselves. after pressing the submit button it opens the mail client but it now shows + signs where spaces should be.

I am unable to find a way to fix this, anyone here know what to do, or is there an easier way of doing this?

Here you can find some code and the screenshots of the issue.

View attachment 852
View attachment 853
View attachment 854
Here is how you can take care of that, and make the email less accessible to crawlers/bots


Here's another great resource on using mailto:
 
Last edited:
I will not go into fixing this as it is a "very bad" way to send mail, most new browser's will throw a security error with this method.

This will help you: html-email-form
Also.. in regard to the browser throwing the error comment:
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom