I want to send e-mail to a given recipient. The problem is that there should be a file attached. I made it using Outlook, but it doesn't work with OutlookExpress. Here is the code. Any idea ???
NmSpace := OutlookApplication.GetNamespace('MAPI');
NmSpace.Logon('', '', False, False);
MailItem1.ConnectTo(OutlookApplication.CreateItem(olMailItem) as MailItem);
MailItem1.Subject := 'sample';
MailItem1.Attachments.Add('C:\abc.xls', EmptyParam, EmptyParam, EmptyParam);