Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - chr(13)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

chr(13)

 Post Reply Post Reply Page  12>
Author
288enzo View Drop Down
Groupie
Groupie
Avatar

Joined: 28 April 2003
Location: United States
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote 288enzo Quote  Post ReplyReply Direct Link To This Post Topic: chr(13)
    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.

Back to Top
288enzo View Drop Down
Groupie
Groupie
Avatar

Joined: 28 April 2003
Location: United States
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote 288enzo Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 18 May 2003 at 2:53am
chr(13) is carriage return
Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
288enzo View Drop Down
Groupie
Groupie
Avatar

Joined: 28 April 2003
Location: United States
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote 288enzo Quote  Post ReplyReply Direct Link To This Post 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 # 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">
----------------------------------------------------------------------------------------------------------------^
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 18 May 2003 at 10:49pm
Change the '"' in the string to '""'
Back to Top
288enzo View Drop Down
Groupie
Groupie
Avatar

Joined: 28 April 2003
Location: United States
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote 288enzo Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.