Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO 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 February 4th, 2005, 03:41 PM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default CDONT generated mail goes to BAD mail

Hi, I've been using the same framework for other feedback forms (Using CDONTs) and have nver encountered this problem before??

All mails using this form go to BAD MAIL when opeing these files in Notepad, I can't find the xsender (From).

Here's the code in my get.asp file:
(pretty straight forward)

************************************************** *********
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

<%
Dim t1name
Dim t1
Dim t2name
Dim t2

t1name = "email"
t1 = Request.Form("t1")
t2name = "subject"
t2 = Request.Form("t2")

Dim stname,st
stname = "comments"
st = Request.Form("st")
Dim ObjMail
Set ObjMail = Server.CreateObject("CDONTS.NewMail")
ObjMail.To = "[email protected]"

ObjMail.From =t1

ObjMail.Subject = "INTRANET feedback"

ObjMail.BodyFormat = 0
ObjMail.MailFormat = 0

ObjMail.Body = t1name & vbcrlf&_
t1 & vbcrlf&_
t2name & vbcrlf&_
t2 & vbcrlf&_
stname & vbcrlf&_
st
ObjMail.Send
Set ObjMail = Nothing

Response.Write"Thank You"
%>
************************************************** *********

Any help understanding what's missing here would greatly be appreciated.

Nancy
As always thanks for your help!

 
Old February 17th, 2005, 05:17 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hi nancy,
Can u please check this code, it's working fine.
<%
t1name = "email"
frommail = Request("t1")
t2name = "subject"
tomail = Request("t2")

 set mail_Obg=createObject("CDONTS.newmail")
    mail_Obg.From=frommail
    mail_Obg.To =tomail
    mail_Obg.Subject = "INTRANET feedback"
    mail_Obg.BodyFormat=0
    mail_Obg.MailFormat=0
    mail_Obg.Body =t1name&"<br>"&frommail
    mail_Obg.Importance=2
    mail_Obg.Send
    set mail_Obg=nothing
%>


surendran
(Anything is Possible)
 
Old February 17th, 2005, 12:54 PM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your feedback. The problem is resolved.

nancy





Similar Threads
Thread Thread Starter Forum Replies Last Post
Send mail and attachments with PHP mail function Lofa Beginning PHP 1 June 2nd, 2008 03:24 PM
auto generated mail id vijaypalada ASP.NET 1.0 and 1.1 Basics 2 January 20th, 2007 05:50 PM
e-mail using cdont rajiv_software Classic ASP Basics 3 April 13th, 2005 03:42 PM
Automatic E-mail Generated based on query smartgir Access VBA 4 March 25th, 2004 09:17 PM
JMail: How can I deal with a bad e-mail address? markw707 Classic ASP Basics 0 December 18th, 2003 10:16 PM





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