Solved

Help with VB Mail

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 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