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 December 17th, 2007, 12:25 AM
Authorized User
 
Join Date: Dec 2007
Posts: 59
Thanks: 9
Thanked 0 Times in 0 Posts
Default send email by asp

  I have a real problem here. I'm trying to configure a web
server which is XP2 with IIS and SMTP installed.
When I run my asp pages, my CDONTS object return an error
on the page which is Microsoft VBScript runtime
error '800a0046'. Permission Denied.

Please help me to send this email.
Thanks so much to your help.
Regards.
Hoang Phuc

 
Old December 17th, 2007, 12:51 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Have you sent emails from this box before?
     If not, are you sure things are configured properly?
     if not use command line and send a message using telnet to test

If so, Post your code and point out the line which gives the error

Wind is your friend
Matt
 
Old December 17th, 2007, 03:41 AM
Authorized User
 
Join Date: Dec 2007
Posts: 59
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Thanks so much to your help
I have completed a sent email to anybody.
but it sent to spam.that i sent it by yahoo.com
 and then i change to gmail.com
so is good
can you help me to send email to yahoo.com
<%
                  'hd=request.Form("hd")
                'if hd="1" then
                Senderfirstname=Request.Form("firstname")
                SenderlastName=Request.Form("lastname")
                SenderEmail=Request.Form("email")
                SenderPhone=Request.Form("phone")
                Sendercbxsubject=Request.Form("cbxsubject")
                Sendertxtsubject=Request.Form("txtsubject")
                Sendernote=Request.Form("note")

                        MailTo = "[email protected]" 'Goi cho dia chi email nay
                        ChuDe = "Thong tin lien lac - "
                        NoiDung = "THONG TIN LIEN LAC" & VbCrLf & VbCrLf
                        NoiDung = NoiDung & "1. Thong tin nguoi lien lac:" & VbCrLf
                        NoiDung = NoiDung & "First: " & Senderfirstname & VbCrLf
                        NoiDung = NoiDung & "Last Name: " & SenderlastName & VbCrLf
                        NoiDung = NoiDung & "Email: " & SenderEmail & VbCrLf
                        NoiDung = NoiDung & "Phone: " & SenderPhone & VbCrLf
                        NoiDung = NoiDung & "Subject: " & Sendercbxsubject & VbCrLf
                        NoiDung = NoiDung & "Subject Name: " & Sendertxtsubject & VbCrLf
                           NoiDung = NoiDung & "2. Noi dung lien lac:" & VbCrLf
                        NoiDung = NoiDung & "Comment: " & Sendernote & VbCrLf
                        DIM oMail, Flds, oMailConfig
        Set oMail = Server.CreateObject("CDO.Message")
        Set oMailConfig = CreateObject("CDO.Configuration")
        oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
        oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
        oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
        oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
        oMailConfig.Fields.Update
        Set oMail.Configuration = oMailConfig
        oMail.From = SenderEmail
        oMail.To = MailTo
        oMail.Subject= ChuDe
        oMail.TextBody = NoiDung
        oMail.Send
        Set oMail = Nothing
        Set oMailConfig = Nothing
    ' id="thanks"
    ' else
    ' id="fail"
    ' end if
    %>

 
Old December 17th, 2007, 08:56 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

mmmm, your reply confuses me... I a not sure what you are after

Wind is your friend
Matt
 
Old December 17th, 2007, 10:23 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I dont speak vietnamese (sp?) but I think the problem is with these 2 variables:
ChuDe
NoiDung

Probably what is happening is that yahoo either A)Cant interpet vietnamese and is flagging it as spam or B)It is translating your message and flagging it as spam.

In either case there is nothing any of us can do other then to tell you to alter your message since we obviously dont control Yahoo's spam filters.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========
 
Old December 17th, 2007, 10:33 PM
Authorized User
 
Join Date: Dec 2007
Posts: 59
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Thanks so much to your help me to this solve
chude:title
noidung:content
the two variables that gives its only show in the my email box
can you show me to this solve
Regard
Hoang phuc

 
Old December 17th, 2007, 10:52 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I dont really know. As you said the email IS sending it is just going to your spam folder. I dont really know how to correct this since A) I dont know what the body of the email says or B) How yahoos spam filters work.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP VB.Net send email Greavr ASP.NET 2.0 Basics 3 August 26th, 2008 07:59 PM
send email automatically with classic asp crmpicco Classic ASP Professional 6 July 4th, 2006 09:56 AM
How to send email through exchange from ASP + C# sdh C# 0 October 22nd, 2005 01:33 PM
Smtp blocked, how can I send email use asp.net calvinpost ASP.NET 1.x and 2.0 Application Design 7 April 1st, 2004 09:41 AM





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