|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi here,
I have a problem regarding single quotes in ASP (comments) I made an emailform using CDONTS. I am trying to attach a file to the email when it is send. I am using this line of code: oMail.AttachFile ( 'c://autoexec.bat' ); Because this line is embedded in ASP, everything after the single quote is seen as a comment. Can I change the single quotes to another character, so that it doesnt see it as a comment anymore? Thanks for your help! Petra ![]() |
|
#2
|
|||
|
|||
|
Can't you just use double quotes like this:
oMail.AttachFile ( "c://autoexec.bat" ); If that didn't help, here is an article about sending a mail with attachements using CDONTS: http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=13 |
|
#3
|
||||
|
||||
|
Strings are always surrounded by double quotes (") - this is a standard in pretty much every programming language.
Also, your file reference is incorrect. It should look like "c:\autoexec.bat" |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > ASP Comment problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|