Solved

Help with VB Mail

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
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 …

756 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