|
 |
aspx thread: ASP and sending email through SMTP MDaemon Mail Server
Message #1 by "Kevin Smith" <kevin@n...> on Sat, 31 Aug 2002 21:42:31
|
|
Hi All,
From what I have read, you cannot code an ASP page (not .NET) to send
email through an SMTP mailserver, is this correct?
However, if it is possible, does anyone have any code I can use to send
SMTP mail. I have MDaemon 6.0.5 running on my Windows 2000 server, which
also runs the IIS/ASP webserver. Is there any generic code to send email
via any SMTP server?
I use PHP and Perl heavily and this is the easiest thing to do, can ASP
not do this?
Many thanks,
Kevin Smith
Message #2 by "Carl E. Olsen" <carl-olsen@m...> on Sat, 31 Aug 2002 17:00:04 -0500
|
|
Here's the code for ASP.
<%
Dim MyMail, MyBody
MyBody = "This is my message"
Set MyMail = Server.CreateObject("CDONTS.NewMail")
MyMail.From = "myemailaddress@s..."
MyMail.To = "somebodysemail@a..."
MyMail.Subject = "Here's a message"
MyMail.Body = Body
MyMail.Send
Set MyMail = nothing
%>
> -----Original Message-----
> From: Kevin Smith [mailto:kevin@n...]
> Sent: Saturday, August 31, 2002 9:43 PM
> To: ASP+
> Subject: [aspx] ASP and sending email through SMTP MDaemon Mail Server
>
> Hi All,
>
> From what I have read, you cannot code an ASP page (not .NET) to send
> email through an SMTP mailserver, is this correct?
>
> However, if it is possible, does anyone have any code I can use to
send
> SMTP mail. I have MDaemon 6.0.5 running on my Windows 2000 server,
which
> also runs the IIS/ASP webserver. Is there any generic code to send
email
> via any SMTP server?
>
> I use PHP and Perl heavily and this is the easiest thing to do, can
ASP
> not do this?
>
> Many thanks,
>
> Kevin Smith
> ---
>
> ASP.NET 1.0 Namespace Reference with C#
> http://www.wrox.com/acon11.asp?ISBN=1861007442
>
> ASP.NET 1.0 Namespace Reference with VB.NET
> http://www.wrox.com/acon11.asp?ISBN=1861007450
>
> These books are a complete reference to the ASP.NET namespaces
> for developers who are already familiar with using ASP.NET.
> There is no trivial introductory material or useless .NET
> hype and the presentation of the namespaces, in an easy-to use
> alphabetical order ensures a user-friendly reference format.
> We provide in-depth coverage of all the major ASP.NET classes,
> giving you those real-world tips that the documentation doesn't
> offer, and demonstrating complex techniques with simple
> examples.
>
> ---
|
|
 |