C chenhaipeng Unregistered / Unconfirmed GUEST, unregistred user! 2001-05-14 #1 在delphi如何调用outlook发e_mail
M mikedeakins Unregistered / Unconfirmed GUEST, unregistred user! 2001-05-14 #2 shellexecute, 文件名是 "mailto:mikedeakins@chinaren.com"
S sanming Unregistered / Unconfirmed GUEST, unregistred user! 2001-05-14 #3 在单元中添加ShellApi, 使用 shellexecute(nil,nil,'mailto:hzj_mail@21cn.com',nil); 即可
T terry_lzs Unregistered / Unconfirmed GUEST, unregistred user! 2001-05-14 #4 shellexecute(handle,nil,'mailto:support@handoo.com.cn',nil,nil,SW_SHOWnormal);
J jollier Unregistered / Unconfirmed GUEST, unregistred user! 2001-05-14 #5 Uses ShellApi; ........... shellexecute(handle,nil,'mailto:jollier@371.net',nil,nil,SW_SHOWNORMAL); 这还得看你的系统中的默认发邮件软件是不是OUTLOOK.
Uses ShellApi; ........... shellexecute(handle,nil,'mailto:jollier@371.net',nil,nil,SW_SHOWNORMAL); 这还得看你的系统中的默认发邮件软件是不是OUTLOOK.
L lostlastlove Unregistered / Unconfirmed GUEST, unregistred user! 2001-11-01 #6 procedure SendOutlookMail; const olMailItem = 0; var Outlook: OleVariant; vMailItem: variant; begin try Outlook := GetActiveOleObject('Outlook.Application'); except Outlook := CreateOleObject('Outlook.Application'); end; vMailItem := Outlook.CreateItem(olMailItem); vMailItem.Recipients.Add('dummy@hotmail.com'); vMailItem.Subject := 'test email'; vMailItem.Body := 'This is a test'; vMailItem.Attachments.Add('C:/temp/sample.txt'); vMailItem.Send; VarClear(Outlook); end;
procedure SendOutlookMail; const olMailItem = 0; var Outlook: OleVariant; vMailItem: variant; begin try Outlook := GetActiveOleObject('Outlook.Application'); except Outlook := CreateOleObject('Outlook.Application'); end; vMailItem := Outlook.CreateItem(olMailItem); vMailItem.Recipients.Add('dummy@hotmail.com'); vMailItem.Subject := 'test email'; vMailItem.Body := 'This is a test'; vMailItem.Attachments.Add('C:/temp/sample.txt'); vMailItem.Send; VarClear(Outlook); end;