小弟因为工作的需要,需要知道系统默认的邮件收发工具,也就是控制面板中Internet选项中的工具,但是小弟不知道怎样得到工具的相关信息,并且要能够调用该工具。
本来工是准备用Shellexecute这个函数直接执行"mailto"操作来打开系统默认的工具,可是对于接收邮件如果通过Shellexecute函数执行怎样的命令才能调用系统默认的工具进行收邮件呢?
本来工是准备用Shellexecute这个函数直接执行"mailto"操作来打开系统默认的工具,可是对于接收邮件如果通过Shellexecute函数执行怎样的命令才能调用系统默认的工具进行收邮件呢?
是系统mail程序
S: string;
begin
Registry:=TRegistry.Create; Registry.RootKey:=HKEY_CLASSES_ROOT;
Registry.OpenKey('mailto\shell\open\command',False);
s:=Registry.ReadString('');
// s:=copy(s,2,length(s)-)//自已处理
caption:=s; Registry.Free;