Solved

use delphi to send e-mail via outlook

Posted on 1998-10-26
6
162 Views
Last Modified: 2010-04-06
is there any way to put in the outbox folder under outlook express, a message to an email written in a textbox, and with an attachment, without using outlook, just A single delphi program?

Please post full code.
0
Comment
Question by:jpcs
6 Comments
 
LVL 8

Expert Comment

by:ZifNab
ID: 1344531
Hi jpcs,

procedure TForm1.Button1Click(Sender: TObject);
       var
         TempUrl : string;
       begin
         TempUrl:='mailto:tom.deprez@village.uunet.be?subject=Your subject&body=test body';

       ShellExecute(Application.Handle,'open',PChar(TempURL),nil,nil,SW_NORMAL);
       end;

you can use this for outlook, but I don't think it's possible to send attachements.

To send attachments, use MAPI, but Outlook isn't MAPI compliant.  Exchange is.

So, I guess you've to make a tough descision.

Zif.
0
 

Expert Comment

by:mtieland
ID: 1344532
I do not entirly understand your question.

Do you want to start a email message box from Outlook without starting outlook entirly? Or do you want to create a message compatible with outlook?
0
 
LVL 3

Expert Comment

by:bryan7
ID: 1344533
jpcs:::      to use ShellExecute, you have to add SHELLAPI to the Uses clause

( uses  Windows, Messages, SysUtils, Cla... )

hey Zif, it works perfectly !

bryan =)

0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 8

Expert Comment

by:ZifNab
ID: 1344534
thanks for the support bryan :-)
0
 
LVL 1

Author Comment

by:jpcs
ID: 1344535
Sorry for the delay... been absent.

I can't accept the answer, because Outlook is possible to the  MAPI client as default (set it up in options), and I know it's possible to do wat I want, since Photo Shop 5 does it... (If you have an image opened and click on send in the File menu, it opens outlook in a new message and the message is in the attachments section.

Sorry.
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 50 total points
ID: 1344536
Hi jpcs,

then use a the MAPI component : tEmail2.

http://www.econos.de/software/borland/email2/index.html

It's good, I used it once.

Regards, Zif.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Using idhttp to login to instagram 2 90
Help on project with Soap 10 54
DBGrid or StringGrid ? 6 90
Tidtcpserver listening on multiports? 1 27
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question