Chilkat Examples

ChilkatHOMEAndroid™AutoItCC#C++Chilkat2-PythonCkPythonClassic ASPDataFlexDelphi DLLGoJavaNode.jsObjective-CPHP ExtensionPerlPowerBuilderPowerShellPureBasicRubySQL ServerSwiftTclUnicode CUnicode C++VB.NETVBScriptVisual Basic 6.0Visual FoxProXojo Plugin

Classic ASP Examples

Web API Categories

ASN.1
AWS KMS
AWS Misc
Amazon EC2
Amazon Glacier
Amazon S3
Amazon S3 (new)
Amazon SES
Amazon SNS
Amazon SQS
Azure Cloud Storage
Azure Key Vault
Azure Service Bus
Azure Table Service
Base64
Bounced Email
Box
CAdES
CSR
CSV
Cert Store
Certificates
Cloud Signature CSC
Code Signing
Compression
DKIM / DomainKey
DNS
DSA
Diffie-Hellman
Digital Signatures
Dropbox
Dynamics CRM
EBICS
ECC
Ed25519
Email Object
Encryption
FTP
FileAccess
Firebase
GMail REST API
GMail SMTP/IMAP/POP
Geolocation
Google APIs
Google Calendar
Google Cloud SQL
Google Cloud Storage
Google Drive
Google Photos
Google Sheets
Google Tasks
Gzip
HTML-to-XML/Text
HTTP

HTTP Misc
IMAP
JSON
JSON Web Encryption (JWE)
JSON Web Signatures (JWS)
JSON Web Token (JWT)
Java KeyStore (JKS)
MHT / HTML Email
MIME
Microsoft Graph
Misc
NTLM
OAuth1
OAuth2
OIDC
Office365
OneDrive
OpenSSL
Outlook
Outlook Calendar
Outlook Contact
PDF Signatures
PEM
PFX/P12
PKCS11
POP3
PRNG
REST
REST Misc
RSA
SCP
SCard
SFTP
SMTP
SSH
SSH Key
SSH Tunnel
ScMinidriver
Secrets
SharePoint
SharePoint Online
Signing in the Cloud
Socket/SSL/TLS
Spider
Stream
Tar Archive
ULID/UUID
Upload
WebSocket
XAdES
XML
XML Digital Signatures
XMP
Zip
curl
uncategorized

 

 

 

ASP Script to Send Japanese Mail

Chilkat ActiveX Downloads

ActiveX for 32-bit and 64-bit Windows

Download Chilkat Email ActiveX for ASP and Applications

More ASP POP3 Examples

More ASP SMTP Examples

More ASP Email Examples

IMPORTANT: When working with utf-8 ASP and HTML files, make sure the file is saved with a utf-8 preamble.
More information about this can be found here: utf-8 ASP Scripts.

HTML Form for Sending Japanese Email
      
<%@ Language=VBScript %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>

<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=utf-8">
<title>Send Japanese Email</title>
</head>

<body bgcolor="#FFFFFF">
<form method="post" action="SendJapanese.asp">
  <p>From 
    <input type="text" name="From" value="Chilkat Support <support@chilkatsoft.com>" size="80">
  </p>
  <p>To 
    <input type="text" name="Recipient" size="80" value="以上」とする <matt@chilkatsoft.com>">
  </p>
  <p>Subject 
    <input type="text" name="Subject" size="80" value="パートタイマーの厚生年金加入拡大へ">
  </p>
  <p>Body 
    <textarea name="HtmlBody" cols="80" rows="12">
<html>
<head>
<title>Sample Japanese HTML</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF">
<h2>パートタイマーの厚生年金加入拡大へ </h2>
<p><font color="#6600CC" size="+1">パートタイマーの厚生年金加入拡大へ</font> </p>
</body>
</html>
</textarea>
  </p>
  <p>
    <input type="submit" name="Submit" value="Submit">
  </p>
</form>
</body>
</html>

ASP to Send Japanese Mail
<%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<HEAD>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=utf-8">
<TITLE>Send Japanese HTML Mail from ASP</TITLE>
</HEAD>
<BODY>

<%
	' Create a mailman
	set mailman = Server.CreateObject("Chilkat.MailMan")

	' Any unlock code begins the 30-day trial
	mailman.UnlockComponent "anything"

	' Tell the mailman where the SMTP server is located
	mailman.SmtpHost = "mail.earthlink.net"

	' Create an Email message
	set email = Server.CreateObject("Chilkat.Email")

	' Enter the recipient's information
	email.AddMultipleTo Request.Form("Recipient")

	' Enter the sender's information
	email.From = Request.Form("From")

	' Enter the email subject
	email.Subject = Request.Form("Subject")

	' Enter the email text
	email.SetHtmlBody Request.Form("HtmlBody")

	' Convert the email to Shift_JIS
	email.Charset = "Shift_JIS"
	
	' Sends the email with the patterns replaced.
	success = mailman.SendEmail(email)
	if (success = 1) then
		Response.write "Message sent successfully!<br><br>"
		Response.write "MESSAGE SOURCE:<br>"
		Response.write "<pre>"+email.GetMime()+"</pre>"
	else
		Response.write "FAILED!<br>"
		Response.write mailman.LastErrorHtml
	end if

	Set email = Nothing
	Set mailman = Nothing

%>

</BODY>
</HTML>


      
      
 

© 2000-2025 Chilkat Software, Inc. All Rights Reserved.