AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Send email via msoutlook

Ein Thema von question · begonnen am 15. Sep 2013 · letzter Beitrag vom 15. Sep 2013
Antwort Antwort
question

Registriert seit: 17. Apr 2013
97 Beiträge
 
#1

Send email via msoutlook

  Alt 15. Sep 2013, 12:59
Hi,
i am usung the following example code to send email via msoutlook,but i got the error "vorgang abgebrochen"
Code:
procedure TPersoncon.SendmailClick(Sender: TObject);
const
  olMailItem = 0;
var
  Outlook: OLEVariant;
  Mail: Variant;
  MailInspector : Variant;
  stringlist : TStringList;
begin
  try
   Outlook:=GetActiveOleObject('Outlook.Application') ;
  except
   Outlook:=CreateOleObject('Outlook.Application') ;
  end;
  try
    Stringlist := TStringList.Create;
    Mail := Outlook.CreateItem(olMailItem) ;
    Mail.Subject := 'subject';
    Mail.Recipients.Add('email@email.de');//Here i got the error "vorgang abgebrochen"
    Mail.Attachments.Add('attachemnt');
    Stringlist := TStringList.Create;
    StringList.Add('Details');
    MailI.Body := StringList.text;
    MailInspector := MailItem.GetInspector;
    MailInspector.display(true);
  finally
    Outlook := Unassigned;
    StringList.Free;
  end;
end;
  Mit Zitat antworten Zitat
Perlsau
(Gast)

n/a Beiträge
 
#2

AW: Send email via msoutlook

  Alt 15. Sep 2013, 13:26
Every week I see this question in one of the Delphi forums. Why not asking Google?
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:46 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz