TSMMAPIMail component |
|
This component allow to
create an email message and send it using MAPI. Unlimited recipient and attachment lists are supported. |
|
3Kb | Last updated: February 8, 2017 |
D3-D2005, CB3-6, BDS2006/2007/2009/2010/XE/XE2/XE3/XE4/XE5/XE6/XE7/XE8, RAD Studio 10 Seattle, 10.1 Berlin, 10.2 Tokyo, 10.3 Rio, 10.4 Sydney, 11 Alexandria, 12 Athens | Freeware with sources): smcmpnt.zip |
This component allow to create an email message and send it using MAPI. Unlimited recipient and attachment lists are supported.
Using CC: and BCC: prefixes you can specify carbon recipients.
Code sample:
with TMAPIMail.Create(Self) do try Subject := 'test'; Body := 'Hi,'#13#10#13#10'with best regards, Mike Shkolnik'; Recipients.Add('mshkolnik@scalabium.com'); Recipients.Add('CC:mshkolnik@yahoo.com'); Recipients.Add('BCC:mshkolnik@mail.ru'); Attachments.Add('c:\autoexec.bat'); EditDialog := True; Send finally Free end;
Note that if you have problems with name resolving, try to add smtp: prefix before email address:
Recipients.Add('smtp:mshkolnik@scalabium.com');
Must work with any default mailer which support MAPI. For example, MS Outlook, MS Outlook Express, Opera, TheBat etc
Click to subscribe to SMComponents
Copyright© 1998-2024, Scalabium
Software. All rights reserved. |