| | |
Info: Problem with cdo mail output
|
|
Author |
|
DonK Newbie
Joined: September/26/2005 Location: United States
Online Status: Offline Info: 1
|
Added: September/26/2005 at 3:08pm | IP Logged
|
|
|
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 |
|
|
|
|
If you wish to make a comment to this info you must first login If you are not already registered you must first register
|
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
|
|
|
|