Android :How to implement the button action - email

Guys i created a button now this button is basically for email so when i click this button it should open the email app with the email address written so that whoever uses the app can just click on it and start typing his mail so please guys can you tell me how to implement this

All you need to do is to create a link with the anchor tag <a></a> and set its href attribute to "mailto:exampleemail#example.com" where you can give the email address of the authority you want that mail program to send the email.
For example if you want to send an email to the address "youremail#example.com" the code for the creating the button will be as follow:
<button>Email Us</button>
This will create a button with the text Email Us and will open the mail program with the address youremail#example.com as the to address on clicking.

Related

OCTOBERCMS Obfuscate an email address with html_email

i wanna obfuscate an email address to prevent spam-bots from sniffing it on my contact page.
I tried to use html_email function in href but the email address remained unchanged.
E-mail: My email
Anyone have any idea why the html_email function doesn't work.
Maybe another solution to obfuscate a email address in october?
It is working. If you look at the source file it is obfuscated. I believe bots sniff the source file. You are looking at the rendered html which displays the email correctly. Also if you use google chrome you can do ctrl-u to look at the source file. Firefox I just right click and click on view source and etc with more browsers.

mailto: valid address doesn't prompt mail app?

I'm trying to include a mailto link to a specific email address within the body copy of my HTML email.
For some reason, this particular email address does not register with my mailing app. My HTML here is:
here
and when I click the link, it opens a blank page and doesn't do anything.
https://imgur.com/VvecNiB
If I change the email address to be my own email address or feedack#(workplace).com or even misspelling the domain as feedback#(workplac).com, the mailing app registers this activity and I get a pop-up window. Any ideas why the particular email address, feedback#(workplace).com, doesn't work that way?
Thanks in advance for any advice or insight.
are you working on a BIF or RPL account in responsys? I normaly use the Clickthrough() function in responsys and place the link in the linktable.
HTML
Write to me
LINK TABLE
Name: mailtoMe
Url: mailto:feedback#(workplace).com

How to place a link to a view in the email template of odoo

In my custom room booking application, when user book a room a mail will send to the admin. In the mail template, there is an approve button. Once the admin clicks the approve button, it should redirect to the approval form view. How can I do that by placing a link in the email template?
The url you have to compose is of the following form:
http://odoo.server.com/web?db=#id=&view_type=form&model=
You can put in your template a text ${ctx['url']} and then render send template with template.with_context(url=url).send_mail(self.id). ${ctx['url']} will be replaced with url you passed along with context.

How to send attachment with email in an ms access form

I was wondering would it be possible to create some sort of ms access form, where you would be able to upload any file and then be able to enter an email in another field, click a button, and send an email with said attachment to the entered email. So far I have the form created with an attachment field and below that I have a button and an empty field where the user can input an email that they would like to send the attachment to. My initial idea was to hard code the button to pull the attachment and send it to the desired email address using the .SendObject() function but i didn't find parameter for an attachment that I could send using the function.
:
In the highlighted box is where users can add any number of attachments and in the box to the right of the send button is a text box that would allow users to put in an email address that they would like to send it to.
If there is a better way of doing this with forms please let me know, I'm always up for learning new things.
You can interface with the outlook objectmodel to create a mailitem, then .send the message and .attach a file, but the file has to be accessible to the filesystem. If the file were embedded in access, you would have to export it out, then attach it. This link and this link should give you a good idea of how this process works.
If you don't have outlook available, then you will either need software that has a VBA compatible API, or you can use a webservice to post the mail, but both of those options are far to massive to talk about here, unless you can provide more specifics.
Edit since your edit:
If you can use Outlook, and you can just store the path to the file() in the attachments field as an array, then you an loop over the array with mailitem.attach to attach multiple files

E-mail hyperlinks: reading href value

So when you click on an email hyperlink, it opens up a new mail message window in the default mail client (Outlook in my case). You can append Subject, Body, CC and BCC fields directly to the email hyperlink and your mail client will automatically populate those values in the corresponding boxes. An example hyperlink field would be:
Send Mail
So here we go. User clicks the hyperlink and a new inspector window is opened by Outlook. I'm listening to NewInspector event in my Outlook add-in. Can I somehow get the full href of the link that was clicked to bring up this inspector window?
The reason I want this is that I'm appending some custom fields to the hyperlink, which obviously are not understood by Outlook. Can I get the entire href value through some direct property, or COM?
No, the Outlook object model (nor the mailto: protocol) doesn't provide anything for that. Instead, you can automate Outlook to fill the required values programmatically. For example, if Outlook is already running you can use the following code:
// If so, use the GetActiveObject method to obtain the process and cast it to an Application object.
application = Marshal.GetActiveObject("Outlook.Application") as Outlook.Application;
Read more about that in the How to: Get and Log On to an Instance of Outlook article. Also you may find the C# app automates Outlook (CSAutomateOutlook) sample project helpful.