JMAail

inkdot

Guppy
I want to use Jmail in an asp page but not sure how. I did the codes but when i run it give me Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid ProgID.

What should I do?

<%@ Language=VBScript %>
<% Response.Buffer=True %>
<!--#include file="\setting.asp" -->
<%
Dim Conn
OpenConnection Conn
Dim sqlQuery
Dim rsQuery
Dim url

Set rsQuery = Server.CreateObject("ADODB.Recordset")

'EmailSubject=Request.form("EmailSubject")
'EmailText=Request.Form("EmailText")
sqlQuery=""
sqlQuery="SELECT distinct email, cust_id from m_Customer Where Len(email)>0"
rsQuery.Open sqlQuery,Conn
rsQuery.MoveFirst

session("id")= rsQuery("cust_id")

While Not rsQuery.EOF

Dim JMail ' As Jmail Object

Set JMail = Server.CreateObject("JMail.SMTPMail")
On Error Resume Next

strsender="[email protected]"
strreceiver = rsQuery("email")
JMail.ServerAddress = "168.9.1.226"
JMail.ContentType = "text/html"
JMail.Subject = "Test"
JMail.body = "How are you"
JMail.Sender = strsender
JMail.AddRecipient strreceiver


JMail.Priority=1


JMail.Execute

JMail.ClearRecipients

If err<>0 then
Response.Write ("Error:" &err.description)
End if

wend

Response.Redirect "abc.asp"

CloseConnection Conn

%>
 
Looking through some other posts here and elsewhere, my guess would be that Jmail is not properly installed on the web server. If you haven't already, you should open up a trouble ticket regarding this in your control panel.
 
From http://www.jodohost.com/help.asp#SupportTicketSystem
Support Ticket System:
This is the most efficient way to contact us. Emergency tickets are generally answered within 5-15 minutes.Our support staff continuously looks for new tickets and answer them 24x7x365 days basis. When you open a new ticket, you will get a ticket confirmation number. If later you contact us by Live Chat or by phone, please keep this number handy.

To send us a support ticket, login to your Hosting Control Panel and select New Trouble Ticket from following links:
Shared Hosting Customers: http://cp.jodoshared.com:8080/
Reseller Hosting Customers: http://cp.m****here.biz:8080/
===================
If Jmail is indeed not installed properly on the web server, a server administrator would have to do it for you.
 
Back
Top