J-ASP JavaMail Objects


J-ASP JavaMail allows you to send/receive e-mail using the standard SMTP/POP3 protocol
in Java. Features include:

  1. SMTP (sending) Messages
  2. POP3 (reveiving) Messages
  3. Multiple File Attachments
  4. US Ascii and ISO-8859-1 character sets
  5. Special Header Support  
  6. Multiple concurrent users

Requirements:

J-ASP JavaMail is based on Sun's java mail API, so please set Sun's mail.jar and activation.jar to the classpath.

J-ASP JavaMail Objects

  1. POP3
  2. Message
  3. Messages
  4. Attachment
  5. Attachments
  6. Recipient
  7. Recipients
  8. Headers
  9. SMTPMail

The following code demonstrates how to use J-ASP JavaMail in VBScript.


	Set Mailer = Server.CreateObject("JASP.javaMail.Message")    
	Set pop3 = Server.CreateObject("JASP.javaMail.Pop3")
	Set smtp = Server.CreateObject("JASP.javaMail.SMTPMail")	
	

J-ASP JavaMail.POP3 supported

Property Supported
Count Yes
Logging Yes
Messages Yes
Size Yes
Method Supported
Connect Yes
DeleteMessages Yes
DeleteSingleMessage Yes
Disconnect Yes
DownloadHeaders Yes
DownloadMessages Yes
DownloadSingleHeader Yes
DownloadUnreadMessages Yes
GetLastUnreadMessage Yes
GetMessageUID Yes

J-ASP JavaMail.Message supported

Property Supported
About Yes
Attachments Yes
Body Yes
Charset Yes
ContentTransferEncoding Yes
ContentType Yes
Date Yes
Encoding Yes
ErrorMessage Yes
From Yes
FromName Yes
Headers Yes
HTMLBody Yes
Logging Yes
MailServerPassWord Yes
MailServerUserName Yes
MimeVersion Yes
Priority Yes
Recipients Yes
RecipientsString Yes
ReplyTo Yes
ReturnReceipt Yes
Silent Yes
Size Yes
Subject Yes
Text Yes
Version Yes
Method Supported
AddAttachment Yes
AddCustomAttachment Yes
AddHeader Yes
AddNativeHeader Yes
AddRecipient Yes
AddRecipientBCC Yes
AddRecipientCC Yes
AddURLAttachment Yes
AppendBodyFromFile Yes
AppendHTML Yes
AppendText Yes
Clear Yes
ClearAttachments Yes
ClearCustomHeaders Yes
ClearRecipients Yes
Close Yes
DecodeHeader Yes
GetMessageBodyFromURL Yes
Send Yes

J-ASP JavaMail.Messages supported

Property Supported
Count Yes
Item Yes
Method Supported
Clear Yes

J-ASP JavaMail.Headers supported

Property Supported
Text Yes
Method Supported
GetHeader Yes

J-ASP JavaMail.Recipient supported

Property Supported
Email Yes
Name Yes
Method Supported
New Yes

J-ASP JavaMail.Recipients supported

Property Supported
Count Yes
Item Yes
Method Supported
Clear Yes

J-ASP JavaMail.Attachment supported

Property Supported
ContentType Yes
Data Yes
isInline Yes
Name Yes
Size Yes
Method Supported
New Yes
SaveToFile Yes

J-ASP JavaMail.Attachments supported

Property Supported
Count Yes
Item Yes
Method Supported
New Yes
Clear Yes