Hi Nick,
For your purposes as a developer, you want to verify your code works when
sending emails. To show you this works on Vista, I posted 2 code samples
and the email headers from an ASP and ASP.NET 2.0 webpage.
Sandy is correct, the IIS SMTPSvc is what this newsgroup supports. Also,
Vista does not have an SMTP service like they did in 2000, XP. Vista does
support the ability to have your application forward emails to a remote
host. That is the one 'feature' in the IIS manager, this is NOT an SMTP
server. I have used both SM and FreeSMTP service successfully on my Vista
machine. The FreeSMTP one is slick because it runs interactively. Meaning
when it's showing in the task bar, it works.
http://softstack.com/freesmtp.html To verify SMTP is running, type netstat -an -p tcp. Look for 0.0.0.0:25.
This means all local ip's will handle communication on that port.
I'm not sure what else to suggest. Maybe your ISP is blocking port 25. We
understand your frustration, all we've tried to do is provide you
alternatives so you can test your code, which in the end is what I think you
want. Hope this helps.
Here is my examples.
------------------
ASP.NET 2.0 page
------------------
<html>
<body>
<%
'create the mail message
Dim mail As New System.Net.Mail.MailMessage()
'set the addresses
mail.From = New System.Net.Mail.MailAddress("steve@example.com")
mail.To.Add("steve@example.com")
'set the content
mail.Subject = "This is an email"
mail.Body = "this is the body content of the email."
'send the message
Dim smtp As New System.Net.Mail.SmtpClient("127.0.0.1")
smtp.Send(mail)
%>
</body>
</html>
------------------
ASP.NET 2.0 page email headers.
------------------
Notice the 'Received' line where it says received from pc1.aspdot.net to
mail.example.com, this is my local Vista box send to an external mail
server. The only thing I changed was the 'example' word. My domain is
'iislogs'. I don't need anymore spam harvesters getting my real email
address.
Return-Path: <steve@example.com>
Received: from pc1.aspdot.net [192.168.0.90] by mail.example.com with SMTP;
Fri, 7 Sep 2007 07:31:57 -0400
mime-version: 1.0
from: steve@example.com
to: steve@example.com
date: 7 Sep 2007 07:31:57 -0400
subject: This is an email
content-type: text/plain; charset=us-ascii
content-transfer-encoding: quoted-printable
this is the body content of the email.
------------------
Classic ASP example
-------------------
<html>
<body>
<%
sch = "
http://schemas.microsoft.com/cdo/configuration/" Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(sch & "sendusing") = 2 ' cdoSendUsingPort
.Item(sch & "smtpserver") = "127.0.0.1"
.update
End With
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "steve@example.com"
.To = "steve@example.com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
response.write "Sent"
%>
</body>
</html>
------------------
Classic CDOSYS email headers using cdosys
------------------
Again, notice the 'Received' line where it says received from pc1.aspdot.net
to mail.example.com, this is my local Vista box sending to an external mail
server.
Return-Path: <steve@example.com>
Received: from pc1.aspdot.net [192.168.0.90] by mail.example.com with SMTP;
Fri, 7 Sep 2007 07:26:21 -0400
thread-index: AcfxQerDubACV5L/Q2aEgBOgiPw2rQ==
Thread-Topic: Sample CDO Message
From: <steve@example.com>
To: <steve@example.com>
Subject: Sample CDO Message
Date: Fri, 7 Sep 2007 07:26:21 -0400
Message-ID: <D7FBFDDB5A87496F9A7645E782A144DE@aspdot.net>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16480
This is a test for CDO.message
Hope this helps.
Best regards,
Steve Schofield
Windows Server MVP - IIS
http://weblogs.asp.net/steveschofield http://www.IISLogs.com Log archival solution.
Install, Configure, Forget
[quoted text, click to view] "Nick" <nospam@msn.com> wrote in message
news:3E598383-2FEB-47E7-8262-F2250D7B1DC9@microsoft.com...
> Steve,
>
> I have downloaded and installed 4 or 5 SMTP email software products on my
> Vista Home Premium. Some of these have a client program and some don't.
> SmarterMail is the only one that sent an email out thought the web client.
>
> I followed every lead that I could for sending email on Vista including
> turning the firewall off and turning off the User Account Control. I have
> changed every configuration setting I could in SmarterMail and then viewed
> every event log.
>
> I have posted questions on this forum as well as the SmarterMail forum.
> The fact is that I have never even got a response from someone that can
> actually tell me if SmarterMail or another product works on Vista Home
> Premium. I am not interested in hearing from someone that has not actually
> got SMTP working on Vista Home Premium.
>
> "Steve Schofield" <steve@iislogs.com> wrote in message
> news:OSz4U417HHA.1212@TK2MSFTNGP05.phx.gbl...
>> Sanford. FYI. If he is logging into Smartermails web interface as a
>> user, and sending a message from the Web interface using this account, I
>> would think smartermail is working.
>>
>> That said, I agree he should also test with Outlook Express, Thunderbird
>> or some other mail 'client' so you are sure emails are routing through
>> your Smartermail instance. The logs can tell you that for sure. Look in
>> the Logs folder, delivery.log file will contain the appropriate
>> information. Once you get this far, you can then write code to send
>> emails using your favorite 3rd party component or the built-in ones with
>> .NET or CDOSYS.
>>
>> I've been the one who mentioned Smartermail on occasion, this is not your
>> only option. There are other ones available. It is a shame MS does not
>> support IIS SMTP on Vista, the IIS SMTP was easy to configure from a
>> dev's perspective, it helped hide the configuration portion. But, from
>> MS perspective, I can see client OS's probably don't need an SMTP
>> 'server' on there.
>>
>> --
>>
>> Steve Schofield
>> Windows Server MVP - IIS
>>
http://weblogs.asp.net/steveschofield >>
>>
>> "Sanford Whiteman" <swhitemanlistens-software@cypressintegrated.com>
>> wrote in message news:op.tx1t63mx6c17zw@gw02...
>>>> I have sent mail to my msn account from the SmarterMail web interface,
>>>> therefore I know SmarterMail is working.
>>>