Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > setting up smtp to send an email

Reply
Thread Tools

setting up smtp to send an email

 
 
Robert Smith
Guest
Posts: n/a
 
      02-12-2005
Hello,
I have created a simple asp web page to send an email with the send
button event as attached. However when I click the send button nothing
happens and I know the email address is correct. I don't recieve the email. I
think that this could be because I haven't set up my smtp correctly.
The smtp is set to Default SMTP server with an Unassigned ip address. I'm
using windows 2000 (desktop edition not server). What should my smtp
properties be set to.
Thanx in advance
Robert

<%@ Page Language="vb" Inherits="WebForm1" Src="WebForm1.aspx.vb" %>
<%@ Import namespace="system.web.Mail"%>
<script language="vb" runat="server">
Public Sub btnSendEmail_click(byval sender as system.object, Byval e as
system.eventargs)
Dim ObjSmtpMail as New SmtpMail()
objSmtpMail.Send(txtTo.text,txtFrom.text,txtSubjec t.text,txtmessage.text)
objsmtpMail=Nothing
End sub
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to send email programmatically from a gmail email a/c when port587(smtp) is blocked ashish makani Python 5 09-20-2012 07:56 AM
Send email via external SMTP Server =?Utf-8?B?QW5kcmVhcw==?= ASP .Net 5 01-18-2005 02:31 PM
cannot send email from SMTP, help! Quentin Huo ASP .Net 1 07-03-2004 12:47 PM
Send email through a SMTP Server that requires authentication Rodrigo ASP .Net 1 08-28-2003 12:45 PM
Cannot send email using SMTP Bob Jones ASP .Net 9 08-07-2003 11:10 PM



Advertisments