|
 |
aspx thread: SmtpMail
Message #1 by "Terry Carr" <Terry.Carr@r...> on Thu, 17 May 2001 15:02:00 -0400
|
|
Has anyone had problems using the SmtpMail capability in .NET? We're
trying to us it, it gives no error message, but also doesn't send the
message.
Message #2 by "Anbarasi Kavitha" <kavitha@t...> on Fri, 18 May 2001 15:53:23 +0530
|
|
Ya I too got the same problem.No erro message are displayed but it doen't
send the mail also.
-----Original Message-----
From: Terry Carr [mailto:Terry.Carr@r...]
Sent: Friday, May 18, 2001 12:32 AM
To: ASP+
Subject: [aspx] SmtpMail
Has anyone had problems using the SmtpMail capability in .NET? We're trying
to us it, it gives no error message, but also doesn't send the message.
Message #3 by "Ollie Cornes" <lotsofemail@c...> on Fri, 18 May 2001 11:24:09 +0100
|
|
from memory, i think it relies on a local smtp server. do you have the mail
server service started?
----- Original Message -----
From: "Terry Carr" <Terry.Carr@r...>
To: "ASP+" <aspx@p...>
Sent: Thursday, May 17, 2001 8:02 PM
Subject: [aspx] SmtpMail
Has anyone had problems using the SmtpMail capability in .NET? We're trying
to us it, it gives no error message, but also doesn't send the message.
Message #4 by "Terry Carr" <Terry.Carr@r...> on Fri, 18 May 2001 18:11:04 -0400
|
|
Yes, we are using a local SMTP server. We are using iMail instead of the
one that comes with IIS, but we tried stopping iMail and using the IIS mail.
It didn't work either.
----- Original Message -----
From: "Ollie Cornes" <lotsofemail@c...>
To: "ASP+" <aspx@p...>
Sent: Friday, May 18, 2001 6:24 AM
Subject: [aspx] Re: SmtpMail
> from memory, i think it relies on a local smtp server. do you have the
mail
> server service started?
>
>
> ----- Original Message -----
> From: "Terry Carr" <Terry.Carr@r...>
> To: "ASP+" <aspx@p...>
> Sent: Thursday, May 17, 2001 8:02 PM
> Subject: [aspx] SmtpMail
>
>
>
>
> Has anyone had problems using the SmtpMail capability in .NET? We're
trying
> to us it, it gives no error message, but also doesn't send the message.
Message #5 by "steve schofield " <steve@a...> on Sat, 19 May 2001 11:38:38 -0500
|
|
Try
Set the 'Outgoing Connections' port to 25,
The 'Smart Host' using the IP address of the IMail server, and the 'FQDN' a
s the FQDN for the IMail Server.
A person ran into this and posted what he did on aspfree.com
Try the above tips.
steve schofield
steve@a...
Webmaster
http://aspfree.com
---------- Original Message ----------------------------------
From: "Terry Carr" <Terry.Carr@r...>
Reply-To: "ASP+" <aspx@p...>
Date: Fri, 18 May 2001 18:11:04 -0400
>Yes, we are using a local SMTP server. We are using iMail instead of the
>one that comes with IIS, but we tried stopping iMail and using the IIS mai
l.
>It didn't work either.
>
>
>----- Original Message -----
>From: "Ollie Cornes" <lotsofemail@c...>
>To: "ASP+" <aspx@p...>
>Sent: Friday, May 18, 2001 6:24 AM
>Subject: [aspx] Re: SmtpMail
>
>
>> from memory, i think it relies on a local smtp server. do you have the
>mail
>> server service started?
>>
>>
>> ----- Original Message -----
>> From: "Terry Carr" <Terry.Carr@r...>
>> To: "ASP+" <aspx@p...>
>> Sent: Thursday, May 17, 2001 8:02 PM
>> Subject: [aspx] SmtpMail
>>
>>
>>
>>
>> Has anyone had problems using the SmtpMail capability in .NET? We're
>trying
>> to us it, it gives no error message, but also doesn't send the message.
>
>---
>* Fast, Full-Featured Microsoft=AE Excel Web Reports & Charts!
>A breakthrough in high performance Web application development, SoftArtisa
ns
>ExcelWriter 1.1 supports native Excel charting, image insertion, and
>advanced functions & formatting. One click generates presentation-quality
>Excel spreadsheets-and ExcelWriter performs over 100 times faster than the
>Excel Object. Several editions, including ExcelWriterFREE, are available.
>URL:<http://adtracking.wrox.com/track.asp?x=3Dp2p%2Fe%2Fd%26w%2Fsoftart&ur
l=3Dhttp://www.softartisans.com/softartisans/excelwriter.html>
>
>
--
* ----------------------------------------- *
* Steve Schofield
* steve@a...
*
* Webmaster
* http://www.aspfree.com
* ----------------------------------------- *
--
Message #6 by John Mandia <John.Mandia@X...> on Mon, 21 May 2001 17:19:12 +0100
|
|
Hi People,
Here's a mock-up employee nomination form I did that allows someone to
nominate an employee by e-mail (Please note that some of the code may be
changed as we have a security package checking e-mail that comes in and
out):
<html>
<head>
<title>Employee Nomination</title>
<%@ Import Namespace="System.Web.Util" %>
<XCRIPT LANGUAGE="VB" RUNAT=SERVER ID=Xcript1>
Sub btnSubmit_OnClick(Obj as Object, E as EventArgs)
If Page.IsValid Then
Dim MyMessage as New MailMessage
MyMessage.To = "john.mandia@c..."
MyMessage.From = "employee@c..."
MyMessage.Subject = "This is an employee vote from: " &
employee.Text
MyMessage.Body = "The following employee has been nominated:
" & nominated.Text & ". The person who voted him was: " & employee.Text
SmtpMail.Send(MyMessage)
Message.Text = "Thank you " & employee.Text & " for
nominating " & nominated.Text & "!"
End If
End Sub
</XCRIPT>
</head>
<body>
<center>
<H3><font face="Arial, Helvetica, sans-serif">Employee Nomination
Form</font></H3>
</center>
<form method="post" name="nomination" action="index.aspx" runat="server">
<table align="center" border="0">
<tr>
<td><font face="Arial, Helvetica, sans-serif">Employee
Name:</font></td>
<td><font face="Arial, Helvetica, sans-serif"><asp:Textboxid="nominated" size="30" value="" runat="server"
/></font></td>
<td><font face="Arial, Helvetica,sans-serif"><asp:RequiredFieldValidator runat="server"
id="reqnominee"ControlToValidate="nominated" ErrorMessage = "You must nominate someone"display="Dynamic"
/></font></td>
</tr>
<tr>
<td><font face="Arial, Helvetica, sans-serif">Your Name:</font></td>
<td><font face="Arial, Helvetica, sans-serif"><asp:Textboxid="employee" size="30" value="" runat="server"
/></font></td>
<td><font face="Arial, Helvetica,sans-serif"><asp:RequiredFieldValidator runat="server"
id="reqemployee"ControlToValidate="employee" ErrorMessage = "You must provide your name"display="Dynamic"
/></font></td>
</tr>
<tr>
<td> </td>
<td><font face="Arial, Helvetica, sans-serif"><asp:Buttontype="submit" name="btnSubmit"
Xnclick="btnSubmit_XnClick" text="Nominate anEmployee" runat="server"/></font></td>
<td> </td>
</tr>
</table>
<font face="Arial, Helvetica, sans-serif"><br />
</font>
<p align="center"><font face="Arial, Helvetica, sans-serif"><asp:Labelid="Message" runat="server"
/></font></p>
</form>
</body>
</html>
If you wish to check and see if you code is working look in the mailroot
folder in Inetpub to see if it has been created. If it has then it is an
SMTP problem rather than .Net problem.
I hope this helps!
John Mandia
Internet & E-Commerce Developer
xaman
Alliance House
49-51 East Road
London N1 6AH
T 0870 749 9252
F 0870 749 9290
M 07712 932 731
E John.Mandia@x...
W www.xaman.com
This e-mail including any attachments is confidential and may be
legally privileged. If you have received it in error please advise the
sender immediately by return email and then delete it from your
system.
The unauthorised use, distribution, copying or alteration of this
email is strictly forbidden. If you need assistance please contact the
help desk on (+44)(0)870 8704820
|
|
 |