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"
Related
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?
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
This is probably a simple question but I'm having difficulty finding the solution online. I have created a simple HTML form within a JSP ('Enter name' text box and a submit button). I'm trying to find out if there is a way to send the POST information to a set email address. I don't want the user to have to pick a email to send it to which I know can be done with servlets. Rather than having the Name display when I click the submit button, I want the name to be sent to a email address that has been set on the backend. Could someone please link me to a tutorial where this can be done?
See how to send email: http://java2s.com/Code/Java/Email/Createaverysimpletextplainmessageandsendsit.htm. Text message shall contain values of form parameters - request.getParameter()
I have working the auto population of this form: http://getpocket.com/save
I'm using it rather than the API so that it works when users are logged into Pocket on the same browser as my website.
However, it's not a good user experience to then have to click 'save', so how can I "automate" that?
I won't show my code, because it essentially is just to generate a link of the form:
http://getpocket.com/save/?title=thetitle&url=encodedurl
It populates the form fine, but how can I submit? I tried apending &save and &submitand then each of those =True, in vain. Is the issue that the save button doesn't have a name= field, which is what's used to hook into the title and URL fields?
EDIT: Just to be clear, I didn't have any malicious intentions, only to save articles to read later on click of a button.
If I find the time I'll have a look at the API.
Luckily this is impossible (on Pocket and most sites) due to cross site forgery request protection to prevent exactly what you are trying to do.
A token is set in the form and together with session information for the user on pocket (or any other site that uses csfr token protection) it will need to form some sort of secret hash. When the 'save' form is submitted the combination of these strings will be checked and normally new strings will be set. Because there is (practically) no chance that you will be able to predict the token form the form itself and have no real way of manipulating the session hash, you are out of luck. And we are all very happy for that :).
Otherwise you could make links on other sites that would delete your whole database when you happen to click on them, etc.
In short: You can't.
On any form without csrf protection you'd have to target not the url of the page with the form, but the 'action' of the form. You can see this action by inspecting the form with your browser's DOM inspector. But, as I said, csrf protection will prevent this from working most of the time.
http://en.wikipedia.org/wiki/Cross-site_request_forgery
https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)
I am working on a login dialog to my site. To spare users the frustration of having to remember their login details, I want to cooperate with the built-in browser password managers. I have worked out that to get Firefox to play ball, I must use a plain-vanilla HTML Form. Fine, so be it. However, I will not transfer unencrypted passwords. So my form content looks like so:
input#1 type="text" name="login"
input#2 type="password"
input#3 type="hidden" name="passwd"
I then intercept the submit and encrypt the content of #2 into #3, and off goes the form. Works a treat in IE and Firefox, not so in Opera and Chrome. Just rifled around SO and find that the problem is input#2, which does not have a "name" attribute. A quick test reveals that when I add name="ignore" it does work indeed in Chrome and Opera. Only trouble is that the password is now sent across the network plain text, with the label "ignore". Thanks a bunch. The whole point of omitting the "name" was to omit that field from the form.
If there a way that I can suppress input#2 from being sent while still giving it a "name"? Or is there another trick I could use?
Thanks.
The answer in the narrowest sense of the original question is: yes, it is possible via Ajax. Create a vanilla FORM with two named INPUTs and submit BUTTON. (Don't forget to feign some action in the FORM attributes.) Now it looks like a plain-text HTML affair. Next in JS, intercept the onsubmit from the FORM and launch an Ajax request to your PHP script, POSTing the plain login and hashed password. Return FALSE from onsubmit to suppress the FORM's action. You're done. No more plain-text passwords across the wire...