Using MEWeb in a forum

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

Using MEWeb in a forum

Postby Fury » Fri Jul 12, 2002 5:20 pm

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: 794
Joined: Mon Jun 10, 2002 6:31 pm
Location: Melbourne, Victoria, Australia

Postby Admin » Fri Jul 12, 2002 8:32 pm

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

Postby Fury » Sat Jul 13, 2002 12:58 am

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

Postby Fury » Mon Jul 15, 2002 3:59 pm

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

Postby kruger@sanarchitect.net » Mon Jul 22, 2002 9:41 pm

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

Postby Fury » Wed Jul 24, 2002 1:07 am

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?

Postby kruger@sanarchitect.net » Fri Jul 26, 2002 3:45 pm

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

Postby Fury » Mon Jul 29, 2002 2:41 pm

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

Postby bcupps » Wed Sep 11, 2002 8:57 am

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...

Postby bcupps » Thu Sep 12, 2002 11:45 pm

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
Contact:

Re: Using MEWeb in a forum

Postby pondshus2 » Fri Nov 22, 2013 10:59 am

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

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

Re: Using MEWeb in a forum

Postby evali68158 » Tue Feb 25, 2014 10:19 am

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

Who is online

Users browsing this forum: No registered users and 2 guests