LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to send an email to transfer data from end user to the programmer

I've done a project which I distribute with my software packet. There is no serial or something like that necessary but I want to force the user, to send me some information about him, user name, computer name... That's why I want to implement some code which is executed the first time the software is started. It should send the information via email to my pop3 account. How can that work? I don't want that the user has to configure smtp, like it is in the send mail example of the internet toolkit, this information must be stored somewhere on a pc. Is it possible to programm it like formulars in FrontPage, so that the user don't even need to open his email programm, just need to push a button in the softwa
re, and all other things are done automatically?
0 Kudos
Message 1 of 5
(3,752 Views)
When sending an email in this manner, you will need to know the smtp server that the user is connecting thru. This information can probably be found in the registry, based on the mail program the customer uses. You would probably need to research that a bit.
Unless ofcourse your pop account provider gives you an smtp server to use. Then one thing you could do is hard wire the information about your smtp server in the program. So in effect, it would be like you sent an email to yourself, only you could alter the subject like or add some tags so you would know thats its a user who sent you the email. So this way, as long as your email inforamation does not change, you dont have to worry about finding out which server your user (or his company uses) and where to fin
d that information. Hopefully, the user will not have some firewall that prevents this sort of interaction in his network.

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 5
(3,752 Views)
Reach the following page :
http://perso.wanadoo.fr/philippe.baucour/download/reseaux/reseau.html
And either donwload the project named "EZ Mail" (quite basic but should
answer your question) or "SendMail" (more advanced in terms of feature)

--
Philippe
Feel free to visit : http://perso.wanadoo.fr/philippe.baucour



"--" a écrit dans le message de
news:50650000000800000021990000-1042324653000@exchange.ni.com...
> I've done a project which I distribute with my software packet. There
> is no serial or something like that necessary but I want to force the
> user, to send me some information about him, user name, computer
> name... That's why I want to implement some code which is executed the
> first time the software is started. It should send the informat
ion via
> email to my pop3 account. How can that work? I don't want that the
> user has to configure smtp, like it is in the send mail example of the
> internet toolkit, this information must be stored somewhere on a pc.
> Is it possible to programm it like formulars in FrontPage, so that the
> user don't even need to open his email programm, just need to push a
> button in the software, and all other things are done automatically?
0 Kudos
Message 3 of 5
(3,752 Views)
If you have Microsoft Outlook installed on your PC, you can use it with ActiveX. Look at the outlookrep2000.prj sample project that shipped with CVI 6.0.
..\CVI\samples\activex\outlook
0 Kudos
Message 4 of 5
(3,752 Views)
you can use this example
0 Kudos
Message 5 of 5
(3,752 Views)