How to send e-mail

How to send e-mail without using any ActiveX controls
(only Windows DLLs based)
naskomAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
intheConnect With a Mentor Commented:
please try this component and tell me any problems :

http://www.torry.ru/vcl/internet/temail2.zip

or go
http://www.torry.ru/vcl/internet/ 

and download any of the smtp ones..

you say oyu want to use the standard windows api well then:
http://www.bhnet.com.br/~simonet/archive/mapimail.zip 
 does exactly that..
you need something like any of above there no other way to send mail..

0
 
hubdogCommented:
TNMSmtp shipped with delphi can send email (demo under \demos\fastnet\smtp)

cheers

hubdog
0
 
naskomAuthor Commented:
Nope
So...
I want to create a program which can run on eachone PC with installed Windows (no delphi or other things)

So I'm looking for a way to send e-mail using the standard windows API ot something like it

0
[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

 
intheCommented:
I use a mapi component called TEmail,or if you dont want component see this demo project of sending mail using mapi  api :
http://www.bhnet.com.br/~simonet/archive/mapimail.zip 

but if you dont have to send attachements you can do:

uses shellAPI,

Var
Buffer : String;
recip,subj,mess : String;
begin
recip:= Edit1.text;   {message recipients email address}
subj:=Edit2.Text;     {message subject}
Mess:= Memo1.Text;    {message}
Buffer:='mailto:'+recip+'?subject='+subj+'&body='+mess;
ShellExecute(Application.Handle,'open',PChar(Buffer),nil,nil,SW_Normal);

Regards Barry
0
 
naskomAuthor Commented:
I dont think this will do the job
Actually I need a control (like SMTP) which can be used from each system
(Not OCX or sth like it)
0
 
intheCommented:
why wont they do the job?
mapimail.zip etc works fine..

maybe you want to look to winshoes or ics @

http://www.pbe.com/Winshoes/
or
http://www.rtfm.be/fpiette/indexuk.htm
0
 
PeterLarsenCommented:
Barry, where can i find that component you'r talking about - TEMail ??
Peter
0
 
intheCommented:
http://www.torry.ru/vcl/internet/

temail2.zip is file name if i remember right.
0
 
PeterLarsenCommented:
Thats true, Barry. Thanks.
0
 
PeterLarsenCommented:
ehh, i ment, you do remember right .. :)
0
 
naskomAuthor Commented:
And how to use this components (for example temail2 ?)
Can you paste me a source
0
 
intheCommented:
hi
it comes with 3 examples for delphi annd 2 for c++ of how to use it.
have you installed it and tried the examples?
the following folders where you install it contain qm32demo , faxdemo,enhdemo which are the examples for delphi.

0
 
DonBartholomewCommented:
The NMSMTP component is pretty easy to use. Note that this is SMTP mail; you have to use the Username as in an Outlook mapi user profile. You can add attachments but it is not neccessary. Of course you'll have to connect to a mailserver: use the IP-adress instead of the server name (that's a bit of a bug: the FromAddress property is not included in the sent message).

The demo is in \Demos\FastNet\Smtp

0
All Courses

From novice to tech pro — start learning today.