Citrix - PB - 电子邮件

发布于 2024-12-24 16:58:13 字数 412 浏览 1 评论 0原文

我们以两种方式使用 PB 应用程序,一种是通过 Citrix 服务器访问,另一种是独立的。

我通过 Citrix XenApp 使用 PB 11.5 开发的应用程序 - 应用程序 - 在此 PB 应用程序中,我们使用的功能是向客户发送电子邮件通知,而无需打开撰写电子邮件。但它指的是 Outlook 配置文件“Outlook”或“默认 Outlook 配置文件”。有时它不起作用,有时它起作用。对于某些用户来说,至少有一次无法从 Citrix 发送电子邮件。因此,我检查了以下 //ctxrprof/userid/Application Data/Microsoft/Outlook 中的特定用户配置文件设置。

注意:独立应用程序中没有问题,电子邮件通知可以正确发送给客户。

我是此 Citrix 环境的新手,请有人帮助我解决此问题。

谢谢!!!

We are using PB application in two way one is access via Citrix server and another one is standalone.

A PB 11.5 developed application, I am using via Citrix XenApp - Applications - In this PB application we are using functionality, which sends email notifications to our customers without opening compose email. But it refers the outlook profile "Outlook" or "Default Outlook Profile". Sometimes it is not working and sometime it is working. For some of the users couldn't able to email atleast a time from citrix. So I checked particular users profile settings in following //ctxrprof/userid/Application Data/Microsoft/Outlook.

Note: No issues in standalone application, Email notifications are properly sending to customers.

I am new to this Citrix Environment, Please can someone help me to fix this issue.

Thanks!!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

百合的盛世恋 2024-12-31 16:58:13

如果您碰巧使用 Oracle,那么当您使用 Citrix 时,通过 Oracle 发送邮件会容易得多。邮件设置是通过oracle中的utl_smtp包在服务器上进行的。

CREATE OR REPLACE PROCEDURE mail
(
  sender      IN VARCHAR2,
  recipient   IN VARCHAR2,
  ccrecipient IN VARCHAR2,
  subject     IN VARCHAR2,
  message     IN VARCHAR2
 )  IS

 connection utl_smtp.connection;
 mailhost VARCHAR2(30) := 'displacedguy.com';
 header VARCHAR2(1000);

BEGIN

  -- Start the connection.

  connection := utl_smtp.open_connection(mailhost,25);

  header:= 'Date: '||TO_CHAR(SYSDATE,'dd Mon yy hh24:mi:ss')||UTL_TCP.CRLF||
     'From: '||sender||''||UTL_TCP.CRLF||
  'Subject: '||subject||UTL_TCP.CRLF||
       'To: '||recipient||UTL_TCP.CRLF||
       'CC: '||ccrecipient;

  -- Handshake with the SMTP server

  utl_smtp.helo(connection, mailhost);
  utl_smtp.mail(connection, sender);
  utl_smtp.rcpt(connection, recipient);
  utl_smtp.rcpt(connection, ccrecipient);
  utl_smtp.open_data(connection);

  -- Write the header

  utl_smtp.write_data(connection, header);

  utl_smtp.write_data(connection, UTL_TCP.CRLF ||message);
  utl_smtp.close_data(connection);
  utl_smtp.quit(connection);

EXCEPTION
  WHEN UTL_SMTP.INVALID_OPERATION THEN
    dbms_output.put_line(' Invalid Operation(s) in SMTP transaction.');
  WHEN UTL_SMTP.TRANSIENT_ERROR THEN
    dbms_output.put_line(' Problems sending email try again later.');
  WHEN UTL_SMTP.PERMANENT_ERROR THEN
    dbms_output.put_line(' Error(s) in SMTP transaction.');   
END;

要在 PowerBuilder 中使用,请创建一个通用事务对象(如果您还没有),并为 utl_smtp 包添加 RPCFUNC 定义,并为其指定一个别名友好名称。定义后,您可以使用 sqlca.sendmail(a, b, c, d); 调用包函数;您可以像调用函数一样调用它。

对于那些使用 Oracle 的人来说,这并不是一个真正的答案,而是一个解决方法。认为值得一提。

If you happen to be using Oracle, sending mail via Oracle is so much easier when you are using Citrix. The mail settings are made on the server via the utl_smtp package in oracle.

CREATE OR REPLACE PROCEDURE mail
(
  sender      IN VARCHAR2,
  recipient   IN VARCHAR2,
  ccrecipient IN VARCHAR2,
  subject     IN VARCHAR2,
  message     IN VARCHAR2
 )  IS

 connection utl_smtp.connection;
 mailhost VARCHAR2(30) := 'displacedguy.com';
 header VARCHAR2(1000);

BEGIN

  -- Start the connection.

  connection := utl_smtp.open_connection(mailhost,25);

  header:= 'Date: '||TO_CHAR(SYSDATE,'dd Mon yy hh24:mi:ss')||UTL_TCP.CRLF||
     'From: '||sender||''||UTL_TCP.CRLF||
  'Subject: '||subject||UTL_TCP.CRLF||
       'To: '||recipient||UTL_TCP.CRLF||
       'CC: '||ccrecipient;

  -- Handshake with the SMTP server

  utl_smtp.helo(connection, mailhost);
  utl_smtp.mail(connection, sender);
  utl_smtp.rcpt(connection, recipient);
  utl_smtp.rcpt(connection, ccrecipient);
  utl_smtp.open_data(connection);

  -- Write the header

  utl_smtp.write_data(connection, header);

  utl_smtp.write_data(connection, UTL_TCP.CRLF ||message);
  utl_smtp.close_data(connection);
  utl_smtp.quit(connection);

EXCEPTION
  WHEN UTL_SMTP.INVALID_OPERATION THEN
    dbms_output.put_line(' Invalid Operation(s) in SMTP transaction.');
  WHEN UTL_SMTP.TRANSIENT_ERROR THEN
    dbms_output.put_line(' Problems sending email try again later.');
  WHEN UTL_SMTP.PERMANENT_ERROR THEN
    dbms_output.put_line(' Error(s) in SMTP transaction.');   
END;

To use in PowerBuilder create a generic transaction object if you don't have one already and add RPCFUNC definition for your utl_smtp package and give it an alias friendly name. Once defined you can call the package function by using sqlca.sendmail(a, b, c, d); You can call it like a function.

This isn't really an answer but a workaround for those using Oracle. Thought it was worth mentioning.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文