How to remove pre-filled input value from Odoo newsletter block - html

I am developing our company website with Odoo (14) and for newsletter subscription I use Email marketing module. When you install this module, you are able to use drag and drop Newsletter block snippet. It looks really handy because you only need to choose which newsletter it will save on dashboard and that is it. It works pretty well but the only thing that I could not change is the input value. It automatically shows my email that I use for login to Odoo. When I check it in a new incognito window, it shows our mail sender email.
I have tried to give value="" to that input but it did not work. I only want to have a placeholder text: Your e-mail address but I do not know how.
Do you have any idea?

Related

"mailto:" doesn't set complete email address

I'm trying to set up a mailto: link to send an email to an address structured like "name.surname#mycompany.com"
I'm trying to use the classic
click here!
but once the default emailing app opens up, the recipient slot is missing the "#mycompany.com" part of the address.
I have been searching online for the past 2 hours without much success. I have also tried using character encoding to "force" the # symbol to somehow come out but I still haven't come up with any solution.
You can design a button so use form and enctype when user click them submit in your email
<form method="post" action="mailto:name.surname#mycompany.com" enctype="text/plain"></form>
or add attribute target="_blank"

Creating a "contact us" page using html

I'm trying to create a link which a user can click, that then redirects them to their email system allowing them to directly email a certain address. I'm not entirely sure how I would go about doing so.
If anyone could give me some tips that would be great, thanks.
hi i think this should work
Email Us
You can use a mailto link:
Send an Email
You can use Mailto Links
What is mailto link
Mailto link is a type of HTML link that activates the default mail client on
the computer for sending an e-mail.
The web browser requires a default e-mail client software installed on his
computer in order to activate the e-mail client.
If you have Microsoft Outlook, for example as your default mail client,
pressing a mailto link will open a new mail window.
Basic
Open default mail program, create new message with the TO field already filled out.
Email Us
Adding a subject
Open default mail program, create new message with the TO and SUBJECT field already filled out. Essentially we are adding the parameter subject to the href value.
Email Us
Adding CC and BCC
Open default mail program, create new message with the TO, SUBJECT, CC, and BCC field already filled out. Essentially we are adding the parameters cc and bcc to the href value.
Also note that you add multiple values to CC and BCC by comma separating them.
Email Us
Adding Body Text
Email Us
summary
You want a front end contact us page
No forms, in which the user can click a link to open up the relevant program to use
solution
Use protocols in your href attribute of an anchor tag
Example
Call us
The tel protocol will open a program relevant for making phone calls, ie skype on a desktop or the call screen on a mobile phone
Or
email us
Will open an email programme like outlook and show a window with the email address in the to field
For more information on href protocols for anchor tags visit
https://www.w3schools.com/jsref/prop_anchor_protocol.asp

Prevent Chrome on Mobile to open new email when tapping email address

My web app shows a list with items with certain properties. Each list item is a row, which amongst others an email address. When the row is clicked, it expands and shows more information.
All works fine on the desktop, but on mobile, Chrome recognizes the email addresses and on click it opens the email app to write an email to this address. I didn't set this myself, so this seems to be default behavior.
Is there a way to prevent this from happening?
The code to show the email address:
<p class="text-ellipsis"><em>someone#example.com</em></p>
I like to inject "zero-width no-break space" characters to fool helpy mobile browsers
<p class="text-ellipsis"><em>someone#example​.​com</em></p>
I ended up putting the email address in an tag, then styling this as normal text and disabling the default action through javascript. This way the browser thinks an action is already connected so doesn't do anything when clicked.
Since I was loading the data from a database query into a Django template, any option to add characters in the address itself would've not been possible.
Using chrome://settings/handlers then set "Don't allow sites to handle protocols" worked for me.

Open new email with readonly subject

I have below code in my Html page
<p>
This is an email link:
Send mail!
</p>
when i click on the 'Send mail' it opens up an outlook email with body and subject. Is it possible to make body as read only , meaning the user should not be able to enter/change anything in the body of the email. How can we do this?
thanks,
sankar.
The mailto: protocol simply instructs an OS to open the user's default mail-handling program. Because of this, the way a user's computer reacts to the mailto: link is dependent on the mail program that the individual uses.
While some programs may support "read only" subject lines or messages, most will not because by doing so you may force a user to send a message that they don't agree with or fully wish to send (hence a security flaw would be exposed).
In order to acchieve this "readonly" effect, you may wish to send email using a server-side library like PHPMailer which gives you full control over certain fields of the email and the user full control of others.

HTML (using CSS) Code for sending an email to given email-id

How can i code a HTML (using CSS) file to send an email to me(i.e. to given email-id) by the visitor of that website?
Without using a server-side language, the best you can really do is a mailto link. That will open the user's default email editor with the "To" field populated with the value of your mailto link. You can create one of those like so:
Email Me!
It is possible to provide extra information in a mailto link, to populate more fields. For example, if you want to provide a subject:
Email Me!
You can also provide a value for the body, cc and bcc but I have no idea how well those default values are supported by various email clients.
Also note that this has absolutely nothing whatsoever to do with CSS, which is used for styling documents. I've therefore removed the CSS tag from your question.
You cannot. You can use a tag:
Email Me
And this will open a mail client in the client side. The client must have it configured for being able to send a email.
If you want to create a form that, when the user presses a button "send" sends you a message, you must use a dynamic language such as PHP.