在CDOSYS消息中嵌入图像 [英] Embed image in CDOSYS message

查看:64
本文介绍了在CDOSYS消息中嵌入图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在CDOSYS生成的

消息中嵌入图像,如公司徽标?

如果是,我会给出一些代码样本。我能用我喜欢的方式用html格式化消息

,但我不知道如何嵌入图像。

感谢你的时间。


-

Manuel

解决方案

因为你知道怎么做嵌入HTML,只需使用img标签

connName.HTMLBody ="< img src ="" URL TO IMAGE""高度= QUOT;" XX"" width ="" XX"">


将connName更改为ur连接名称。

将URL to IMAGE更改为ur图像的链接你想嵌入。


根据需要改变高度和宽度。如果你不打算使用这些

属性,那么只需将它们删除。

请注意我在值的每一侧都使用了2套quoation标记。


" URL to IMAGE"


会给你一个错误,并且不会发送你的消息。

" URL to IMAGE"

是正确的格式。

希望这有帮助

Jay




" Manuel" < Ma **** @ discussion.microsoft.com写信息

新闻:2C ************************ ********** @ microsof t.com ...


是否可以在CDOSYS中嵌入图像,如公司徽标<生成


消息?

如果是,我会提供一些代码示例。我已经能够以我喜欢的方式格式化消息

,但我无法弄清楚如何嵌入图像。

感谢您的时间。


-

Manuel



感谢您的帮助詹姆士。我想我们在那里是almos。现在发生了什么

是发送给我的消息和我自己的消息,来自Outlook

,保护要求右键单击图像到看见。但是,当我这么做时,没有任何反应,右键点击查看图像的选项

就会消失。任何想法。

感谢一百万

-

Manuel

James Jones写道:


因为你知道如何嵌入HTML,只需使用img标签


connName.HTMLBody =" ;< img src ="" URL TO IMAGE""高度= QUOT;" XX"" width ="" XX"">


将connName更改为ur连接名称。

将URL to IMAGE更改为ur图像的链接你想嵌入。


根据需要改变高度和宽度。如果你不打算使用这些

属性,那么只需将它们删除。


请注意我在值的每一边都使用了2组quoation标记。


" URL to IMAGE"


会给你一个错误,并且不会发送你的消息。


"" URL TO IMAGE""


是正确的格式。


希望这有助于

Jay



" Manuel" < Ma **** @ discussion.microsoft.com写信息

新闻:2C ************************ ********** @ microsof t.com ...


是否可以在CDOSYS中嵌入图像,如公司徽标

生成

消息?

如果是,我会给出一些代码样本。我能用我喜欢的方式用html格式化消息

,但我不知道如何嵌入图像。

感谢你的时间。


-

Manuel




mayb图片网址不正确...


验证每条路径到处都是正确的.......确保你可以在
中查看图片
展望。



" Manuel" < Ma **** @ discussion.microsoft.com写信息

新闻:5C ************************ ********** @ microsof t.com ...


感谢您的帮助詹姆斯。我想我们在那里是almos。发生了什么

现在

是发送的消息和我自己的消息,来自

outlook 要求右键单击图像才能看到它。但是当我这么做时,没有任何反应,右键点击查看图片的选项

就会消失。任何想法。

感谢一百万

-

Manuel


" James Jones"写道:


>因为你知道如何嵌入HTML,只需使用img标签

connName.HTMLBody ="< ; img src ="" URL TO IMAGE"" height ="" XX""
width ="" XX"">

将connName更改为ur连接名称。
将URL更改为IMAGE想要嵌入你想要的图像的链接。

根据需要改变高度和宽度。如果你不会弄乱这些
属性,那么就把它们删除。

请注意我在价值的每一面都使用了两套quoation标记。
URL to IMAGE

会给你一个错误,并且不会发送你的消息。

"" URL TO IMAGE""

是正确的格式。

希望这有帮助
Jay



Manuel < Ma **** @ discussion.microsoft.com写信息
新闻:2C **************************** ****** @ microso ft.com ...


是否可以在CDOSYS中嵌入图像,如公司徽标

生成

消息?

如果是,我会提供一些代码示例。我已经能够按照我喜欢的方式格式化

消息

,但我无法弄清楚如何嵌入图像。

感谢您的时间。


-

Manuel





Is it possible to embed an image, like a company logo in a CDOSYS generated
message?
If yes, I?′ll apreciate some code sample. I?′ve been able to format messages
in html the way I like, but I can''t figure out how to embed an image.
Thanks for your time.

--
Manuel

解决方案

well since u kno how to embed HTML, just use the the img tag
connName.HTMLBody = "<img src=""URL TO IMAGE"" height=""XX"" width=""XX"">

change the connName to ur connection name.
change URL TO IMAGE to the link to ur images u wanna embed.

change height and width as needed. if ur not gonna mess with these
attributes, then just remove them.
note that i have used 2 sets of quoation marks on each side of the value.

"URL TO IMAGE"

will throw you an error, and will not send ur message.
""URL TO IMAGE""
is the correct format.
Hope this helps
Jay



"Manuel" <Ma****@discussions.microsoft.comwrote in message
news:2C**********************************@microsof t.com...

Is it possible to embed an image, like a company logo in a CDOSYS
generated
message?
If yes, I′ll apreciate some code sample. I′ve been able to format messages
in html the way I like, but I can''t figure out how to embed an image.
Thanks for your time.

--
Manuel



Thanks for your help James. I think we''re almos there. What''s happening now
is that the message that is sent and I Cc it to myself, comes up in outlook
with that protection asking to right click the image to see it. But when I do
that, nothing happens and the option of the right click to see the image
disappears. Any ideas.
Thanks a million
--
Manuel
"James Jones" wrote:

well since u kno how to embed HTML, just use the the img tag
connName.HTMLBody = "<img src=""URL TO IMAGE"" height=""XX"" width=""XX"">

change the connName to ur connection name.
change URL TO IMAGE to the link to ur images u wanna embed.

change height and width as needed. if ur not gonna mess with these
attributes, then just remove them.
note that i have used 2 sets of quoation marks on each side of the value.

"URL TO IMAGE"

will throw you an error, and will not send ur message.
""URL TO IMAGE""
is the correct format.
Hope this helps
Jay



"Manuel" <Ma****@discussions.microsoft.comwrote in message
news:2C**********************************@microsof t.com...

Is it possible to embed an image, like a company logo in a CDOSYS
generated
message?
If yes, I?′ll apreciate some code sample. I?′ve been able to format messages
in html the way I like, but I can''t figure out how to embed an image.
Thanks for your time.

--
Manuel




mayb the image URL is incorrect...

verify every path is correct everywhere.......make sure u can view images in
outlook as well.


"Manuel" <Ma****@discussions.microsoft.comwrote in message
news:5C**********************************@microsof t.com...

Thanks for your help James. I think we''re almos there. What''s happening
now
is that the message that is sent and I Cc it to myself, comes up in
outlook
with that protection asking to right click the image to see it. But when I
do
that, nothing happens and the option of the right click to see the image
disappears. Any ideas.
Thanks a million
--
Manuel
"James Jones" wrote:

>well since u kno how to embed HTML, just use the the img tag
connName.HTMLBody = "<img src=""URL TO IMAGE"" height=""XX""
width=""XX"">

change the connName to ur connection name.
change URL TO IMAGE to the link to ur images u wanna embed.

change height and width as needed. if ur not gonna mess with these
attributes, then just remove them.
note that i have used 2 sets of quoation marks on each side of the value.

"URL TO IMAGE"

will throw you an error, and will not send ur message.
""URL TO IMAGE""
is the correct format.
Hope this helps
Jay



"Manuel" <Ma****@discussions.microsoft.comwrote in message
news:2C**********************************@microso ft.com...

Is it possible to embed an image, like a company logo in a CDOSYS
generated
message?
If yes, I′ll apreciate some code sample. I′ve been able to format
messages
in html the way I like, but I can''t figure out how to embed an image.
Thanks for your time.

--
Manuel





这篇关于在CDOSYS消息中嵌入图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆