Click here to Skip to main content
16,006,001 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCrystal Report Logon Problem Pin
Hasan Jaffal25-Sep-06 23:42
Hasan Jaffal25-Sep-06 23:42 
QuestionSelect statement Pin
minniemooo25-Sep-06 21:02
minniemooo25-Sep-06 21:02 
AnswerRe: Select statement Pin
Stephan Pilz25-Sep-06 21:23
Stephan Pilz25-Sep-06 21:23 
AnswerRe: Select statement Pin
S Douglas25-Sep-06 22:16
professionalS Douglas25-Sep-06 22:16 
AnswerRe: Select statement Pin
Colin Angus Mackay25-Sep-06 22:52
Colin Angus Mackay25-Sep-06 22:52 
QuestionAnnotation tool using vb.net Pin
zarine8525-Sep-06 20:33
zarine8525-Sep-06 20:33 
QuestionSend Emails Pin
JackieWill25-Sep-06 20:00
JackieWill25-Sep-06 20:00 
AnswerRe: Send Emails Pin
Stephan Pilz25-Sep-06 21:13
Stephan Pilz25-Sep-06 21:13 
Hello Jackie,

see code below. It's easy to extend it to send attachments. Look at MSDN for the both classes.

Private Sub SendMail(ByVal Sender As String, ByVal Subject As String, ByVal Body As String)
    Dim oSmtp As System.Web.Mail.SmtpMail
    Dim oMailMsg As New System.Web.Mail.MailMessage

    oMailMsg.From = Sender
    oMailMsg.To = "recv1@account.com;recv2@account.com"

    oMailMsg.Body = Body
    oMailMsg.BodyFormat = System.Web.Mail.MailFormat.Html
    oMailMsg.Subject = Subject

    oSmtp.SmtpServer = ConfigurationSettings.AppSettings("MailServer")
    oSmtp.Send(oMailMsg)

    oMailMsg = Nothing
End Sub


Regards
Stephan

                   \\\|///
                 \\  - -  //
                  (  @ @  )
+---------------oOOo-(_)-oOOo-----------------+
| Stephan Pilz   stephan.pilz@stephan-pilz.de |
|                <a href=http://www.stephan-pilz.de>www.stephan-pilz.de</a>          |
|                ICQ#: 127823481              |
+-----------------------Oooo------------------+
                 oooO   (   )
                (   )    ) /
                 \ (    (_/
                  \_)

Questionhelp to cahnge VB# to C# !! Pin
pcbryanking25-Sep-06 19:45
pcbryanking25-Sep-06 19:45 
AnswerRe: help to cahnge VB# to C# !! Pin
Dave Doknjas26-Sep-06 15:51
Dave Doknjas26-Sep-06 15:51 
GeneralRe: help to cahnge VB# to C# !! Pin
pcbryanking26-Sep-06 18:22
pcbryanking26-Sep-06 18:22 
QuestionData Grid View question: Pin
Are Jay25-Sep-06 19:11
Are Jay25-Sep-06 19:11 
Questiondatagrid filling with dollar and cents Pin
Silver-Grey25-Sep-06 10:19
Silver-Grey25-Sep-06 10:19 
AnswerRe: datagrid filling with dollar and cents Pin
Are Jay25-Sep-06 18:34
Are Jay25-Sep-06 18:34 
QuestionVB.NET Datatype Pin
Like2Byte25-Sep-06 9:38
Like2Byte25-Sep-06 9:38 
AnswerRe: VB.NET Datatype Pin
nlindley725-Sep-06 9:45
nlindley725-Sep-06 9:45 
GeneralRe: VB.NET Datatype Pin
Like2Byte25-Sep-06 9:56
Like2Byte25-Sep-06 9:56 
QuestionExecutenonquery timeout property Pin
VK-Cadec25-Sep-06 8:56
VK-Cadec25-Sep-06 8:56 
AnswerRe: Executenonquery timeout property Pin
nlindley725-Sep-06 9:42
nlindley725-Sep-06 9:42 
GeneralRe: Executenonquery timeout property Pin
VK-Cadec25-Sep-06 9:48
VK-Cadec25-Sep-06 9:48 
GeneralRe: Executenonquery timeout property Pin
Dave Kreskowiak25-Sep-06 9:59
mveDave Kreskowiak25-Sep-06 9:59 
GeneralRe: Executenonquery timeout property Pin
VK-Cadec25-Sep-06 10:02
VK-Cadec25-Sep-06 10:02 
GeneralRe: Executenonquery timeout property Pin
Dave Kreskowiak25-Sep-06 10:10
mveDave Kreskowiak25-Sep-06 10:10 
GeneralRe: Executenonquery timeout property Pin
VK-Cadec26-Sep-06 4:36
VK-Cadec26-Sep-06 4:36 
GeneralRe: Executenonquery timeout property Pin
Dave Kreskowiak26-Sep-06 12:34
mveDave Kreskowiak26-Sep-06 12:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.