Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Help with VB Mail

Posted on 2007-04-11
1
244 Views
Last Modified: 2010-04-23
I am making a visual basic form that sends emails. Before you just say use vbSendMail i have tried it! I am trying the hard way by using the imports System.Net.Mail Class and this is what i have come up with (see code) however i am trying to make it a little more dynamic so what the user types in the txt box it will put it in the "" I know that it is Read Only but does any one have any clues?

        txtattachments.Text = "" & Application.StartupPath & "/Inventory.mdb;"

        Dim mail As New MailMessage
        Dim SmtpMail As New SmtpClient


        mail.From = "" & txtfrom.Text & ""
        mail.Subject = "" & txtsubject.Text & ""
        mail.To = "" & txtto.Text & ""
        mail.Body = "" & txtbody.Text & ""
        mail.Attachments = "" & txtattachments.Text & ""
        SmtpMail.Host = "" & txtserver.Text & ""
        SmtpMail.Send(mail)

0
Comment
Question by:jejernig
1 Comment
 
LVL 18

Accepted Solution

by:
vbturbo earned 500 total points
ID: 18887874
Hi jejernig

Have you checked this link ?

http://www.systemnetmail.com/

especially part 3 : Quickstart Programming Samples
http://www.systemnetmail.com/faq/3.1.1.aspx

vbturbo
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

840 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