|
-
Oct 7th, 2003, 05:50 PM
#4
Hyperactive Member
no all you have to do is to add the system.web.mail to your project, then it will work, irrespective of whether this is a windows or web application.
in your applicattion first of all
use the project add refence to add the system.web.services
then in your form use:
Imports System.web.mail
before or after the Public Class or End Class statement, add the import statement
Imports System.web.mail
then in the body of your code:
dim m1 as new mailmessage
' set your own parameters
' use:
Smtpmail.send(m1)
thats it, it will work, the only thing is that when you send the message, if your are not currently connected to the internet, it will give you a warning that you are not connected.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|