CDONTS And AttachFile Error Message

Currently, I have a form that a user can enter the subject line content and the email body content. They can then send the email which I have set up to use CDONTS. This works fine.

Now I want to add in the ability to attach a file (it will most likely be a MS Word document) to the email being sent out.

I would like to use CDONTS's AttachFile but it's not working for me. I've read up on it and it seems fairly simple except that I'm getting the following error message. Code:

View Replies


ADVERTISEMENT

Cdonts Attachfile As Inline

How to attach a file to an email as an inline element ? Code:

objMail.AttachFile Server.MapPath("./path_to/image.gif")

The result:

Content-Type: image/gif;
name="image.gif"
Content-Transfer-Encoding: uuencode
Content-Disposition: attachment;
filename="image.gif"

I'd like the content-disposition to be inline.

View Replies View Related

CDOnts.newmail Attachfile Don't Work When File Is Large

I am using the CDONTS.newmail object to send file as an attachment so I
used attachfile method. it seems the attach file wont work if the file size
more than 100 KB , does anybody know if there is a size limit or where to
change it I am using the SMTP server included with IIS 5.0.

PS when file is sent, it will show on the EMAIL as an attachment only with 0
bytes.

View Replies View Related

Setting Message-id With CDONTS

I am currently sending email using CDONTS through the virtual SMTP server on my windows 2000 server. The message-id that is created does not include a time and date stamp therefor over time I have been getting some message-id's that are not unique. I can not find where that message-id is created so that I could update it.

Instead I have set the message-id header in my ASP program when I send the email using CDONTS. Now the message-ID has everything I need in it.

I am happy with all my tests and have not seen any problems but then again I am new to this so what do I know.

Does anyone see a problem with setting the message-ID this way?

Does anyone be chance know where the default message-ID is created when using SMTP?

View Replies View Related

CDONTS.Newmail With Message ID

Does anyone know if it is possible to send a message ID to the mail server using CDONTS? or even append something to the message ID that the mailserver assigns to the message.

I am starting to get duplicate message ID's which has been causing many problems down stream.

View Replies View Related

HTML Message Via CDONTS

I am trying to use CDONT to send a HTML message, but on the receiving machine it just shows the code in the message. Code:

View Replies View Related

CDONTS New Line In Message Body

I have a script sending mail with asp using CDONTS. The script works fine, the only problem I have is specifying a new line in the message body.

I am used to php's imap commands where you can just set the body to be "Hi This is on a new line!" but putting in the text of the CDONTS mail just displays the as part of the text.

View Replies View Related

Using CDONTS To Send Japanese (UTF-8) Email Message

I'm having no luck sending an email message from an asp page with UTF-8 encoding so that Japanese characters can be correctly rendered.

View Replies View Related

CDONTS Text Based Email Message Not Working

I'm trying to send email through a form I created and everything works except the email portion. It's not sending the text message. Code:

View Replies View Related

Error :: Compiler Error Message: BC30002: Type 'ODBCConnection' Is Not Defined

i m getting this following error:

Compiler Error Message: BC30002: Type 'ODBCConnection' is not defined.

Following is my code: ...

View Replies View Related

Cannot Get ObjMail.AttachFile To Work For Emailing Attachments

I have been reading quite a bit on how to do the objMail.AttachFile object, and no one can seem to get to it work properly. I have seen many variations such as:

objMail.AttachFile = (C:MyPathMyFile)
objMail.AttachFile = ("C:MyPathMyFile")
objMail.AttachFile = "C:MyPathMyFile"
objMail.AttachFile(C:MyPathMyFile)
objMail.AttachFile( Server.MapPath(<directory>) & arrFileList(intIndex)

I havent seen anyone report that they got it to work. I am using enctype="multipart/form-data" on my original web form, specifying the input type="file", declaring the attached file variable on my asp page, and doing request.form to gather the appropriate value, but nothing works.

Other forum users have said that it does not like virtual paths, but rather hard-coded paths, for some reason. Does anyone have some good code that works?

View Replies View Related

CDONTS Error .. Microsoft VBScript Runtime Error '800a0046'

CDONTS is not working on my webserver. IIS 5.0 Windows 2000

I am using this code

<%
Dim objNewMail
Set objNewMail = CreateObject("CDOnts.NewMail")
objNewMail.From ="webmaster@test.com"
objNewMail.To = "***@***.com"
objNewMail.Subject = "Test"
objNewMail.MailFormat=0
objNewMail.BodyFormat=0
objNewMail.Body = "<html><b>test test</b></html>"
objNewMail.Send
Set objNewMail=nothing
%>

But it gives me error
__________
Microsoft VBScript runtime error '800a0046'
Permission denied
/test.asp, line 11
_________

I have also referred this Microsoft KB but no help....

View Replies View Related

Error: CDO.message

I am getting the following mail error message why?

Error Type:
CDO.Message.1 (0x80040220)
The "SendUsing" configuration value is invalid.
/cbn/mail.asp, line 8

I am using the following code....

View Replies View Related

ASP Error Message

I would like to create a ASP Error Message (like they use in Windows) to use in mywebsite so when the user types in a wrong Username and Password the eror message appears.

View Replies View Related

ISP Error Message

Sometimes (not always) I get the following error message if I want to see my site on the net:

Microsoft VBScript runtime error '800a01f5'

Illegal assignment: 'QU'

globalsub.asp, line 15

Here is line 15 from globalsub.asp

QU = Chr(34)

Can someone tell me what that means and if the mistake can be corrected by myself or is it an ISP problem?

View Replies View Related

ASP / SQL Error Message !

I am trying to debug some code and I keep getting this error message :

The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.

Please try the following:

Click the Refresh button, or try again later.

Open the g6493pc002 home page, and then look for links to the information you want.
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

Technical Information (for support personnel)

Error Type:
Microsoft OLE DB Provider for SQL Server (0x80040E14)
Line 1: Incorrect syntax near 'MA_DAILY_ACTUAL'.
/temp/asp pages/PROSUMMARYTABLE.asp, line 39

Code:

View Replies View Related

CDO XP IIS 5.1 Error Message

Recently upgraded to an XP pro machine. Moving from CDONTS to CDO. CDO
generates an error message when I try to send a message: Code:

View Replies View Related

Customized Error Message

how to avoid giving physical path & line number in the error messages of web applications. Instead i would like to replace it with general error message to the user.

View Replies View Related

CDO.Message - No Mail And No Error

while i still have a couple of hairs left on my head i decided to crawl in here on my begging knees and ask all you clevar programming sharks for advice before my needs for a wig becomes a reality.

okay here it goes. I made a function in asp that is suppose to send mails. First i had no clue why the email didn't reach it's destination so i tried every possible variation of the code i could think of, but nothing worked. In my frustration i tried adding and removing text inside the body of the email if i add e: to the end of the text in the body - the email gets delivered every single time... but as soon as i remove it from the text body the email doesn't arrive. I get no error (i disabled friendly error messages) the page loads as nothing is wrong. The event viewer has no errors. there's no mails inside badmail or queue.

The server is a windows 2003 with exchange 2003 installed on it as well.

if there's anything i forgot please do not hesitate to ask.

the email i try to send to is a hotmail account. If i send to an email address located on the exchange server the email gets delivered successfully no matter what's inside of the body.

here's the function i use:

function sendmail(strToEmail, strFromEmail, strSubject, strBody)
Set myMail=CreateObject("CDO.Message")
myMail.BodyPart.CharSet="iso-8859-1"
myMail.From=strFromEmail
myMail.To=strToEmail
myMail.Subject=strSubject
myMail.HTMLBody=strBody
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") _
="localhost"
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _
=25
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
end function

View Replies View Related

Out Of Memory Error Message.

I get the following error message from an ASP page that we have:

METHOD: POST
ERROR DESCRIPTION: 007~ASP 0100~Out of memory~Unable to allocate required
memory.
ERROR NUMBER: -2147024882
ERROR SOURCE: Response object

Does anyone out there have any ideas? Please let me know if you need any
more information ... I am not sure why this message has suddenly started to
pop up.

I checked the system logs and cannot see any particular memory loss related
message so I don't know.

View Replies View Related

Detailed Error Message

I have uploaded a working script to a remote shared web host. Now all I get
is the below error. Is there a way to get detailed error message that
describes the error and where it occurs? Code:

View Replies View Related

CDO.Message.1 Error '80070005'

I am sending an email using CDO via my ASP page. All of a sudden i am getting this error:

CDO.Message.1 error '80070005'

Access is denied.

/do_add_support.asp, line 128

this line relates to the .createmhtmlbody line of the code. I have navigated seperately to the page that it includes on this line and it works fine. Is this a permission issue?

View Replies View Related

Strange Error Message

I just re-uploaded my .asp site to a new host.
But one of my pages now bugs, I get this error message in a Windows alert box:
Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked.
All other pages work fine.

View Replies View Related

About Error Message Attempting To Run IIS

Some time ago I installed IIS via an original Win-XP Pro CD-ROM and with help from instructions that I got from the web.

Basically (as per the instructions) I have a folder called MyWeb within the folder wwwroot, which in turn is in the folder called Inetpub. However when I try and run an ASP script that is in MyWeb, I get the following error message:

'The connection was refused when attempting to contact localhost'

The 'command' that I am entering via the address bar of my browser (mozilla) is the usual way of doing it, according to a friend of mine anyway; which is 'http://localhost/MyWeb/filename.htm'

I need to know why I'm getting this error message because at the moment I am unable to test ASP scripts which is the whole point of having IIS installed.

View Replies View Related

Needed On Error Message

I am doing a database driven website using ASP/VBScript and Access. I use a

A server timeout has occured. Here are the possible reasons

1.Please make sure the web server is up and running.
2. Please verify that the ODBC DSN exists on the testing server

I use the connection string

"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.MapPath("Inventory.mdb") and when I test the database connection , it is successful. But when I try to open a recordset in Binding section in Dreamweaver MX, the error message was displayed. COuld anyone tell me what is it? I am using IIS as a testing server. Do I need to do any settings for this problem?

View Replies View Related

Syntax Error Message

i am trying to update an existing record with new value, note, and time but i'm still getting syntax error message:

Microsoft JET Database Engine (0x80040E14)
Syntax error in UPDATE statement.

here is the sql query

sql_update = "UPDATE Expenses SET Value = '" & val & "', Detail = '" & modifiednote & "', Time = #" & Time() & "# WHERE myDate = #" & Date() & "#;"

View Replies View Related

Perplexing Error Message

Ok, so it may only be perplexing because I'm ignorant in the ways of ASP, but still...
When I try to go to a page called "default.asp", I'm getting the following error message:
Code:

Microsoft VBScript runtime error '800a01a8'

Object required: 'Session(...)'

/promark/default.asp, line 34
Does anyone have an idea what is wrong or what I'm missing?

The code on default.asp (line 34) looks like this:

set objInventory = Session("Inventory")

View Replies View Related

CDO.Message.1 Error '80070005'

CDO.Message.1error '80070005'Access is denied. When I run the following codes at local machine this codes work clear. but when I run this from the server ( win2k ) I got error. Code:

View Replies View Related

CDOSYS Error Message

I recently switch from CDONTS to CDOSYS because of the e-mail delivery delay I am encountering. Now, when I send e-mail using CDOSYS it gives me the error message below:

CDO.Message.1 error '8007000e'

Not enough storage is available to complete this operation.

/development/Administrator_email.asp, line 101

There are about 2000 recipients in the e-mail list. I tried just sending to about 20 of them and I did not have any problem. Code:

View Replies View Related

Debugging Error Message

When I want to debug my web site written with ASP.NET using C# I get this error message:

unable to start debugging on the web server. unable to connect to web server. verify that the web server is running and that HTTP request is not block by firewall.

View Replies View Related

Complete Error Message

I have problem with my page, but IIS only show "The page cannot be displayed". How to display complete error message ? I think I've read this sometimes ago here, but I can't find it.

View Replies View Related

Alphabet Error Message

how to get a error message when the textbox value should be a number but the user enter a char inside? how do i detect that it's a char and pop up a error message for the user to change? and where should i put it?

View Replies View Related

Baffling Error Message

I have tried time and time again to figure out what is going on but here is the error message I get: Code:

Microsoft OLE DB Provider for SQL Server error '80040e14'

Line 1: Incorrect syntax near ')'.

/mhoagland/stdOrderOverviewResults.asp, line 55

Here are all the relevant lines concerning line 55: Code:

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved