sending mail on windows server 2003 using jmail component

Discussion, support and announcements for third party applications that work with MailEnable.
Post Reply

sending mail on windows server 2003 using jmail component

Post by pamanas101 » Thu Jan 29, 2004 7:25 pm


Using ME for ages and find it great but I have a question and I have looked throughout the ME site for an answer.
How do I send and email from a webpage parked on server with ME as the email component using the jmail component? as cdonts don't work on 2003 server.



Posts: 36
Joined: Mon Nov 03, 2003 9:41 pm

Post by DevelopStuff » Thu Jan 29, 2004 8:00 pm

this works.. find the cdonts dll for ISAPI.. and register it properly and then cdonts will work ... :)

HowTo install CDONTS

otherwise you have to use CDOSYS


Posts: 42
Joined: Sat Sep 06, 2003 5:47 pm

Post by my_forum_id » Thu Jan 29, 2004 10:14 pm

You don't have to do anything special to send using JMail, to JMail the fact that you're using MailEnable is irrelevant - all it needs is a valid smtp server specified in the script.



Post by pamanas101 » Thu Jan 29, 2004 10:36 pm


New to all this server stuff


Posts: 4
Joined: Sat Nov 29, 2003 11:34 am


Post by pamanas » Fri Jan 30, 2004 10:30 am

I am in the process of installing cdonts on server 2003 but I do have another question on jmail component. Is there a certain help topic I should look ast as I have installed MEpro as fall as I can tell by the manual and every thing works except when I try and send message via jmail it wont send :cry: . now I will have to try cdonts with another site but I was just wondering should I be setting somepart of ME different?
Thank you for all your help


Posts: 42
Joined: Sat Sep 06, 2003 5:47 pm

Post by my_forum_id » Fri Jan 30, 2004 12:20 pm

What error do you get when attempting to send by jmail ?

Posts: 4
Joined: Sat Nov 29, 2003 11:34 am


Post by pamanas » Sat Jan 31, 2004 12:58 pm

Here is what I use to send email

set msg = Server.CreateOBject( "JMail.Message" )

: msg.Logging = true
: msg.silent = true
: msg.From = ""
: msg.FromName = "Mr Me"
Msg.MailServerUserName = ""
: msg.AddRecipient ""
: msg.Subject = "Query Sent to Him"
message = "Hello You"& VbCrLf & VbCrLf
: msg.Body = message

if not msg.Send("") then
: Response.redirect ("error.asp")

: else
: response.redirect("sent.asp")
: end if

end if

I don't get an error because I redirect it if not sent.
What would I say to show me the error?
Have I not to use a username and password somewhere to let jmail use the server?

Many thanks for your time


Posts: 4
Joined: Sat Nov 29, 2003 11:34 am


Post by pamanas » Sun Feb 08, 2004 4:23 pm

Got it working at last.

Downloaded jmail component ... roductID=5

then went to
and followed there example

works great.

Just thought I'd put this here maybe to help people who are not great at this tech stuff.

My example is
' Declare Variables
Dim objJMail,
' Create instance of JMail Object
Set objJMail = Server.CreateObject("JMail.SMTPMail")
' JMail SMTP on server
objJMail.ServerAddress = ""
' JMail ContentType
objJMail.ContentType = "text/plain"
' Senders email address
objJMail.Sender = ""
' Senders name
objJMail.SenderName= "me"
' Recipients email address
objJMail.AddRecipient ("them@thereemail.wherever")
' Email Priority (3 = Normal)
objJMail.Priority = 3
' Email Title
objJMail.Subject = "Hello"
' Email Body
objJMail.Body = "Hello there"
' Send Email
' Close JMail Object and Destroy it to release memory
Set objJMail = Nothing

Many thanks to ME for this great email server



CDONTS, CDOSYS, or OMAIL on Win2003?

Post by eChris » Sun Feb 08, 2004 11:22 pm

Hello all

Im new to Win2003 and initially have found it a pain that commonly used features such as CDONTS have been discontinued. I read about installing CDONTS but doesn't this cause further hassle? i.e. you need to enable the windows smtp service as well as ME, open another port etc... So i read about the replacement CDOSYS but as with everything Win2003 it looked way complicated to me.. whooosh. So i came back and decided to use the ME COM component MEASP.dll which works ok but I cant find much info about it: ... enable-All

although the code is very simple :)

Code: Select all


Dim oMail
Set oMail = server.CreateObject("MEMail.Message")

oMail.MailFrom = ""
oMail.MailFromDisplayName = "Whatever you like"
oMail.ContentType = "text/html;"
oMail.MailTo = ""
oMail.Subject = "Welcome to our service"
oMail.MessageBody = "Enter email message here, can use variables declared above or from form etc"

So, am I missing a trick by not installing CDONTS or CDOSYS? Can these be configured to use the mailenable SMTP service or am I right to think that the Windows SMTP service will need to be enabled? Would CDONTS provide me with a great deal more than oMail? Thanks for your views,,,


Posts: 42
Joined: Sat Sep 06, 2003 5:47 pm

Post by my_forum_id » Sun Feb 08, 2004 11:58 pm

Running SMTP and mailenable together (and installing cdonts) really isn't hard, just install smtp service go in to it's properties and set it to listen on port 26 - that's it - probably quicker than recoding a load of asp scripts to be honest.

Posts: 4
Joined: Sat Nov 29, 2003 11:34 am


Post by pamanas » Mon Feb 09, 2004 4:22 pm

Got CDONTS workng and it only sends to non local email accounts. I have read through the forums and have found a few places saying to use ME's own component but I was wondering is there anyway to use cdonts to send to all emails? as I have setup windows own smtp on port 29 and ME on port 25 and works great but wont send to local addresses.
You see I have a forum website completely running on cdonts and I dont want to have to try and rewrite the code again to send out usernames passwords and the like.



Post Reply