borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (data adapter)Next Topic (What is Visual Basic .Net?) New Topic New Poll Post Reply
AndreaVB Forum : VB.Net : How i can send a mail???
Poster Message
karla
Level: Guest


Ads by Lake Quincy Media
icon How i can send a mail???

How i can send a mail I need send mail, somebody knows the subroutine to send a mail.

14-01-2003 at 04:50 PM
| Quote Reply
devmann
Level: Guest

icon Re: How i can send a mail???

Hei ..

you need to import ..

Imports System.Web
Imports System.Web.Mail
Imports System.Security.Principal

and place code like this ..

        SmtpMail.SmtpServer = " " ' some mailserver
        Dim MailMsg As New MailMessage

        MailMsg.From = "MyHot@hotmail.com"
        MailMsg.To = "Friend@Hotmail.com"
        MailMsg.Subject = "Hello my friend
        MailMsg.Body = "the message"

        SmtpMail.Send(MailMsg)

devmann  

06-07-2003 at 10:56 AM
| Quote Reply
vivekjain
Level: Professor

Registered: 11-08-2003
Posts: 71
icon Re: How i can send a mail???

Hi,
   The code that devmann has written would work, all u need to d is download some SMTP Server and start sending mails

Ads by Lake Quincy Media
04-09-2003 at 04:26 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB.Net : How i can send a mail???
Previous Topic (data adapter)Next Topic (What is Visual Basic .Net?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder