0

レコード数が0のときにハイペリオンサーバーからメールを送信しようとしています.onPostProcess()にスクリプトコードを書いています.

var dtm_current = new Date();
Application.ExecuteBScript("Set BrioQuery, Mail, 'Internet Mail', mailserverwithoutquotes,fromid'"); //note that mailserver name is given without quotes and 
//from id does nt have starting quote
Application.ExecuteBScript("Export Section Root.'Results', OfficeMHTML, 'job_output', Silent, email, 'Testing Email action', 'This is a test of the email action. \n\n\n', UTF-8, To, tomailid'");
Console.Writeln ( "Post Process Script complete:"+dtm_current );

「セクション '結果' を 'Microsoft Office Web Archive' として com に電子メールで送信する」というエラーが表示されます。

エクスポートに失敗しました。エラー: 接続はホスト 127.0.0.1 を見つけることができませんでした。SMTP サーバーはポート 25 にありますか? (エラーコード=146)

質問: 指定した電子メール サーバーではなく、localhost に接続しようとしている理由

4

1 に答える 1

0

私はこれを機能させました。

var dtm_current = new Date(); Application.ExecuteBScript("BrioQuery、メール、'インターネット メール'、emailserverwithoutquotes、'fromemailid' を設定"); var count =1* ActiveDocument.Sections['R-Results'].RowCount;

Console.Writeln(カウント); if(count > 0){ Application.ExecuteBScript("Export Section Root.'R-Results', csv, 'job_output', Silent, email, 'Testing Email action if', 'This is a test of the email action if. \n\n\n', UTF-8, To, 'tomailid'"); } else{ Application.ExecuteBScript("Export Section Root.'R-Results', csv, 'job_output', Silent, email, 'Testing Email action else', 'This is a test of the email action else. \n\n \n', UTF-8, To, 'tomailid'"); }

于 2012-07-10T23:15:11.347 に答える