Solved

Sending email through VB application

Posted on 1998-09-09
3
110 Views
Last Modified: 2010-04-30
What is the best/simplest way to send emails through VB, preferably without third-part components?
0
Comment
Question by:ribbegrd
3 Comments
 
LVL 4

Expert Comment

by:mcix
ID: 1433858
What kind of e-mail would you like to send?

SMTP,MAPI?
0
 
LVL 15

Accepted Solution

by:
Eyal earned 50 total points
ID: 1433859
here is some code from source code site

'Code provided by Planet Source Code(tm) 'as is', without
'     warranties as to performance, fitness, merchantability,
'     and any other warranty (whether expressed or implied).
'****************************************************************

'Instead of writing declarations and everything to open a we
'     b browser to your 'page try this:

Ret = Shell("Start.exe " & "www.send-a-teddy.com/lc", 0)


'The program start.exe executes the shell for any program in
'      windows95, try this:

Ret = Shell("Start.exe " & "mailto:lc-enterprises@usa.net", 0)

'The line above will open the default mail client with your
'     address on it, also:

Ret = Shell("Start.exe " & "mailto:lc-enterprises@usa.net?Subject=Hello", 0)

'With the subject "Hello" already filled.

'The following line will open an html file with the default
'     browser:

Ret = Shell("Start.exe " & "c:\hellopage.htm", 0)

'If you have a program with a filelist box, try this to open
'      the shell of a file with a double click event:

Ret = Shell("Start.exe " & """" & Filepath & Filelist1 & """", 0)


0
 

Author Comment

by:ribbegrd
ID: 1433860
SMTP mail is preferred. Maybe that 'sendmail' would be useful?
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now