Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send mail W/O an SMTP and Streaming

Status
Not open for further replies.

PraveenMenon

Programmer
Oct 19, 2002
208
IN
Hi all,

Hope the newyear is going well to u all..

I have some questions to make..

1) I have seen many a code here at the TT, for sending mails via VB. Many used Outlook, MAPI or Winsock. I am trying to code a Mail Server from VB, which when installed in the system, can relay messages to one or many recepients. Is this possible? If yes, I'll b obliged to hear from all the experts here...

2) Is it possible to send a mail without an SMTP Server or Outlook? If yes, how?

3) How can we stream data from one database server to the client system? I mean to say, if we have .hmmmm.. say a server that talks to The StockExchange and get all the stock prices every 30 seconds, how can i stream it to the client system, so that they dont have to key this in?

Thanks for attempting this..

All the Best
Praveen Menon
 
Praveen,

1) There is a 3rd Party Internet mail control available from It is a cost item however and I don't know how your bosses would react to that! I believe, that there are no runtime licence costs though i.e. you buy the development licence. From the tech spec I have briefly read, it doesn't require an installed mail client (Outlook notes etc). It is possible there are other free ones.

2) Not quite sure what you mean, Please could you expand on your thoughts so we can all offer help?

3) Me Clueless! I am sure someone else will have some good ideas

Best of luck in your new job!

Matt
 
Thanks for the link matt..

By the second question, i meant this. when ever we need to send a mail via winsock, we need to tell the app about an SMTP Server that the app has access to.. in my case, we at the 'new' company dusnot have it, and the project is a small bulkmail system, where the user selects the emails he need to send a mail to, and the same mail goes to multiple recepients. Am confused at this. One of the requirement is that, it should work with just an internet connection and the complete setup of this program. Am i talking clearer?

Yeah Matt, the new job is better, but it gives a heavy toll on my brain.. All the Best
Praveen Menon
pcmin@rediffmail.com
 
>By the second question, i meant this. when ever we need to send a mail via winsock, we need to tell the app about an SMTP Server that the app has access to

As I understand it.

You need a SMTP server somewhere in the chain... This server could be either managed internally (e.g. MS Exhange) or externally (by the ISP)

>One of the requirement is that, it should work with just an internet connection

I would guess that the SMTP server is supplied by the ISP. If you go to the ISP homepage, they will have a list of their server addresses. If this project is for "sale" you need to be able to alter this address for the final end users' isp (but I don't need to tell you about registry & ini files :) )

If I am wrong, someone else will shoot me down, I am sure


regards


Matt
 
>it should work with just an internet connection

Well...the answer is that yes, you can do it, but it is not particularly straightforward.

For each email recipient, you need:
1) a method to break down an email address into the recipient name and the domain (this is the easiest bit)
2) code to do a DNS lookup for the MX record associated with the domain, and there may be multiple results.
3) to establish a TCP/IP connection to the IP address returned in step 2 on port 25 (the SMTP port)
4) code that talks SMTP (there's a nice RFC on the subject)

Frankly, it is likely to be much easier to purchase a 3rd party component that does this, or use CDONTS and leverage an already existing IIS-based SMTP gateway in the organisation.

 
Thanks for the suggestion strongm..

I almost completed the project on BulkMail sending, and i did it by automating the ArGoSoft Mail server from vb. It works fine, but it needs the ArGoSoft Mail server to be installed in the system.. that i consider (may be foolishly!!) as a drawback of the project, when all i need was a dll that will take up the SMTP 25, and can relay the messages. Do u people have any idea how this can be put in to practice? i have seen many a thrid party controls and libs that does the same, but the management thinks (for some reason...) that aint 'safe'...

Do u have some links so that i can start working on a mailserver of my own? just like the ArGoSofts'?

Also what are your comments on the third Q strongm..?? All the Best
Praveen Menon
pcmin@rediffmail.com
 
Hi Praveen,
Argosoft can be used , if and only ur ISp has blocked the smtp facility. Sending bulk mail from the local premises actually clogs ur bandwidth.
another option u can buy smtp from a provider.
or another option configure a machine with win 2000 server adn exchange server

Regards
John philip *** Even the Best, did the Bad and Made the Best ***

John Philip
Software Programmer
JustDial Services, Mumbai
johnphilip@justdial.com
 
John, thanx for the suggestion...

But this is not for the use in our company, its a client located somewhere like in "Atlantic Ocean" i gus... All the Best
Praveen Menon
pcmin@rediffmail.com
 
hi folks

for sending mail......

search for vbsendmail.dll on google
i have used it a few times
its easy to use and doesnt fall over. it allows
an internet connected pc to send mail directly
via the recipients mx record.

hope this helps.

Russ
 
sixToedSloth,
I believe that vbsendmail.dll still needs an SMTP server...

.. but please correct me if I'm wrong
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
it doesnt need an smtp server on your site.
it takes the email address of the recipient

ie russ@mymail.com

strips off the russ@ bit

then does a dns query for the mx record of mymail.com.

this returns the smtp server of the recipient.

then it sends it there directly.

Regards,

Russ
 
Thanks for clarification!
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Hi ,
I am using vbsendmail.dll.
But sometimes it is not senting mails.
how will i know whether it is sent or not , is there any way to find this out.
'
or i think my dll was corrupted i unregistered it and registered.

can any one please help me in this

Regards
John Philip

*** Even the Best, did the Bad and Made the Best ***

John Philip
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top