Solved

SMTP for Windows 8

Posted on 2014-03-25
7
612 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
Comment Utility
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
Comment Utility
Has to be without authentication
0
 
LVL 34

Assisted Solution

by:Dan Craciun
Dan Craciun earned 333 total points
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:amucinobluedot
Comment Utility
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
Comment Utility
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
Comment Utility
I actually tried a different product and now works fine thanks to all
0
 

Author Closing Comment

by:amucinobluedot
Comment Utility
:)
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

New-MailboxSearch Powershell Command and step by step approach to Search and Extract Emails form Exchange 2013 Journaling server.
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
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…
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now