Using MEWeb in a forum

Discussion for developers using MailEnable.
Post Reply
Fury
Posts: 14
Joined: Wed Jul 03, 2002 3:55 am

Using MEWeb in a forum

Post by Fury »

I am using a forum program on my site (Snitz) and would like to enable the e-mail features of that application. Unfortunately ME is not one of their supported e-mail components. They do support Chili!Mail, aspmail, Jmail, CDONTS, and a bunch of others. The code in your resolve.asp file looks similar to some of theirs except that yours has a lot more fields.

Can you give me the code that I would need to get started trying to get this to work in Snitz? Here's a sample of what their code looks like for some other components:

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

case "chilicdonts"
Set objNewMail = Server.CreateObject ("CDONTS.NewMail")
on error resume next '## Ignore Errors
objNewMail.Host = strMailServer
objNewMail.To = strRecipients
objNewMail.From = strSender
objNewMail.Subject = strSubject
objNewMail.Body = strMessage
objNewMail.Send

Any help you could give to at least get me started would be greatly appreciated.

Thanks.

Admin
Site Admin
Posts: 1127
Joined: Mon Jun 10, 2002 6:31 pm
Location: Melbourne, Victoria, Australia

Post by Admin »

Ignore the code from the webmail source. The webmail uses a custom component that is built for webmail, and can be difficult to use elsewhere. You can use aspmail and JMail if you have these, and the Professional version of MailEnable has it's own component (equivalent to JMail/aspmail/etc.). The latest version of the Pro includes documentation on all the methods and properties, but I have included some examples below. Make sure that when you install the Professional package, that you selected the ASP send mail component (installed by default).

<%
Dim oMail
Set oMail = server.CreateObject("MEMail.Message")
oMail.MailFrom = "peter@mailenable.com"
oMail.MailFromDisplayName = "Test Account"
oMail.ContentType = "text/html;"
oMail.MailTo = "peter@mailenable.com"
oMail.Subject = "Welcome to our service"
oMail.MessageBody = "<html><body><h1>Hello there,<BR>Welcome to our
new service.</h1></body></html>"
oMail.SendMessage
%>

Sending an email with an attachment:
<%
Dim oMail
set oMail = server.CreateObject("MEMail.Message")
oMail.MailFrom = "peter@mailenable.com"
oMail.MailFromDisplayName = "Update Account"
oMail.MailTo = "customer@mailenable.com"
oMail.Attachmentfilename = "c:\documents\updateinfo_14_4.zip"
oMail.Attachmentname = "updateinfo.zip"
oMail.Subject = "New update information"
oMail.MessageBody="Find the new info attached.”
oMail.SendMessage
%>

so finally, adjusting for your page:

Set objNewMail = Server.CreateObject("MEMail.Message")
objNewMail.Server = strMailServer
objNewMail.MailTo= strRecipients
objNewMail.MailFrom= strSender
objNewMail.Subject = strSubject
objNewMail.MessageBody= strMessage
objNewMail.SendMessage

I'm not sure how your page formats strRecipients string. MailEnable can have multiple addresses if you use ; as a delimiter.
Last edited by Admin on Sat Jul 13, 2002 3:05 pm, edited 1 time in total.

Fury
Posts: 14
Joined: Wed Jul 03, 2002 3:55 am

Post by Fury »

You're the best! I'll try it out later today and let you know how it goes.

I looked for the documentation you referred to and there wasn't anything in the doc folder that had the detail I needed. Is that where it is or is it a seperate download?

Fury
Posts: 14
Joined: Wed Jul 03, 2002 3:55 am

Post by Fury »

Finally got a chance to try it. All I had to do was replace the Chili mail code with the code you provided and BINGO! It worked with no tweaking on my part. Thanks a lot!

kruger@sanarchitect.net

i look at snitz after seeing this post and

Post by kruger@sanarchitect.net »

i would like to know how to correct the code
where do i exactly put it etc...
or if you could email me the updated files that would be cool too
thanks

Fury
Posts: 14
Joined: Wed Jul 03, 2002 3:55 am

Post by Fury »

It depends on the application you are using for your forum. I am using Snitz Forum. There are 2 files that you need to update. What forum are you using?

kruger@sanarchitect.net

what forum?

Post by kruger@sanarchitect.net »

Im not sure i understand the question..
I downloaded snitz forum
what do you mean by which forum?
email me directly and ill be sure to reply quicker

Fury
Posts: 14
Joined: Wed Jul 03, 2002 3:55 am

Post by Fury »

Oh, I didn't know you downloaded Snitz.

All you need to do is add the code above (after the "so finaly...") to the first select case statement in inc_mail.asp

Then, edit admin_config_email.asp so it will show as an option in the mail admin section of your site.

( Ignore the smilies. This forum is turning the 8 into a smile)
Dim theComponent(13)
Dim theComponentName(13)
Dim theComponentValue(13)

'## the components
theComponent(0) = "SMTPsvg.Mailer"
theComponent(1) = "Persits.MailSender"
theComponent(2) = "SMTPsvg.Mailer"
theComponent(3) = "CDONTS.NewMail"
theComponent(4) = "CDONTS.NewMail"
theComponent(5) = "dkQmail.Qmail"
theComponent(6) = "Geocel.Mailer"
theComponent(7) = "iismail.iismail.1"
theComponent(8) = "Jmail.smtpmail"
theComponent(9) = "ASPMail.ASPMailCtrl.1"
theComponent(10) = "ocxQmail.ocxQmailCtrl.1"
theComponent(11) = "SoftArtisans.SMTPMail"
theComponent(12) = "SmtpMail.SmtpMail.1"
theComponent(13) = "MEWebMail.MailMessage"

'## the name of the components
theComponentName(0) = "ASPMail"
theComponentName(1) = "ASPEMail"
theComponentName(2) = "ASPQMail"
theComponentName(3) = "CDONTS"
theComponentName(4) = "Chili!Mail"
theComponentName(5) = "dkQMail"
theComponentName(6) = "GeoCel"
theComponentName(7) = "IISMail"
theComponentName(8) = "JMail"
theComponentName(9) = "OCXMail"
theComponentName(10) = "OCXQMail"
theComponentName(11) = "SA-Smtp Mail"
theComponentName(12) = "SMTP"
theComponentName(13) = "MailEnable"

'## the value of the components
theComponentValue(0) = "aspmail"
theComponentValue(1) = "aspemail"
theComponentValue(2) = "aspqmail"
theComponentValue(3) = "cdonts"
theComponentValue(4) = "chilicdonts"
theComponentValue(5) = "dkqmail"
theComponentValue(6) = "geocel"
theComponentValue(7) = "iismail"
theComponentValue(8) = "jmail"
theComponentValue(9) = "ocxmail"
theComponentValue(10) = "ocxqmail"
theComponentValue(11) = "sasmtpmail"
theComponentValue(12) = "smtp"
theComponentValue(13) = "mailenable"

That should do it. Now all you need to do is go into your snitz admin and configure mailenable as your e-mail component.

bcupps
Posts: 47
Joined: Mon Jul 01, 2002 1:28 pm
Location: Alabama, USA

Post by bcupps »

Ok, I'm using Snitz Version 3.4.02 (the latest) & it's still not sending mail.
Instead of 14 objects in the array (13), there are 20 objects (19). I added the code for MailEnable & I was able to see & select MailEnable in the Email config for Snitz. But when I registered a new user, I did not get the email. I don't see any traffic in the MailEnable logs either (new server that isn't "live" yet so there is no traffic except for my testing).
Any ideas?

bcupps
Posts: 47
Joined: Mon Jul 01, 2002 1:28 pm
Location: Alabama, USA

I'm an idiot...

Post by bcupps »

Ok, I'll admit it. I'm an idiot. It works now. I had forgotten to allow localhost to relay. Sheesh. :roll:

pondshus2
Posts: 5
Joined: Wed Oct 30, 2013 7:26 am
Location: Muscat, Oman

Re: Using MEWeb in a forum

Post by pondshus2 »

Well, this is a bit unfortunate for me as I was actually searching for something else. Well this is not embedded and I am not good at this one. So I will seek some help from my friends to help you out.







---------------------------------
DAVID JOHN
https://www.sarcoonline.com
Last edited by pondshus2 on Fri Feb 18, 2022 12:24 pm, edited 1 time in total.
http://bcc.om/

evali68158
Posts: 2
Joined: Thu Jan 23, 2014 6:29 am

Re: Using MEWeb in a forum

Post by evali68158 »

The http://www.zrhprint.com/ is a traditional way to print the things,you can have a look at.

Post Reply