Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 26th, 2004, 02:45 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default What is this error

Hi dears hopes u all fine
I have a problem that I want to recieve mails from my server and for this I am using JMail.POP3 obj. But the problem is that it cannot connect and gives the error that
jmail.POP3 (0x8000FFFF)
This function is not included in this version of jmail.
/mails/mail/check.asp, line 6


while the code is

<%

if request("action") <> "" then
Set pop3 = Server.CreateObject( "JMail.POP3" )

pop3.Connect request("user"), request("password"), request("Server")
end if
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<h1>&nbsp;</h1>
<form action="check.asp" method="post">


  <BR>
  <br>
  <table width="75%">
    <tr>
      <td width="50%" align="right">Login </td>
      <td><input name="user" type="text" id="user" ></td>
    </tr>
    <tr>
      <td width="50%" align="right">Password</td>
      <td><input type="password" name="password" value=""></td>
    </tr>
    <tr>
      <td width="50%" align="right">Server</td>
      <td><input name="Server" type="text" id="Server"> </td>
    </tr>
    <tr>
      <td colspan="2"><center>
          <BR>
          <input name="action" type="submit" value="Check Mail Now">
        </center></td>
    </tr>
  </table>
</form>
</body>
</html>


Love 4 all
__________________
(*_*)

Numan
--------------------------------------------------
It is not important what you get But important is&nbsp;&nbsp;how you got it
 
Old June 26th, 2004, 04:54 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

The features for mail receival is included in the professional version of JMail only. The freely available personal edition does not have these features.

If my memory is correct, they are providing an evaluation version for professional & enterprise editions.
 
Old June 26th, 2004, 04:54 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Did you look at the JMail Web site, and its support department in particular?

It looks like you're trying to use a method that is not supported in the (free) version of JMail.....


Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old June 26th, 2004, 05:02 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

Dear madhukp
 If jmail do not provide this facility then tel me which component I wil use to recieve mail

Love 4 all
 
Old June 26th, 2004, 05:13 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

Jmail component certainly provides mail receival feature. But it is the professional / experienced versions which support these feature.

You may use any of these components.

1) ASP Pop3 (http://www.serverobjects.com/). This has got an evaluation version.

2) zak pop (http://www.zaks.demon.co.uk/code/). This one is free. But long mails and those with attachments are not handled properly. Besides, this component requires the browser to have JVM installed.
 
Old June 28th, 2004, 01:34 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

Dear madhukp these boths are not working properly. I am so much confused and worried about this Please help me

Love 4 all
 
Old June 28th, 2004, 01:42 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Probably you should tell him what "not working properly" means, so as to make him troubleshoot, if the problem is clear to him. Else you will have to wait longer.

_________________________
-Vijay G
Strive for Perfection
 
Old June 28th, 2004, 03:02 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

Here is a sample code for ASP Pop3 component.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
    <title>ASP Pop3 mail receival</title>
</head>

<body>
<%
    Set Mailer = Server.CreateObject("POP3svg.Mailer")
    Mailer.RemoteHost = "mail.myserver.com"
    Mailer.UserName = "[email protected]"
    Mailer.Password = "mypassword"
    Mailer.MailDirectory = "c:\projects\myfolder\"
    Mailer.OpenPop3

    rem We could do multiple retrieves here but this demo only shows the
    rem selected message.


    Mailer.MailDirectory = "c:\projects\myfolder\"
    Mailer.RetrieveToFile 1, "1.txt"
    Mailer.ClosePop3
%>
</body>
</html>
-----------------------------------------------------------
After executing this, please check the file 1.txt from c:\projects\myfolder. This should contain all the mails from the pop account you are checking. (Please do not forget to substitute correct host address, username and password in the above code.)

Are you trying to retrieve IMAP mails ? This is not possible I think. All the components I suggested will fetch only POP mails.

Have luck

Cheers

Madhu.

NB: Please note that the evaluation version of this component will expire today.
 
Old June 28th, 2004, 03:06 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

Sorry, the above code will retrieve only the first mail from pop server. Please go through the help file which comes with asppop3.zip file.
 
Old June 28th, 2004, 03:51 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

Dear Madhukp
the code
Set Mailer = Server.CreateObject("POP3svg.Mailer")
 wil create an error that
Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.
/mail/simplepop3.asp, line 8


Love 4 all





Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
Ch 4: Parse error: syntax error, unexpected T_SL hanizar77 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 23rd, 2008 09:17 PM
[Resolved] Error calling a sp - parameter error snufse .NET Framework 2.0 2 February 12th, 2008 04:46 PM
Parse error: syntax error, unexpected T_STRING ginost7 Beginning PHP 1 November 9th, 2007 02:51 AM
Phile Page error, visual studio error reps BOOK: ASP.NET Website Programming Problem-Design-Solution 0 September 27th, 2003 10:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.