I want to open mail window with pre filled html in body and subject.
Note: user need to enter to: email only, body should be filled by me from code side and body should fill with html.
Above image is screen shot which I need.
I need image as shown as above in html body on clicking button.
you can embed the html tag in string like this
string textBody="Hi
<strong>"+UserName+"</strong>
<br />"+Addrss +" is you addrsss you can find current addrss
<table>
<tr><td>Any other contant</td></tr>
</table>";
Is that what you want or something else. can you show what output you want so I can help
Related
I have a button when click it open email with text in the body and also in the body I have contact us when click it open the email of the coach
input type="button"; value="Click me"; onclick="window.location.herf='mailto:me#any.com?subject=Request%20invite&body=Hallo%20you' + ' http://www.google.com' + 'HIIIIII' + 'window.open('mailto:address#dmail.com')'";>
To add the contactus text and a link to open an email to a coach in the body of a mailto link, you can use the following code:
input type="button";
value="Click me";
onclick="window.location.herf='mailto:me#any.com?subject=Request%20invite&body=Hallo%20you%0D%0A%0D%0AContactus:%20http://www.google.com%0D%0A%0D%0AHIIIIII%0D%0A%0D%0AFor%20questions%20or%20concerns,%20please%20contact%20our%20coach%20at:%20mailto:address#dmail.com'";>
In the code above, I added the contactus text and a link to http://www.google.com after the Hallo you text in the body of the email. I also added a line break (%0D%0A) after each line of text to make the email more readable.
Additionally, I added a line of text at the end of the email body that says "For questions or concerns, please contact our coach at: mailto:address#dmail.com". This will create a clickable link in the email that will open a new email to the coach when clicked.
I selected text and made that text link using "ep_embedded_hyperlinks2". Now I want to get all content that is in pad. Trying with /pads/getHTML api.
This returns all text but no link/url which I made. Is there any way I can get that link/anchor along with all content from etherpad.
https://i.stack.imgur.com/ZapWn.png
Thanks in advance
In my current project, we are sending some user chosen services to the mail address provided in input.
We are using a HTML file to format the services and copying this html template to 'mail.Body' before sending the email.
The emails are sent using Sendgrid
When recieving this in gmail ,only for some clients (Set-A) ,even for short email '[Message clipped] View entire message' is shown at the bottom of the email.
We use similar html template to send it for different clients(Set -B), but '[Message clipped] View entire message' is NOT DISPLAYED in this mail ,even when the email is longer.
Tried minified HTML template , but still 'View entire message' is shown at bottom of gmail for only Set-A clients.
The HTML file size before copying to mail body for Set-A (40.11KB) is smaller than that of Set-B (49.09KB).
So I am assuming size is not the problem for this
I compared both the HMTL templates, no difference in styles or other HTML tags. Just the text content is different.
Kindly advise how to avoid this 'View Entire message' option being displayed.
For me it had to do with the character set of the email body. Email body "Hej på dig!" and "Content-Type: text/plain; charset=UTF-8" would reproduce the bug.
You need to make sure that the email body is indeed encoded as declared (check using "show original"). After converting the body from ISO-8859-1 to UTF-8 the problem went away.
How can I show an html anchor tag in
Office.context.mailbox.item.notificationMessages.addAsync method for "error" key? I have a scenario where user should be able to click on a link from this error message and navigate to a different page.
I tried embedding elements as it's display the 'Dismiss' hyperlink right next to these error message by default. However, this displays these tags as it is.
Please help.
Unfortunately, this capability is not supported for notification messages. They cannot display HTML content and will not honor anchor tags.
I am using this syntax in ejs engine to send a clickable link to the email but it's not working. href attribute is not showing anything. But the anchor tag has the value like this
Please tell me if I am doing something wrong.
Thanks in advance.
<%=link%>
localhost:3000/resetpassword/MEbiDw8CznhS8vwZ8pMK6EaQ4OhDujilPeFlOv6j9BGFKwPQBruJTCEKLgDzDMG3
The above should be a clickable link but it's not.