简体   繁体   English

Outlook和Oracle 11g之间的连接

[英]Connection between outlook and Oracle 11g

I am sending an email to outlook using php with powershell at the backend. 我正在使用后端使用Powershell的php向Outlook发送电子邮件。 I want to fetch an approve or reject response from that mail and have to store that response in the database. 我想从该邮件中获取批准或拒绝的响应,并且必须将该响应存储在数据库中。 So, there will be two buttons, APPROVE REJECT in the mail sent to outlook,and when the user clicks on anyone of them, the respective decision must get stored in the database. 因此,将有两个按钮,发送到Outlook的邮件中的“批准拒绝”,并且当用户单击其中的任何一个时,相应的决定必须存储在数据库中。

Any idea about the technology that should be used for making all this happen? 关于应该使所有这些事情发生的技术的任何想法?

A possible solution is develop an Outlook add-in which can add buttons on the ribbon for mail items. 一种可能的解决方案是开发Outlook加载项,该加载项可以在功能区上添加用于邮件项目的按钮。 In the button click event handler you/users can save an Outlook item to the database. 您/用户可以在按钮click事件处理程序中将Outlook项目保存到数据库。 See Walkthrough: Creating Your First Application-Level Add-in for Outlook to get started quickly. 请快速入门:演练:为Outlook创建您的第一个应用程序级加载项

To customize the Ribbon UI VSTO provides two possible ways: 要自定义Ribbon UI,VSTO提供了两种可能的方法:

Step wise Solution to your problem: 逐步解决问题的方法:

  1. Create Email with info about your records: Place 2 buttons/links with unique_id of your db table #Replace localhost with your site name eg. 使用有关您的记录的信息创建电子邮件:将2个按钮/链接与数据库表的unique_id放置在一起#用您的站点名称替换localhost。 Approve link:http// localhost/response_of_email_reader.php?record_ID_status='11231232_approved'" Reject link:http// localhost/response_of_email_reader.php?record_ID_status='11231232_rejected'" 批准链接:http // localhost/response_of_email_reader.php?record_ID_status='11231232_approved'"拒绝链接:http // localhost/response_of_email_reader.php?record_ID_status='11231232_rejected'"

    If you dont want to reveal the record number, you can encrypt and then send. 如果您不想透露记录号,则可以加密然后发送。 Its decryption you should store in some other table in that case. 在这种情况下,您应该将其解密存储在其他表中。

2 Whenever a user will any button, "response_of_email_reader.php" will act as a listener in this. 2每当用户单击任何按钮时,“ response_of_email_reader.php”将充当该监听器。

It should contain something like this: 它应包含以下内容:

if(isset($GET['record_ID_status'])){
    $tmp=$GET['record_ID_status']
    $tmp=explode("_", $tmp);

    $record_id = $tmp[0;]
    $status = $tmp[1;]

    #RUN THE UPDATE QUERY ON DB
    Update mytable set status="$status" WHERE unique_record_column="$record_id"
}

I hope it helps you 希望对您有帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM