Solved

Help with VB Mail

Posted on 2007-04-11
1
256 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
[X]
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
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

617 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