Add Hmail Server to mail components - Posted (5790 Views)
Starting Member
Art
Posts: 32
32
Hello all!
I am running Hmail Server on WinServ2003. One forum (set up years ago) is using (I believe) cdosys to send messages. Another forum needs mail service now, and I would like to add Hmailserver to the list. Should I try to get cdosys to send the mail for this forum (with which I am possibly having issues), or can I add code for hmailserver to do the job?
I'll start with some sample code from inc_mail:
Code:
case "jmail"
Set objNewMail = Server.CreateObject("Jmail.smtpmail")
objNewMail.ServerAddress = strMailServer
objNewMail.AddRecipient strRecipients
objNewMail.Sender = strSender
objNewMail.Subject = strSubject
objNewMail.body = strMessage
objNewMail.priority = 3
on error resume next '## Ignore Errors
objNewMail.execute
If Err <> 0 Then
Err_Msg = Err_Msg & "<li>Your request was not sent due to the following error: " & Err.Description & "</li>"
End if

Now an example components list from admin_config_email (with the string HmailServer instead of "jmail" or the like:
Code:
	'## the components

theComponent(13) = "HmailServer"


'## the name of the components

theComponentName(13) = "HmailServer"



'## the value of the components


theComponentValue(13) = "HmailServer"

Can anyone point me in the right direction for altering this code to fulfill the requirements for hmailserver, as well as identifying other bits of code that may be involved?
http:\\StarFrontiers.org
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Starting Member
Art
Posts: 32
32
W00T! Davio got it! Permissions issue (unknown by me as to exactly what).
http:\\StarFrontiers.org
Posted
Development Team Member
Davio
Posts: 12217
12217
I did the same thing in the link I posted before on the hmail forum. Opening the DCOM Configuration window, searching for hmailserver component, right clicking to open properties, security tab, and giving the IUSR_ account permission to launch the component.
Posted
Starting Member
Art
Posts: 32
32
Oh, I thought I gave it rights. I guess all I did was give it read/write, not execute. DOH!! Of course it has to have execute rights....pretty dumb on my part.
http:\\StarFrontiers.org
Posted
Development Team Member
Davio
Posts: 12217
12217
Maybe you were in the wrong place.
You go to Start >> Run.. >> type in "dcomcnfg" and press enter
OR
My Computer >> Control Panel >> Administrative Tools >> Component Services

In the window, as shown below, double click on Component Services, Computers, My Computer. Click on DCOM Config and right click on hMailServer, to get to Properties. [IMG]http://img844.imageshack.us/img844/3848/services.png[/IMG]

In the Properties window, click the Security tab, then the Edit button in the Launch and Activation Permissions section as shown below. I gave the IUSR_ account (the internet guest user) permission to launch locally. [IMG]http://img26.imageshack.us/img26/6230/hmail.png[/IMG]
So not sure where you went to give read/write. hehe Might want to undo it.
Posted
Starting Member
Art
Posts: 32
32

Thought you were talking about here. (example from my workstation)

Traverse/Execute permissions after granting IUSER access.
http:\\StarFrontiers.org
Posted
Development Team Member
Davio
Posts: 12217
12217
Oh so you gave hmail executable read write? :)
Make sure you undo it so we won't open up any security holes any where. smile
Posted
Starting Member
Art
Posts: 32
32
Right-o on my way...
http:\\StarFrontiers.org
You Must enter a message