all groups > iis smtp nntp > august 2007 >
You're in the

iis smtp nntp

group:

send mail error in Vista


send mail error in Vista Mike
8/24/2007 6:42:16 AM
iis smtp nntp:
Hi,
I just upgraded my computer to Vista and was using the below script to send
mail through my smtp in XP but this doesn't want to work with Vista. Is there
a place in Vista to set up what server to relay from?

Set objEmail = CreateObject("CDO.Message")

objEmail.From = "me"
objEmail.To = "someone"
objEmail.Subject = ""
objEmail.Textbody = "Thanks,"&vbCrLf&_
"Mike"
objEmail.Send


Re: send mail error in Vista Mike
8/24/2007 8:18:15 AM
Yes there is a smtp under IIS in Vista! Please check again.

[quoted text, click to view]
Re: send mail error in Vista Sanford Whiteman
8/24/2007 11:08:34 AM
[quoted text, click to view]

CDOSYS always lets you set up the server name in your Configuration stru=
ct.

("http://schemas.microsoft.com/cdo/configuration/sendusing") =3D 2

("http://schemas.microsoft.com/cdo/configuration/smtpserver") =3D =

"smtp.example.com"

("http://schemas.microsoft.com/cdo/configuration/smtpserverport") =3D 25=


There is no IIS SMTP in Vista, AFAIK.

Re: send mail error in Vista Steve Schofield
8/24/2007 5:55:09 PM

The Vista client includes a method to forward application emails to a
smarthost, there is not SMTP server.

Here is a blog I did that has some links to 3rd party SMTP servers you can
load on vista.
http://weblogs.asp.net/steveschofield/archive/2006/12/19/iis7-post-23-vista-and-smtp-server-where-is-it.aspx

--

Steve Schofield
Windows Server MVP - IIS
http://weblogs.asp.net/steveschofield


[quoted text, click to view]
Re: send mail error in Vista Sanford Whiteman
8/25/2007 12:00:00 AM
[quoted text, click to view]

Not in my spankin' Vista Business machine (release version,
obviously), there isn't. As Steve confirms, there is no component
installation option for an SMTP service, nor any file on the install
CD matching 'smtp*'. The removal has been documented profusely
elsewhere. Granted, I've hardly used my Vista box, so maybe there's a
hack still TBD, but it's certainly not there by design....

Sadly, this is somewhat appropriate given the discontinuing of the
event sink architecture and other big changes to server OSs. A pain
for developers both ways, though. IIS SMTP 5/6 compatibility on Vista
would be helpful for those supporting soon-to-be-legacy apps. It would
be great to have switchability between 5/6 and 7 modes for SMTPSVC
add-on developers. (If you only need generic SMTP, you can use one of
the entry-level SMTP servers out there.)

Re: send mail error in Vista Mike
8/27/2007 10:42:04 AM
so the smtp under IIS is used for what? I can send a screenshot of what I see.

[quoted text, click to view]
Re: send mail error in Vista Sanford Whiteman
8/27/2007 7:32:52 PM
[quoted text, click to view]

Can you send e-mail through said service?

Re: send mail error in Vista Steve Schofield
8/28/2007 12:32:59 AM
In Vista, the only thing this can do is relay emails generated by
applications. As it is described in Vista's IIS Manager. "Use this feature
to specify the email address and delivery options to use when you send email
from a web application."

If you install a 3rd party SMTP server, you can define it localhost. It
also provides an option to put messages into a pickup folder. I've not
tested this to see if you can define a UNC path, it would be worth testing
if you have an IIS SMTP server on your network.

--

Steve Schofield
Windows Server MVP - IIS
http://weblogs.asp.net/steveschofield

[quoted text, click to view]
Re: send mail error in Vista Mike
8/28/2007 4:50:04 AM
If it is used to send emails through applications, then why can't I send
through my vbscript? I'm using the CreateObject("CDO.Message") and I am
relaying through a smtp service on our server?



[quoted text, click to view]
Re: send mail error in Vista Mike
8/28/2007 6:34:02 AM
ok, I understand now, I added the following attributes and it worked, thanks
everyone for your help!

objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp server"

objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

objEmail.Configuration.Fields.Update


[quoted text, click to view]
Re: send mail error in Vista Steve Schofield
8/28/2007 7:59:04 AM
CDO assumes localhost unless otherwise specified. Are you filling in the
smtpserver attribute? If so, you can try a basic telnet test from your
vista machine to the remote box to ensure you have connectivity.

'Look at the last example
http://www.w3schools.com/asp/asp_send_email.asp

--

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]
Re: send mail error in Vista Steve Schofield
8/28/2007 10:44:58 PM
Excellent. Thanks for letting us know your problem is resolved.

--

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]
AddThis Social Bookmark Button