Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

SMTP for Windows 8

Posted on 2014-03-25
7
625 Views
Last Modified: 2014-03-26
As it turns out windows 8 (IIS7) does not include SMTP. So I installed hmail server which I have installed in another computer.

The other install works fine and send emails, but on this computer I still get the following error on any page that is supposed to send emails:

error '8004020f'

What should I check for ?
0
Comment
Question by:amucinobluedot
  • 4
  • 2
7 Comments
 
LVL 34

Assisted Solution

by:Dan Craciun
Dan Craciun earned 333 total points
ID: 39955170
Have you tried sending mails with authentication? Never tried to use hmail server as an open relay so don't know if it supports that.

See here: http://classicasp.aspfaq.com/email/how-do-i-send-e-mail-with-cdo.html#auth

HTH,
Dan
0
 

Author Comment

by:amucinobluedot
ID: 39955172
Has to be without authentication
0
 
LVL 34

Assisted Solution

by:Dan Craciun
Dan Craciun earned 333 total points
ID: 39955179
OK. See if this (not tested by me) guide on setting up hmail as an open relay helps: http://swxben.com/setting-up-an-open-smtp-relay-in-an-intranet-with-hmailserver/
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

Author Comment

by:amucinobluedot
ID: 39955189
Seems this is to use external email addresses. I don't really need any of this. All I want is to set it up to use local server for SMTP, nothing else. No POP, No IMAP server. Just SMTP

I am using 127.0.1.1  as the local address but still get the error. Its installed properly just apparently not well configure or something else is not allowing the hmail server to send emails.
0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 167 total points
ID: 39955651
It would be best if you post the actual code and can dig up the smtp error from the logs.  http://www.hmailserver.com/documentation/v5.4/index.php?page=reference_error_messages_smtp

I have never heard of hmail, but looking up the documentation, there is a com object you can use.  http://www.hmailserver.com/documentation/v5.4/?page=com_example_message_send I found from http://www.hmailserver.com/documentation/v5.4/?page=com_objects

dim oMessage 
Set oMessage = CreateObject("hMailServer.Message")
oMessage.From = "Me"
oMessage.FromAddress = "myaddress@mydomain.com" 
oMessage.Subject = "Hi" 
oMessage.AddRecipient "My friend", "myfriend@myfriend.com"
oMessage.Body = "This is the contents of the email." 
oMessage.Save 

Open in new window

Did you try this? or are you using CDO?  

If you are using cdo, do you have your firewall open for this?  Are you using authentication?  Are you using sendusing pickup instead of port?

I have used this site for reference http://www.paulsadowski.com/wsh/cdo.htm
Const cdoSendUsingPickup = 1 'Send message using the local SMTP service pickup directory. 
Const cdoSendUsingPort = 2 'Send the message using the network (SMTP over the network). 

Const cdoAnonymous = 0 'Do not authenticate
Const cdoBasic = 1 'basic (clear-text) authentication
Const cdoNTLM = 2 'NTLM

Set objMessage = CreateObject("CDO.Message") 
objMessage.Subject = "Example CDO Message" 
objMessage.From = """Me"" <me@my.com>" 
objMessage.To = "test@paulsadowski.com" 
objMessage.TextBody = "This is some sample message text.." & vbCRLF & "It was sent using SMTP authentication."

'==This section provides the configuration information for the remote SMTP server.

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

'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.your.com"

'Type of authentication, NONE, Basic (Base64 encoded), NTLM
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic

'Your UserID on the SMTP server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusername") = "youruserid"

'Your password on the SMTP server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "yourpassword"

'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 

'Use SSL for the connection (False or True)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False

'Connection Timeout in seconds (the maximum time CDO will try to establish a connection to the SMTP server)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60

objMessage.Configuration.Fields.Update

'==End remote SMTP server configuration section==

objMessage.Send

Open in new window


If hmail proves to be too hard... You can use cdo against http://mandrill.com/ and you get 11,000 emails a month for free.  This is one of the third party smtp services I use.  This way you can use the same code in test as you do production.
0
 

Author Comment

by:amucinobluedot
ID: 39955841
I actually tried a different product and now works fine thanks to all
0
 

Author Closing Comment

by:amucinobluedot
ID: 39955842
:)
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question