Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP CDO
|
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 April 27th, 2004, 01:19 PM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to asifxp Send a message via Yahoo to asifxp
Default subject shows underscore instead of space in yahoo

Dear All,

I have developed an application that sends emails using CDONTS. When I send email to any Yahoo! address and check it, I notice that ASP automatically puts the underscores replacing all the spaces in sender name and in the email subject. I want to avoid it. For example, I'm going to send following email to a yahoo address:

Sender: Asif Akhtar <[email protected]>
Subject: This is test message.
Body: This is test body.

When I receive it in yahoo mailbox, it will appear as under:

Sender: Asif_Akhtar <[email protected]>
Subject: This_is_test_message.
Body: This is test body.

Do you have any solution? This problem is only for Yahoo and not for Hotmail or Outlook Express.

Please help me.


 
Old April 27th, 2004, 10:05 PM
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 asifxp
try this code.
<%
str=""
str=str & "<link href='" & imgpath & "css-site1.css' rel='stylesheet' type='text/css'>"
str=str+"<table border='0' width='634' cellspacing='0' cellpadding='0' class='smalltxt' background='" & imgpath & "mailback.jpg'>"
str=str+"<tr>"
str=str+"<td width='3%'>&nbsp;</td>"
str=str+"<td width='97%'>"
str=str+"<table border='0' width='634' class='smalltxt'>"
str=str+"<tr>"
str=str+"<td width='290' valign='top' colspan='3'><img border='0' src='" & imgpath & "teranet_contactusmail.gif' width='128' height='19'></td>"
str=str+"<td width='10' valign='top'>&nbsp;</td>"
str=str+"<td width='334' valign='top' colspan='3'>&nbsp;</td>"
str=str+"</tr>"
str=str+"<tr>"
str=str+"<td width='290' valign='top' colspan='3'>&nbsp;&nbsp;</td>"
str=str+"<td width='10' valign='top'>&nbsp;</td>"
str=str+"<td width='334' valign='top' colspan='3'>&nbsp;</td>"
str=str+"</tr>"
str=str+"<tr>"
str=str+"<td width='290' valign='top' colspan='3'><b>Srilanka Office Address:</b></td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"<td width='334' valign='top' colspan='3'><b>Trust Net Marketing</b></td>"
str=str+"</tr>"
str=str+"<tr>"
str=str+"<td width='634' valign='top' colspan='7'><img border='0' src='" & imgpath & "teranet_msiltra.gif' width='20' height='7'></td>"
str=str+"</tr>"
str=str+"</table>"
str=str+"</td>"
str=str+"</tr>"
str=str+"</table>"
Set objCDOMail1 = Server.CreateObject("CDONTS.NewMail")
    strMainTo="[email protected]"
    strTo = "[email protected]"
    strSubject = "Contact Us"
    objCDOMail1.From = "[email protected]"
    objCDOMail1.To = strTo
    objCDOMail1.Subject = strSubject
    objCDOMail1.cc =strCopy
    objCDOMail1.BodyFormat= 0
    objCDOMail1.MailFormat = 0
    objCDOMail1.Body = str
    objCDOMail1.Importance = 2
    objCDOMail1.Send
    Set objCDOMail1 = Nothing
    Response.Write str
%>

surendran
(Anything is Possible)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to get support on this subject! retribution All Other Wrox Books 4 January 9th, 2009 09:09 AM
subject anabnl BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 August 16th, 2007 05:35 PM
Help with underscore arholly Access VBA 8 December 26th, 2006 10:39 AM
UNDERSCORE when parsed jmaronilla PHP Databases 1 September 16th, 2004 11:21 AM
Underscore to be invisible jmaronilla Beginning PHP 2 September 15th, 2004 09:37 AM





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