Solved

SMTP for Windows 8

Posted on 2014-03-25
7
627 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 35

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 35

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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
As cyber crime continues to grow in both numbers and sophistication, a troubling trend of optimization has emerged over the last year.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…

713 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