Sample code for 30+ languages & platforms
Classic ASP Requires Chilkat v11.0.0+

Send an email with a Bcc recipient using SMTP (live send)

See more Email Object Examples

Live send. Load the previously prepared with-attachments.eml, add a Bcc recipient, and pass the Email to MailMan.SendEmail. For a real test, use a relay you control, replace the sample sender and recipients (including the Bcc address) with test mailboxes, and obtain credentials from your application’s secret store.

Chilkat Classic ASP Downloads

Classic ASP
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0

'  Assumes Chilkat is unlocked. See Global Unlock Sample.

set email = Server.CreateObject("Chilkat.Email")
success = email.LoadEml("with-attachments.eml")
If (success <> 1) Then
    Response.Write "<pre>" & Server.HTMLEncode( email.LastErrorText) & "</pre>"
    Response.End
End If

'  Enable this option before adding a blind recipient to the message.
email.UncommonOptions = "NoBccHeader"
success = email.AddBcc("Bcc recipient","bcc@example.net")
If (success <> 1) Then
    Response.Write "<pre>" & Server.HTMLEncode( email.LastErrorText) & "</pre>"
    Response.End
End If

set mail = Server.CreateObject("Chilkat.MailMan")
mail.SmtpHost = "smtp.example.com"
mail.SmtpPort = 465
mail.SmtpSsl = 1
mail.RequireSslCertVerify = 1
mail.SmtpUsername = "MAIL_USER"
mail.SmtpPassword = "MAIL_PASSWORD"
success = mail.SendEmail(email)
If (success <> 1) Then
    Response.Write "<pre>" & Server.HTMLEncode( mail.LastErrorText) & "</pre>"
    Response.End
End If

Response.Write "<pre>" & Server.HTMLEncode( "The SMTP relay accepted the message.") & "</pre>"
success = mail.CloseSmtpConnection()
If (success <> 1) Then
    Response.Write "<pre>" & Server.HTMLEncode( mail.LastErrorText) & "</pre>"
    Response.End
End If


%>
</body>
</html>