如何在字符串后面嵌入超链接 [英] How to embed a hyperlink behind a string

查看:65
本文介绍了如何在字符串后面嵌入超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我是perl的新手。我正在写一个perl脚本来阅读一个文本文件,通过电子邮件发送给合同经理,警告他们有一些高风险的合同等着他们查看。

文本文件包括Email_address。 ,Manager_Name,url_link等。

结果格式是电子邮件正文中的合同编号列表。例如


合同号

020221021

970040006


我想要知道如何在perl中编码以给出每个契约否的超链接。上面列出的,以便用户只需单击它并直接拍摄它们即可查看实际的合同图像。


目前我可以使用下面的电子邮件正文:


合同号

020221021 http: //filenet/idmws/DocView.asp?id=74656190&Library=DefaultIMS:UNION_M P:FileNet

970040006 http://filenet/idmws/DocView.asp?id = 66304113& ; Library = DefaultIMS:UNION_M P:FileNet


有人可以告诉我如何在合同号后面嵌入http链接。而不是明确显示,所以我只需点击合同号即可。超链接和查看实际合同图像?


我们将非常感谢任何帮助... !!!

Gina

Hi,

I''m new with perl. I''m writting a perl script to read a text file to email the contract managers to warn them there are some contracts with High risks waiting for them to view.
The text file includes "Email_address", "Manager_Name","url_link",etc.
The result format is a list of contract numbers in the email body. e.g.

CONTRACT NO
020221021
970040006

I''d like to know how to code in perl to give a hyperlink to each of the "Contract No" listed above so that the user can just click on it and take them directly to view the actual contract image.

Currently I can get it work with email body looks like below:

CONTRACT NO
020221021 http://filenet/idmws/DocView.asp?id=74656190&Library=DefaultIMS:UNION_M P:FileNet

970040006 http://filenet/idmws/DocView.asp?id=66304113&Library=DefaultIMS:UNION_M P:FileNet

Could someone show me how to embed the http link behind the "Contract No" instead of being explicitly displayed, so that I can just click on the "Contract No" hyperlink and view the actual contract image?

Any help would be greatly appreciated...!!!


Gina

推荐答案

欢迎来到TSDN ginahong !!


为了将它作为html发送,你必须有正确的标题。您使用什么方法/模块发送电子邮件?另外,请发布您尝试过的内容,以便我们提供帮助。


- 凯文
Welcome to TSDN ginahong!!

In order for it be sent as html you have to have the proper headers. What method / module are you using to send the email? Also, please post what you have tried so we can help.

--Kevin


嗨凯文,


感谢您的及时回复!以下是我尝试过的源代码:

Hi Kevin,

Thank you for your prompt reply! Below is the source code that I have tried:

展开 | 选择 | Wrap | 行号


添加:
展开 < span class =codeDivider> | 选择 | Wrap | 行号


这篇关于如何在字符串后面嵌入超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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