Outlook Macro to add signature to email body - html

I am facing this problem, suppose i have a html anchor like this
Send Email
if you open the link above using outlook the body overrides the signature in outlook.
my question is, can outlook macros append the signature after the message body? and if so, is there vba code sample to achieve this?

No, you will need to use Outlook Object Model for that - display the message first (signature will be added at that point), then add your own body.

Related

How to send a linked image by email

I would like to send a linked (not embedded) image by email.
[i.e: http://www.konbini.com/wp-content/blogs.dir/3/files/2018/03/a9a08770bba415c3b9a14cb162.jpg]
Do you know what kind of html code have to write in the email?
I want to place the code within the body of the email.
I tried this but it's not working:
<img src="https://www.konbini.com/wp-content/blogs.dir/3/files/2018/03/a9a08770bba415c3b9a14cb162.jpg">
I am using Outlook or Gmail also.
Thank you !
M
Yes, if the email is coded in HTML, you can use the following code:
https://www.konbini.com/wp-content/blogs.dir/3/files/2018/03/a9a08770bba415c3b9a14cb162.jpg
In emails there's also a abbreviation. <https://www.konbini.com/wp-content/blogs.dir/3/files/2018/03/a9a08770bba415c3b9a14cb162.jpg>
You can enter these codes if the format is HTML.
Also, this is the exact same thing as insering an hyperlink to a webpage.
Thank you for all your help! I actually found the solution. In the parameters of the mailR package, I was using the following
html=TRUE, inline=TRUE
but it should be html=TRUE, inline=FALSE if the image is from an url.

Sending HTML e-mail with Lotusscript agent

How to send a e-mail with html content and inline images using lotusscript agent?
GMail removes the inline images to file attachments.
IS it possible to prevent this?
Modification as requested in comments:
I have created a document to be used as mail template. This can be a normal memo in your mail file. In the body I added an image, like company logo, and some text. This memo is sent with lotusscript insted of manual sending button.
The lotusscript agent first remove the body and copy its content to a temporary rtitem. The text is replaced with merge field values. Then a new rich text item is created with the replaced text. The result of the text processing is a removed inline image in gmail.
Hope this information is enough, and this is the reason I think the code is not interesting here.
"MIME HTML inline"
look here http://www-10.lotus.com/ldd/nd6forum.nsf/0/c570f4a6e09a0d7585257333005217e9?OpenDocument
on gmail works.
all best

mailto link doesn't add Outlook signature in letter

I (and some folks) need to send a lot of similar e-mail's everyday. Using Outlook 2010 as mail client. Today I want to somehow simplify this process.
Thinking about html page with mailto links. Like:
Letter to someone
Letter to someone else
etc...
Problem is come out when I clicked on one of them. Outlooks "New message" window pops up, but without signature. It's only text from mailto link in body.
Can someone point out what I did wrong?
I'm trying to figure this out as well.
According to http://www.experts-exchange.com/Software/Office_Productivity/Groupware/Outlook/Q_26410679.html you get either the body or the signature. I've tested this and removing my body text brought my signature back.
Alternatively, you can hardcode your signature into the body text.
Microsoft is not going to fix this bug. The workaround is to add it in the email body.
I believe the following MSDN article explains what you're describing: Messages that are created outside Outlook do not include the default Outlook email signature (KB 2544665)
Pretty sure you cannot customise a signature from the mailto: link.
The 2 ways to look at it is either setup your signatures in Outlook itself or, add the "signautre" to the bottom of the body included in the link?

HTML img code src, saving and sending an E-mail or HTML form

So let's say that there is a HTML (or XHTML) code and
<img alt="...." src=".......aspx" />:
So, aspx generates image file, and there will be some image shown.
Now I want to send the generated image file to E-mail or using HTML form code, and I want my html code to do this automatically.
So, in the html code, after img code, I'd like to add codes that send the generated image automatically.
(I want a single code with img code and E-mail or HTML form code.)
What should I do?
To be honest, based on your question, it's not entirely clear what you're trying to accomplish. But, from what I gather, you could try several different approaches:
Check out this StackOverflow post: Sending an email with an image embedded in the body from C#
You can use the code from this source as a starting point: http://www.codedigest.com/Articles/ASPNET/95_Sending_Email_using_C__and_ASPNet_20.aspx (see "Sending Email with Embedded Image in the Message Body" section)
What you need to do is move the image generation logic to some library or the App_Code folder, and then call that logic twice: once from the .aspx handler that sends it for the tag, and once for the code that you also need to write that will send it in the email. Once you have the byte[] array with the image, follow lkaradashkov's link to send it in the email:
Sending an email with an image embedded in the body from C#

html newsletter email arriving as an attachment

I'm using C# to send email newsletters for subscribers.
There's no problem with sending the email but some email clients like outlook and hotmail receive html newsletter as an attachment and the email body contains only plaintext with html tags removed and some clients like gmail receive the email just fine.
What actually creates this behavior? If i put just few html tags in to message outlook and hotmail shows the newsletter fine but as i put in more html elements my mail arrives as attachment.
I've been trying to find out how to make my email appear ok in most popular email clients like outlook but have had no success so far. Anyone care to enlighten me how this email + html stuff actually works?
Have a look at the Mailchimp and CampaignMonitor links in this answer, which may help you.
Since you don't provide any information about how you're using C# to send this email, we can only speculate about what you're doing and what the problem might be. It sounds like you might be using MailMessage.AlternateViews to send your HTML, but only have that one view. If you're not intending to send out a multipart/alternative message then you should simply set the MailMessage.Body to your HTML content with MailMessage.IsBodyHtml = true.
That being said: I make the assumptions I do because some email clients are smarter than others, and if the content-type header doesn't make sense they'll do their best to try to figure out what the nicest way to display the content is, each potentially trying something different. If, however, my assumptions are incorrect it would greatly help to know the code you're using to generate the email, and even an example of the message headers.