I search in google and in this forum for a simple sending email code with winsock!! but all what i find is complicated application with many options :sick:
all i want is the basics like "from" , "to" "subject".....
any help??
Printable View
I search in google and in this forum for a simple sending email code with winsock!! but all what i find is complicated application with many options :sick:
all i want is the basics like "from" , "to" "subject".....
any help??
I don't have any code, but I do have a DLL that implements the SMTP protocol for sending mail. I've been using it for a couple of years and it has never let me down. It's easy to use and the best part, it's free.
Let me know if you're interested and I'll post it.
First man..Thx for ur help :)Quote:
Originally Posted by pnish
but i don't want to use any ocx or dll
when i said using winsock..I was later going to replace the winsock with an api..
But thx for ur help :)
No sweat. If I come across anything I'll let you know.
Good luck.
first search for rfc on smtp on the net. this will give you an idea on how smtp works and what to do with winsock to make simple mail transfer.
For winsock question please use our
Distributed Computing (multi-tier development) Forum
(http://www.vbforums.com/forumdisplay.php?f=64)
You will find at the top there an FAQ,
(http://www.vbforums.com/showthread.php?t=319832)
From there there is a guide to sending email
(http://winsockvb.com/article.php?article_id=20)
If you dont want to do it using winsock you can do it like this, which will send using default email client
VB Code:
Option Explicit Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _ ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long Private Const SW_SHOWNORMAL As Long = 1 Private Sub Command1_Click() ShellExecute Me.hwnd, "Open", "mailto:[email protected]?Subject=Test", vbNullString, "C:\", SW_SHOWNORMAL End Sub
Hope that helps :)
Pino
Quote:
Originally Posted by pnish
Could you post it anyway ? I'm kinda interested here :)
VbSendmail.dll may not be the dll that Shady Soft was referencing for sending email but it is pretty simple to use and allows you to specifiy the smtp server, server authentication info (uname/pwrd), send attachments, etc and it's free.
Check out http://www.freevbcode.com/ShowCode.Asp?ID=109
Here's a link to download the DLL: http://www.dimac.net/Quote:
Originally Posted by thegreatone
Go to the free downloads page and download w3Jmail.
Cheers
I was playing around with some code earlier for this.
I am writting a POP3 email DLL for use with my MSN Messenger client I have been writting.
The basics are pretty simple.
I think the hardest bit is the handling of the packets and understanding how the POP3 protocol works.
Anyways, while downloading code, I found this. Not the best app in the world, but simple, to the point, and it works.
Definately worth a look as it's a good starting point for a POP3 app.
Woof
When you need to send mail, you would either need to have an SMTP server, or know how to talk to MX servers. The problem is that ISP's tend to block the ports required, which means you need to get a server that redirects a port.
If you have all those figured out, then go and search some code for sending email via MX servers.
does anyone know ith there is something similar to Wokawidget's dll for VB.net?
You could post a request over in the .Net section for someone to convert it ;)Quote:
Originally Posted by PFTBurger
thanks, I just saw the converting tips sticky, so ill give it a bash first.