Results 1 to 6 of 6

Thread: Sending mail from VB

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Toronto, Canada
    Posts
    52

    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.

  2. #2
    Frenzied Member zuperman's Avatar
    Join Date
    Dec 2000
    Location
    Portugal
    Posts
    1,033
    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/
    Help keep this forum clean: Remember to mark your thread as resolved · Search before you post · Remember to rate posts that help

    VS2010: Visual Studio 2010 Keybinding Posters
    · Service Pack 1
    Tools: GhostDoc - automatically generates XML documentation comments
    · NuGet package Manager · PowerCommands IDE extensions
    Source Control: ankhsvn - integration for SVN
    · Windows Shell Extension for Subversion

    Development Laptop: Intel Core i5 430M 2.26 GHz @ 2.53 GHz
    · 4096 MB, DDR3 PC3-8500F (533 MHz), Kingston · ATI Mobility Radeon HD 5470 · 15.6 @ 16:9, 1366x768 pixel, HD LED LCD

    I follow:
    JoelOnSoftware - A weblog by Joel Spolsky, a programmer working in New York City, about software and software companies
    ScottGu's Blog - Scott Guthrie works for Microsoft as the Product Manager of the .NET Framework
    Portugal-a-Programar - Portuguese Developers Community
    .NET Rocks! - is a weekly Internet audio talk show for .NET Developers.

    Programming Languages:
    C#
    · VB.NET · JAVA · PHP · Javascript
    Other:
    XML
    · HTML · CSS · JQuery · SQL



    *** Proudly Portuguese ***

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Toronto, Canada
    Posts
    52

    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?

  4. #4
    Frenzied Member
    Join Date
    Mar 2001
    Location
    You are HERE •™
    Posts
    1,300
    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.

  5. #5
    Frenzied Member
    Join Date
    Mar 2001
    Location
    You are HERE •™
    Posts
    1,300
    Here's another method of posting to cgi scripts using Inet...

    http://www.vbsquare.com/internet/cgi

  6. #6

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Toronto, Canada
    Posts
    52

    Talking Thanks man!

    Hey thanks, that was exactly what I was looking for!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width