触发另一邮件正文邮件上的链接点击 [英] Trigger a mail from another mail body on clicking link
问题描述
第一步 1 :我有像点击我的应用程序的按钮的要求,邮件应该会触发相应的人要名单
第一步 2 :这邮件项目应包含一个环节点击这里批准。
第一步 3 :在点击该链接,另一邮件项目应该打开:xxx@xxx.com ,CC:yyy@yyy.com,主题等等...
我与步骤1和步骤2,但做了怎么办第3步
请注意:这是一个C#应用程序
我用下面的C#代码
$ b。 $ b
身体=你好,
体+ =%0D的新政 - + CLIENTNAME +,已分配给您%0D%0D
体+ =预期签署日期:+ SignDate +%0D
体+ =预期的资金日期:+ FundingDate +%0D%0D
体+ =请,点击下面的链接查看详情%0D%0D
体+ = +的PathName%0D
体+ =< A HREF =至mailto:xxx.xxx@ge.com ?主题=主题&安培;机身=车身和gt;点击这里给我邮件< / A>中
体= Body.Replace(&放大器;放大器;,)
体= Body.Replace(#,)
sMsg的= User.Redirect (:主题=电子邮件地址+ CC + +主题+&放大器;身体=+身体)
重定向功能:
公共功能重定向(BYVAL页面名称作为字符串)作为字符串
昏暗某人作为新的StringBuilder()
sb.Append(window.location.href ='+页面名称+';)
返回sb.ToString()
最终功能
如果我使用Outlook的dll如何打开该邮件项目。
例如:Mailitem.Send()将发送邮件。但我需要打开邮件项目。
观。应用程序=新Outlook.Application();
Outlook._MailItem mailItm =(Outlook._MailItem)app.CreateItem(Outlook.OlItemType.olMailItem);
mailItm.To =xxx@xxx.com;
mailItm.Cc =yyy@yyy.com;
mailItm.Subject =一些主题;
//身体,BCC等...
mailItm.Display(真);
如果你点击一个链接,带馅的(收件人,主题,抄送发送电子邮件等,的),而不使用asp.net,你可以不喜欢使用的邮寄地址:
< A HREF =邮寄地址:xxx@xxx.com主题=一些%20Subject&放大器; Cc=yyy@yyy.com>
点击这里发送邮件
< / A>
Step 1: I have a requirement like On clicking a button in my Application, Mail should be triggered to respective person in To list.
Step 2: That Mail item should contain one link like "Click here to approve".
Step 3: On clicking that link, Another Mail item should open with To: xxx@xxx.com, CC:yyy@yyy.com, subject etc...
I am done with Step 1 and Step 2. But how to do Step 3.
Note : It is an C# application.
I am using below C# code
Body = "Hi, "
Body += "%0D The Deal - " + ClientName + ", has been Assigned to you %0D%0D"
Body += "Expected Signature Date : " + SignDate + " %0D"
Body += "Expected Funding Date : " + FundingDate + " %0D%0D"
Body += "Please, click the below link to view the details. %0D%0D"
Body += PathName + "%0D"
Body += "<a href=mailto: xxx.xxx@ge.com?Subject=Subject&body=Body> Click here to send mail</a>"
Body = Body.Replace("&", " ")
Body = Body.Replace("#", "")
sMsg = User.Redirect("mailto:" + cc + "?Subject=" + Subject + "&body=" + Body)
Redirect Function:
Public Function Redirect(ByVal PageName As String) As String
Dim sb As New StringBuilder()
sb.Append("window.location.href='" + PageName + "'; ")
Return sb.ToString()
End Function
If i use the Outlook dll How to open the Mail item.
Eg: Mailitem.Send() will send the mail. But i need to open the mail item.
Outlook.Application app = new Outlook.Application ();
Outlook._MailItem mailItm = ( Outlook._MailItem)app.CreateItem ( Outlook.OlItemType.olMailItem );
mailItm.To = "xxx@xxx.com";
mailItm.Cc = "yyy@yyy.com";
mailItm.Subject = "Some Subject";
// body, bcc etc...
mailItm.Display ( true );
If you are clicking on a link to send email with filling (To, Subject, Cc, etc.,) without using asp.net, you can do something like following using mailto:
<a href="mailto:xxx@xxx.com?Subject=Some%20Subject&Cc=yyy@yyy.com>
Click here to send mail
</a>
这篇关于触发另一邮件正文邮件上的链接点击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!