Problem setting "To_" of TMailItem

Add-in Express™ Support Service
That's what is more important than anything else

Problem setting "To_" of TMailItem
 
Julian Pointer


Guest


i want to set the To of an email, I can set the cc fine but when I try to set the to_ I get "Method 'To_' not supported by automation object" any ideas how I can set the to?

thanks
Posted 17 Jul, 2005 17:38:52 Top
Dmitry Kostochko


Add-in Express team


Posts: 2740
Joined: 2004-04-05
Hi Julian,

Try to set the To_ property using the DefaultInterface property. For instance:

var
  M: TMailItem;
begin
  // skipped

  M.DefaultInterface.To_ := 'email@domain.com';
  // or
  M.DefaultInterface.Set_To_('email@domain.com');

  // skipped
end;


Posted 18 Jul, 2005 06:36:21 Top
Julian Pointer


Guest


Thanks...
Posted 18 Jul, 2005 21:17:49 Top