Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jmail problem

Status
Not open for further replies.

woodywyatt

Vendor
Jul 22, 2001
2
ES
I've tried to add the highlighted code to this Jmail script to send a carbon copy but it aint working! Any ideas what's wrong with it??

<%
Name = Request.Form(&quot;name&quot;)
SenderEmail = Request.Form(&quot;email&quot;)
Subject = &quot;Regarding &quot; & Request.Form(&quot;subject&quot;)
Recipient = Request.Form(&quot;recipient&quot;)
Body = Request.Form(&quot;body&quot;)
CCRecipient = Request.Form(&quot;copy&quot;)
Set JMail = Server.CreateObject(&quot;JMail.SMTPMail&quot;)

JMail.ServerAddress = &quot;smtp.myserver.com&quot;

JMail.Sender = Senderemail
JMail.Subject = Subject

JMail.AddRecipient Recipient

JMail.AddCCRecipient CCRecipient

JMail.Body = Body

JMail.Priority = 3

JMail.AddHeader &quot;Originating-IP&quot;, Request.ServerVariables(&quot;REMOTE_ADDR&quot;)
JMail.Logging = True
JMail.Execute

%>
 
What is the error message you get? Does the JVM find the class? (I think it's J2EE and so probably not in the default J2SE JVM)...

If this is bullocks to you, post again...
allow thyself to be the spark that lights the fire
haslo@haslo.ch - www.haslo.ch​
 
The error message I get is as follows
Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'JMail.AddCCRecipient'

/sendmail3.asp, line 24
 
Oh - is JMail not Java and can only be used in JSP pages ;-)?

ASP supports VBScript (no Java, really :)), and as far as I'm informed there you'll have to Server.CreateObject(&quot;CDONTS.NewMail&quot;) or something - I found the following:


Maybe it helps you out...
allow thyself to be the spark that lights the fire
haslo@haslo.ch - www.haslo.ch​
 
Oups, sorry, completely wrong. Have a look at the following, found at the JMail site after having searched for 5 mins there (if the JMail you said is the same JMail I found, otherwise please correct me):

allow thyself to be the spark that lights the fire
haslo@haslo.ch - www.haslo.ch​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top