Hyperlink doesn't display in an Outlook 2016 with HTML - html

I have a macro with Excel VBA that sends an Outlook 2016 email. Several columns in the data source are used to fill several variables. One of the variables (MyWedAdd) is a web site. The website is different for each line in the data source.
In the body of the email, I need to display the hyperlink to the particular website. The macro works well and sends the Outlook messages exactly like I expect it to; with one little glitch.
The website is not being displayed in the body of the email. It is blank. Following is the line of code I'm using to display the website. I'm fairly certain I have the syntax messed up or the hyperlink to the web site would be displayed
"You may pay online at <a href=" & MyWebAdd & "</a> . Check or money order payments can also be used."
I haven't used HTML very much so this is part of the learning curve for me. Any suggestions or advice to make this work would be greatly appreciated. Thanks for your help. Stay safe....Shaves

You have the syntax wrong. It must be
"You may pay online at " & MyWebAdd & " . Check or money order payments can also be used."

Related

Embedding image in and attaching files to email sent through Excel VBA

I'm writing a piece of code to populate a spreadsheet, then email it out to a bunch of people with the spreadsheet as an attachment, along with an explanatory PDF and an HTML covering letter (featuring the company logo) in the email body.
Now, I've sent emails with Excel VBA code before, and I've formatted their layout with HTML in the .HTMLBody. But the other bits are causing me some bother.
The attachments I think I can figure out; I assume I can just use multiple .Attachments.Add with the various files, haven't tried that.
The main question is the company logo in the email body. I'm fairly well up on HTML, but I can't figure out how to actually embed a picture when I don't have a src for it.
Googling has produced a few approaches, but they've been cid-based and have had comments about only working if the reader uses Outlook.
Any suggestions? Is there a nice simple solution?
try the below code,
for attaching the image to your mail(add this under create mail object),
.Attachments.Add ThisWorkbook.Path & "\image.png"
add this into your mail body (assuming you are using table)
"<td Colspan=2><img src='cid:image.png' height=205 width=1015></td>"

Put HTML into Outlook email for campaign

I'm trying to send an HTML email campaign like MailChimp or Constant Contact but I cannot figure out how. I have an index.html I made on a website called InkBrush.com but I can't figure out how to send it as an email. Anyone have any advice?
If it's just a few emails you want to sent with a email client manually try opening up the HTML file you have and press "CTRL + A " Then "CTRL + C" which will copy all the content to the clipboard. Then go to the email client and press "CTRL + P", this often will allow you to paste the html content into the email. However, it might not look picture perfect because Email clients don't support the whole range of W3C complaint XHTML.
You can also check out more in this tutorial
You have different available options and depending on your knowledge level you can choose between them.
I recommend you to use macros, anyway, remember that there are limitations and maybe, you can't send the same html that you wrote.
Here you have an explanation with the different methods:
https://www.outlook-apps.com/insert-html-to-outlook-emails/

Use a Visio PageName as an Email Subject

I hate to do this, but I have the same question as the following link: Visio 2010 using a page name in mailto link
I have attempted to use the answer given but all I'm getting is PAGENAME() in the subject field of the generated email. My Visio file is rendered to a html file where this link will be used.
I'd have added a comment to avoid creating a new question but don't have enough Rep to follow up on the comments there.
If anyone can give me a pointer, that'd be great. The line I have at the moment is
>
mailto:my.email#email.com&Subject=PAGENAME()&Body=Text...
Okay, looks like I've worked this one out.
I needed to right click the object & head in to the "Show ShapeSheets" window.
Once in here, adjust the 'Hyperlinks' entry: In the 'ExtraInfo' box change:
="subject=PAGENAME()"
to
="subject="&PAGENAME()
Logical when you look at it.
I do have the problem now that when Visio renders the html files, it doesn't use the foreground PAGENAME() in the same way was when you insert PAGENAME() into an object. The email title is always the background name & not the foreground.
I doubt there'll be a way of resolving that one, but glad I got to see it in action.

Email: text preview on mobile client and browser

guys
I'm trying to create e good html code for my newsletter. I've checked a lot of best practice but I cannot find the right tips for me.
You know: email client on mobile show the first two or three lines in the code... and due the first line is always "If you can't read this email, please click on..." etc.
I'd like to know is there's a tag or a way to choose another text to show up on the email preview when received by my customers. (of course, without changing the first line referring to the web version of the email)
Thanks a lot!
This is called a preheader. You would simply put that content before your 'webversion' link in your html email.
Here are some related articles:
Campaign Monitor: A practical guide to preheaders
Better preheaders? Six ideas to consider...

Html form in email

I have created an html form with text boxes and radio buttons ect.
I can email the form to an email address.
now the problem, when i fill in the form and click reply, i only get my blank html form back no values were left inside the textbox's.
Please help
We did some fairly extensive research about HTML forms in emails for a client of ours. The bottom line is that it barely works, so it’s best to link to a form in a browser.
What Quentin said holds water, many email clients (cough, outlook) are very specific in regards to their support for HTML emails. In fact most don't even support div's or embedded <style> blocks. Let alone an HTML form.
Your best bet is to use a URL that they click on, which in-turn opens up a form for them to fill out. If you need to capture some of their information automatically (such as email). you can generate query strings and in your mailer have it add the information in dynamicallly..
i.e; <a href="http://awesomeform.com/form.php?email=$client_email">
In email it would look like: http://awesomeform.com/form.php?email=myemail#email.com
Either way
If you are insistent on attempting this, use the email boilerplate to get you started. It has a ton of "best practices" and tips/tricks built right into it.
http://htmlemailboilerplate.com/
Complex HTML doesn't mix with many email clients. Forms are especially poorly supported.
Link to an HTML document available over HTTP instead. People can click a link and open it in a regular web browser.