Print Page | Close Window

chr(13)

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=2806
Printed Date: 28 March 2026 at 7:09pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: chr(13)
Posted By: 288enzo
Subject: chr(13)
Date Posted: 17 May 2003 at 9:36pm

Okay, I know I am going to sound like an idiot , but what the heck does chr(13) mean?  I have done a search on google and looked at about 30 web sites, I have yet found any that actually explain the meaning behind it.  I am trying to format my objNewMail.Body by using different fonts buy am having no luck.  What kind of restrictions do I have with using fonts?

Thanks.




Replies:
Posted By: 288enzo
Date Posted: 17 May 2003 at 9:50pm
I also am trying to add web links and email links in the email as well, but am having no luck.  Anyone have any ideas on how to include an <a href=""></a> into the body?


Posted By: WebWiz-Bruce
Date Posted: 18 May 2003 at 2:53am
chr(13) is carriage return

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: fernan82
Date Posted: 18 May 2003 at 1:07pm

What email component you're using?, you might want to read the email tutorials on this site... with CDONTS for example you would have to have:

objNewMail.BodyFormat = 0
objNewMail.MailFormat = 0

on your script in order to send email on HTML format...



-------------
FeRnAN
http://www.danasoft.com/">


Posted By: 288enzo
Date Posted: 18 May 2003 at 10:34pm

I'm using CDONTS.  I guess I missed BodyFormat and MailFormat in the example on this site.

Anyhow, I tried the following with no luck.  Can it be done?  You can probably figure out what it is that I am tring to accomplish here.

body = body & "Photograph: To add a photograph please rename it to your listing number and email it to <a href=" mailto:addphoto@********.net?subject=Listing - mailto:addphoto@********.net?subject=Listing # intIDNumber">
here</a>"

I get the following error:

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/postnewlisting.asp, line 85

body = body & "Photograph: To add a photograph please rename it to your listing number and email it to <a href="mailto:addphoto@**********.net?subject=Listing # intIDNumber">
----------------------------------------------------------------------------------------------------------------^


Posted By: ljamal
Date Posted: 18 May 2003 at 10:49pm
Change the '"' in the string to '""'

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: 288enzo
Date Posted: 19 May 2003 at 2:11pm

Thanks, that helped me with a bunch of errors.  I still can't seem to get the variable to appear in the subject line.

body = body & "<p><font face='BernhardMod BT' size='2'>Photograph: To add a photograph please rename it to your listing number and email it to <a href='mailto:addphoto@...........net?subject=Listing # ' & intIDNumber>here</a></font></p><br>"  

Does anyone know what I am doing wrong or is this even possible?

Thanks.



Posted By: Scotty32
Date Posted: 20 May 2003 at 6:06am

body = body & "<p><font face='BernhardMod BT' size='2'>Photograph: To add a photograph please rename it to your listing number and email it to <a href=""mailto:addphoto@...........net?subject=Listing # " & intIDNumber & """>here</a></font></p><br>"  

look at the text in red, change your code so it looks like that, then it should work

and i think the person above didnt mean change all your " to '

i think they ment change them to double "

but if your happy with ' then its ok i guess



Posted By: Bullschmidt
Date Posted: 31 May 2003 at 11:23pm

And by the way for a table of all the ASCII codes you can go here:

ASCII Table and Description
http://www.asciitable.com - http://www.asciitable.com



-------------
J. Paul Schmidt, Freelance ASP Web Developer
www.Bullschmidt.com - www.Bullschmidt.com
Classic ASP Design Tips, ASP Web Database Sample (Freely Downloadable)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net