Solved

Sending email through VB application

Posted on 1998-09-09
3
113 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VBA error replacing data 6 39
Add a task in Outlook from access 11 39
using web browser with BING 40 119
Excel Automation VBA 19 69
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

776 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