-
Sending mail from VB
Hello,
I have a website with a Perl sendmail script set up.
Does anyone know how to access the script using
Winsock or some other control from my VB programs
and send mail to an email address using the Perl script.
In other words I want to know if I can access a Perl
script on a web server from my VB programs.
Any help would be greatly appreciated.
Mel.
-
dont know if this is what you want, but to send an email from vb check out this tutorial:
http://161.58.84.209/articles/sendmail/
-
Sendmail using CGI
That page shows how to send email using a POP server,
which the user presumably has. I want to know how I
can let the user send email if he doesn't have a POP
account for example, someone with a Yahoo or Hotmail
account.
I have a Perl sendmail script set up on a web server.
If I can access this script the way I would in a web
browser, then I can accomplish this. Does anyone know
how to do this?
-
Try using a WebBrowser Control with the web-page that would be used. You could have the web-page on the hard drive, or put it in a res file(saw an example of this over at PSC), or have the "html code" in your VB app(check this example for an idea: http://161.58.84.209/internet/tip379.html)
If you use the web-page locally, either off of the hard drive, res file, or created in code, then be sure to have the <base href=http://mainsite.com - tag and all the data should be sent back to the web-site for processing.
-
Here's another method of posting to cgi scripts using Inet...
http://www.vbsquare.com/internet/cgi
-
Thanks man!
Hey thanks, that was exactly what I was looking for! :cool: