Solved

Help with VB Mail

Posted on 2007-04-11
1
224 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
A short film showing how OnPage and Connectwise integration works.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

914 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