sending mail on windows server 2003 using jmail component

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

sending mail on windows server 2003 using jmail component

Post by pamanas101 »

Hi

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.

Thanks

Pamanas

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

Post by DevelopStuff »

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

Jake

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

Post by my_forum_id »

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.

pamanas101

Jmail

Post by pamanas101 »

Thanks

New to all this server stuff

Pamanas

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

Jmail

Post by pamanas »

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

Pamanas

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

Post by my_forum_id »

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

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

Error

Post by pamanas »

Here is what I use to send email

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

: msg.Logging = true
: msg.silent = true
: msg.From = "me@mydomain.com"
: msg.FromName = "Mr Me"
Msg.MailServerUserName = "mail.mydomain.com"
: msg.AddRecipient "him@hisdomain.com"
: msg.Subject = "Query Sent to Him"
message = "Hello You"& VbCrLf & VbCrLf
: msg.Body = message




if not msg.Send("mail.mydomain.com") 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

Pamanas

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

Jmail

Post by pamanas »

Got it working at last.

Downloaded jmail component http://www.dimac.net/FreeDownloads/dlst ... roductID=5

then went to
http://www.juicystudio.com/tutorial/asp/jmail.asp
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 = "mail.myserver.com"
' JMail ContentType
objJMail.ContentType = "text/plain"
' Senders email address
objJMail.Sender = "info@emailaddress.com"
' 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
objJMail.Execute()
' Close JMail Object and Destroy it to release memory
objJMail.Close()
Set objJMail = Nothing
%>

Many thanks to ME for this great email server

Pamanas

eChris

CDONTS, CDOSYS, or OMAIL on Win2003?

Post by eChris »

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: http://www.mailenable.com/kb/search.asp ... enable-All

although the code is very simple :)

Code: Select all

<% 

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

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

%>
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,,,

Chris

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

Post by my_forum_id »

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.

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

Cdonts

Post by pamanas »

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.

Thanks

Pamanas

Post Reply