T
tsahling
Hi!
If I create an item by template, Outlook ignores setted recipients by
Redemption.SafeMailItem. The message always appears without recipient.
If I create the message by CreateItem(), the recipient appears:
--- test.js ---
var outlook = new ActiveXObject( "Outlook.Application" );
var session = outlook.GetNamespace( "MAPI" );
var strEntryID;
// --
session.Logon( "", "", false, false );
// --
{
var mail = outlook.CreateItemFromTemplate( "D:\\work\\vorlage.oft" );
// --
mail.Subject = "test";
mail.Attachments.Add( "D:\\work\\3827319625bsp.pdf" );
mail.Save();
// --
{
var smail = new ActiveXObject( "Redemption.SafeMailItem" );
// --
smail.Item = mail;
smail.Recipients.Add( "(e-mail address removed)" );
// --
mail.Save();
// --
smail = null;
}
// --
strEntryID = mail.EntryID;
// --
mail = null;
}
// --
{
var mail = session.GetItemFromID( strEntryID );
// --
mail.Display( true );
}
// --
session.Logoff();
--- test.js ---
(Redemption 4.12, Outlook 2000, Win 2000 Prof. SP4)
Does anyone has an idea what the problem could be here?
Thanks!
If I create an item by template, Outlook ignores setted recipients by
Redemption.SafeMailItem. The message always appears without recipient.
If I create the message by CreateItem(), the recipient appears:
--- test.js ---
var outlook = new ActiveXObject( "Outlook.Application" );
var session = outlook.GetNamespace( "MAPI" );
var strEntryID;
// --
session.Logon( "", "", false, false );
// --
{
var mail = outlook.CreateItemFromTemplate( "D:\\work\\vorlage.oft" );
// --
mail.Subject = "test";
mail.Attachments.Add( "D:\\work\\3827319625bsp.pdf" );
mail.Save();
// --
{
var smail = new ActiveXObject( "Redemption.SafeMailItem" );
// --
smail.Item = mail;
smail.Recipients.Add( "(e-mail address removed)" );
// --
mail.Save();
// --
smail = null;
}
// --
strEntryID = mail.EntryID;
// --
mail = null;
}
// --
{
var mail = session.GetItemFromID( strEntryID );
// --
mail.Display( true );
}
// --
session.Logoff();
--- test.js ---
(Redemption 4.12, Outlook 2000, Win 2000 Prof. SP4)
Does anyone has an idea what the problem could be here?
Thanks!