You might want to create your own "mail function" using the winsock control or raw tcp/ip, but you will need to know some SMTP commands like:
RCPT TO:
MAIL FROM:
DATA
and so on, good luck! Gordon R. Durgha
gd@vslink.net
This wasn't very helpful because of one reason, I don't know how to use those controls and I am a begginner, I also don't have winsock or anything of that sort
Add the MicroSoft MAPI control 6.0 to your project and place a 'MAPISession' and a 'MAPIMessages' on a form (here:MyForm).
Here's the code that sends the mail:
MyForm.MAPISession1.LogonUI = True
MyForm.MAPISession1.UserName = "YourUserName"
MyForm.MAPISession1.SignOn
With MyForm.MAPIMessages1
.SessionID = MyForm.MAPISession1.SessionID
.Compose
.RecipDisplayName = "mymail@myserver.com"
.MsgSubject = "TheSubject"
.MsgNoteText = "TheMail"
.ResolveName
.Send
End With
MyForm.MAPISession1.SignOff
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.