Home | Advertising Info15 USERS CURRENTLY ONLINE   
PowerASP
   Site Search Contact Us Thursday, May 16, 2024  

  Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
Classic ASP - General
 PowerASP Code Help Area : Classic ASP - General
Subject Info: Problem with cdo mail output A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
DonK
Newbie
Newbie


Joined: September/26/2005
Location: United States
Online Status: Offline
Info: 1
Added: September/26/2005 at 3:08pm | IP Logged Quote DonK

View a printable version of this message! I'd really appreciate some help here. Have cdo and smtp and Mail Enable. All works great, mail goes out, mail comes in, but the emails generated include a lot of strings that make the email virtually unreadable.
Here is the code for the asp/cdo mail, file name is aspflashemail.asp:
I assume it gets the info from a file located on our server called content.html but I'm not sure.
<%
'######################################################
'        ASP WebMail forward with MS SMTP & CDO by
'        Computers of Tampa www.ComputerSofTampa.com    
'######################################################
%>
<%
Dim strTo, strSubject, strBody, strName, strEmail, strComments
Dim objCDOMail 'The CDO object
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")

'########################################################### ####
'##         &nb sp;  Can't Find The  Name or Body!         & nbsp;        ##
'########################################################### ####
'strSubject = Request.Form("subject")
strBody = Request.Form '("Full Name:")
'strName = strBody & request.form("Name")
'strBody2 = Request.form("E-mail:")
'strBody3 = Request.form("Your message here:")

'########################################################### ####
'##         &nb sp; Can't Find The E-Mail Address!        &nbs p; ##
'########################################################### ####
objCDOMail.From = "web@clubmarketinginc.com"
objCDOMail.To = "khooker@clubmarketinginc.com"
objCDOMail.Subject = "This is an E-Mail from your Web"
objCDOMail.Body = strBody

objCDOMail.Send
Set objCDOMail = Nothing
%>

Here is the email output:
Name=%3CTEXTFORMAT+LEADING%3D%222%22%3E%3CP+ALIGN%3D%22LEFT% 22%3E%3CFONT+FACE%3D%22Tahoma%22+SIZE%3D%2211%22+COLOR%3D%22 %23FFFFFF%22+LETTERSPACING%3D%220%22+KERNING%3D%220%22%3EMy+ Name%3C%2FFONT%3E%3C%2FP%3E%3C%2FTEXTFORMAT%3E&Email=%3C TEXTFORMAT+LEADING%3D%222%22%3E%3CP+ALIGN%3D%22LEFT%22%3E%3C FONT+FACE%3D%22Tahoma%22+SIZE%3D%2211%22+COLOR%3D%22%23FFFFF F%22+LETTERSPACING%3D%220%22+KERNING%3D%220%22%3EMyEmail%40M yName%2Enet%3C%2FFONT%3E%3C%2FP%3E%3C%2FTEXTFORMAT%3E&bo dy=%3CTEXTFORMAT+LEADING%3D%222%22%3E%3CP+ALIGN%3D%22LEFT%22 %3E%3CFONT+FACE%3D%22Tahoma%22+SIZE%3D%2211%22+COLOR%3D%22%2 3FFFFFF%22+LETTERSPACING%3D%220%22+KERNING%3D%220%22%3EThis+ is+test+text%3C%2FFONT%3E%3C%2FP%3E%3C%2FTEXTFORMAT%3E
The information submitted on the web page is actually in that string of garbage, you have to look real close to find it, but it is there, so I know it is gathering the information before sending the mail, I just want to make it look better.

I'm more of a network guy, so this is all rather new to me, but I need it for a customer.
How can I clean this up? What am I doing wrong? Anyone?

Thnx in advance,

Don
Back to Top View DonK's Profile Search for other info by DonK
 

If you wish to make a comment to this info you must first login
If you are not already registered you must first register

  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2024 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.cjwsoft.com,www.aspclassifieds.com,www.aspphotogallery.com