|
|
|
|
|
| | |
|
vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: send an email using ASP : try this, might help |
From: |
gib |
Date: |
8/12/2000 10:57:43 PM |
IP: |
210.9.51.6 |
Try this,
It works fine for email and also attachment. Bad news, if the users use Mac, you might a problem with attachment. Good luck :-)
------------- Send Email -------------
Set objMail = CreateObject("CDONTS.Newmail")
objMail.From = "kobkan@hotmail.com"
objMail.To = "Kobkan.Sriboonsom@uts.edu.au"
objMail.Subject = "hello"
objMail.Body = Message
attachmentfile = absolute_path & "\Upload\" & session("upload_name")
objMail.AttachFile attachmentfile, session("upload_name"), cdoEncodingBase64
I also tried UUEncode with txt file
objMail.AttachFile attachmentfile, session("upload_name"), cdoEncodingUUEncode
objMail.MailFormat = cdoMailFormatMIME
objMail.BodyFormat = 0 cdoBodyFormatHTML
on error resume next
objMail.Send
------------------------- |
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|