Creating a "contact us" page using html - 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

Related

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

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?

Capture subject line from Outlook email into mailto link in signature

I am helping someone working in operations to set up an email signature which includes a link to escalate to a higher official in case of any displeasure. While I can use a mailto: to link to the official's email id, I want to also capture the subject of the email to capture details like Service Ticket number and any other title that is in the email subject.
What I mean to say in a nutshell is - when a user clicks on the link, he would get a new Outlook compose mail window with the same subject. Using simple mailto: with manually changing subject line wont help. Looking for some tips here - am open to look at dynamic options like VB code or something but it has to be via Outlook.
Include a placeholder in the signature's link (e.q. mailto:somebody#domain.demo?subject=xyzq), when Application.ItemSend event fires, look at the MailItem.HTMLBody property and replace the placeholder (xyzq above) with the value of the MailItem.Subject property. You might need to encode spaces and special characters.
The mailto: command doesn't allows to specify any custom information for Outlook. Read more about the mailto scheme in RFC2368.
If you are new to VBA, I'd recommend starting from the Getting Started with VBA in Outlook 2010 article which explains the basics.

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.

How do I make a forward e-mail link?

So I want to make a HTML news letter to be sent out. I want to make a "Forward to Friend" button, but how would I link that?
The short answer is that you can't. Email clients don't provide a way for emails to trigger their Forward functionality.
The closest you could come would be to provide a link to a form which asks people to give you email addresses belonging to third parties to which you could then send email. (If I was that third party, the email would be dropped directly in my spam bin, possibly after filling out the annoying form for reporting spammers that is available from the OIC)
The good news is that email clients have Forward functionality built in, so you don't need to reinvent the wheel.
The little trick I use is to leave the "mailto" part blank, and then in the the "body" section put in a link that points to an online archive of the html email I just sent them.
Like this:
mailto:?Subject=Subject%20From%20My%20Original%20Email&body=Link%20To%20Online%20Archive%20of%20Original%20Email:%20http://www.bing.com/
In outlook, link is automatically turned into a hyperlink AND their cursor defaults to the "To" field because it's the only thing left blank.
I did this as a quick work around until we code a landing page for them to fill out a form and enter their friends email address, etc. This way if anyone comes across a link to our archived email on our SITE, they'll have the handy link in it to auto-open their email for them and start a message to their friend(s).
I'd try to go with the server side script route.
With PHP, use the mail function and retrieve the TO:$person from a post variable that is sent.
You could link it like:
Click here to forward this email to a friend!
GraphicMail do it by adding a link into the footer of the email that takes you to a 'Forward to' webpage (http://www.graphicmail.com/site/forward_to_friend.aspx?SiteID=xxx&SID=x&Section=xxx&FromEmail=your-mail#domain.com&token=&EmailID=X) that allows you to forward the mail assuming that all the newsletters you send out have a unique ID.