sending mail on windows server 2003 using jmail component
sending mail on windows server 2003 using jmail component
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
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
-
- Posts: 36
- Joined: Mon Nov 03, 2003 9:41 pm
- Contact:
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
HowTo install CDONTS
otherwise you have to use CDOSYS
Jake
-
- Posts: 42
- Joined: Sat Sep 06, 2003 5:47 pm
Jmail
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 . 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
Thank you for all your help
Pamanas
-
- Posts: 42
- Joined: Sat Sep 06, 2003 5:47 pm
Error
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
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
Jmail
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
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
CDONTS, CDOSYS, or OMAIL on Win2003?
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
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
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
%>
Chris
-
- Posts: 42
- Joined: Sat Sep 06, 2003 5:47 pm
Cdonts
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
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