Script For Working Out Royal Mail Postage

Anyone know where I can get hold of a script to work out royal mail postage
depending on weight?

View Replies


ADVERTISEMENT

Mail (CDONTS) Not Working

can anyone see why this wouldn't work...it's driving me nuts

Set objcdmail = Server.CreateObject("CDONTS.NewMail")
objcdmail.From = "me@mydomain.com"
objcdmail.To = "me@mydomain.com"
objcdmail.Subject = "test"
objcdmail.Body = "testing"
objcdmail.send
Set objcdmail = Nothing

I have copied this from another page that I have. The original page takes
the details from a form on another page, so the results above are all
request.form("whatever") etc, and the original works!!

but if I try to put fixed values in as above it fails to work and I can't
see why?

I've even tried a response.write to check the values..and they look right,
but no mail is sent

I'm running win XP pro but have taken the CDONTS.DLL from my win 2000 pc and
done the regsv32 etc etc

maybe I should try to use CDOSYS but

a) I haven't a clue how and so
b) I copied a script directly from a help page which didn;'t work either!
c) the eventual host server is running NT4

View Replies View Related

CDONT Mail Not Working

Hi what is wrong here?

<%
Dim MyMail
Set MyMail = Server.CreateObject("CDONTS.NewMail")
MyMail.From = email
MyMail.To = "myemail@site.com"
MyMail.Cc = ""
MyMail.Bcc = ""
MyMail.Subject = "Message From Contact Page"
MyMail.BodyFormat = 1
MyMail.MailFormat = 0
MyMail.Importance = 2
MyMail.Body = message
Set MyMail = Nothing
%>

Its not working (dont worry I specified the right email)

View Replies View Related

ASPEmail Not Working In My Mail Script

I have a flash email contact form that uses ASP to execute the send mail. My sendmail component of choice is ASPEmail. The original script was CDONTS, but I needed it changed. I'm no programmer, but I got tired of posting for assistance in various forums only to receive plenty of looks but little help.

One person is offering to help me out, but I want to figure it out on my own until he gets some time to write up a script for me. Here is my script, which is sectioned out for easier reference. My form still doesn't send any mail and I don't know what I'm doing wrong. I do not wish to rewrite the script because then I'd have to change the text input fields in my Flash contact form. I merely am seeking assistance on fixing my existing script in sections IV and V (toward the bottom of the script).

Would someone explain to me what I'm doing wrong, please? Oh, and before you ask, I did test my ASPEmail configuration and it is working fine via the test scripts that came with it.

When you fill out the form and click SUBMIT the acknowledgement (i.e Thank you very much...blah, blah, blah) appears and everything looks okay, but the mail never reaches my inbox, which to me means that it's not being sent.

So far, I haven't had much success with anyone tackling this, so I'm hoping that I can get some help here...I was able to get some really good and knowledgeable help a year ago...any takers?

<%
'SECTION I
Response.Buffer = True
Dim strBody
Dim objCDOMail
Dim strMyEmailAddress
Dim strCCEmailAddress
Dim strBCCEmailAddress
Dim strReturnEmailAddress
' END ....

View Replies View Related

Working With Unicode E-mail Using ASP And CDONTS

Can anybody tell me how to send unicode mails using ASP and CDONTS.

Here is what I tried but it will display ??? for special characters in outlook.

I want to send email in lithunian and russian languages.

MY Server is MS 2003 running IIS6 .....

View Replies View Related

Sending Mail Code On Website Not Working

When I attempt to send mail from my IIS, it works, but after I upload to a website, the feature does not seem to work as nothing is arriving in my inbox. Here is the source of my test code:....

View Replies View Related

Error Type: (0x8007007E), CDO Mail Not Working

My other problem with the code that I am writing is that I cannot get the email funtion working. I eventually want it to use another SMTP server rather than running on the local machine using IIS' built in email system.

The code is very simple as follows:

<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Email Test"
myMail.From="me@test.com"
myMail.To="someone@somedomain.com"
myMail.TextBody="This is a CDO email test."
myMail.Send
%>

This should work fine as far as I can tell, I am running win xp pro with IIS installed and SMTP service running. When I access the page though I get the following error:

<LI>Error Type:
(0x8007007E)
/mycal/email.asp, line 12

<LI>Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

<LI>Page:
GET /mycal/email.asp

<LI>Time:
09 March 2005, 10:26:01

CDOSYS.dll is present in the windowssystem32 directory, I can only presume it is something to do with that, but I really don't know. I tried to register the dll in regsvr32 to see if that was the problem, but it said it couldn't register it (return code 0x800704da).

View Replies View Related

With Postage Calc And Back Button Please?

1. I'm trying to create an image button that when clicked returns the user to the previous page, however this changes so I've been led to believe that Response.Redirect ("HTTP-REFERER") would be a good command to use. This is to appear on my shopping cart so when a product is added you can click the button and return to the page just left done by 1st line below.

But if the contents of the shopping cart are deleted to zero products it takes you to a "shopping cart is empty" message the button may then need to travel back possibly numerous pages is there an "if page="****.asp"" command so it ignores the page until it finds another url page then goes back to that at the mo the bottom line just takes you to the homepage?? Code:

View Replies View Related

Send A Mail With Cdosys And Save A Copy In The Sent Mail Folder: How To?

I need some help: with cdosys i'm able to send e-mail from asp using the local exchange
server. Now I also have to save the sent mail into the user's mailbox for future reference: how to?

I'm using:....

View Replies View Related

Mail Insertion Hack On Send Mail Form

I'm using CDO to send mail to the site owner from ASP pages with forms.
Recently one of my forms is occasionally sending email with what seems
to be an insertion which is replacing the plain text part of the email
with something else. Looking at the server sent email source, the
hacked emails have the following:

View Replies View Related

Sending Mail Using ASP/VBScript To Exchange Mail Box

Here's the scenario. I'm currently using cdosys/asp to send mail to
our SMTP server. We use a product called MailFilter to check for SPAM.
It doesn't work very well. If MailFilter isn't working cdosys also has
problems and emails don't get sent. As these email are confirmations
for customer's bookings this means lots of customers calling to see
where their confirmation emails have gone. The root of the problem is
MailFilter but that here to stay. So I had this thought of sending the
message to a queue of some sort so at least they will get to the
customer eventually rather than being lost for good. So here's the
question:

Can I/How do I send messages to a mailbox on our exchange server using
cdo.message?

View Replies View Related

Invalid Mail Address Gives Error In CDO Mail

I'm using CDO from my vb component to fire email. The problem is
whenever one of the email addresses in to, or cc is wrong then none of
the mails are fired even to the correct addresses. It gives an error
like

The server rejected one or more recipient addresses. The server
response was: 550 Relaying denied for <xfd@wre.com>

My code goes like this. Why is the mail server trying to look for the
validation of email ids??I want that atleast the mail should be fired
to the correct email addresses rather than no email fire. Can i
achieve that.

Dim iMsg As New CDO.Message
Dim iConf As New CDO.Configuration


With iConf
.Fields.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Fields.Item(cdoSMTPConnectionTimeout) = 10 ' quick timeout
.Fields.Item(cdoSMTPAuthenticate) = cdoBasic
.Fields.Item(cdoSendUserName) = "username"
.Fields.Item(cdoSendPassword) = "password"
.Fields.Item(cdoURLProxyServer) = "server:80"
.Fields.Item(cdoURLProxyBypass) = "<local>"
.Fields.Item(cdoURLGetLatestVersion) = True
.Fields.Update
End With

Set iMsg.Configuration = iConf
With iMsg
.To = strToEmail
.From = strFromEmail
.CC = strCCEmail
.BCC = strBCCEmail
.Subject = strMailSubject
If strMailFormat = "TEXT" Then
.TextBody = strMailBody
Else
.HTMLBody = strMailBody
End If
If strAttachment <> "" Then
.AddAttachment strAttachment
End If
If intPriority = 2 Then
.Fields.Item("urn:schemas:mailheader:X-Priority") =
cdoHigh
.Fields.Update
End If

.Send
End With

View Replies View Related

Sending E-mail To Different Mail Box!

I would like to know if this can be achieved! On the form I a drop down menu that's called ("Escalation_type") the values are eta, hdtv, and supervisors. I have some ideas but I am not sure if it will work or not. If the use chooses an eta as a value I would like it to be sent a mailbox for exam: no@where.com. If they choose hdtv as value I would like it to be sent to a different mailbox. Can this be achieve by using the case statement or the if statement?

View Replies View Related

Asp Mail Without Using A Mail Component

I'm looking for an asp code who can send an email without using a mail component. I started to write somethings using winsock but I don't have enough time to finish it.

View Replies View Related

ASP Not Working Ok In PWS

I just installed PWS on 2 machines (XP & 98).

The problem is that I can run the ASP files in the wwwroot folder when I use http://localhost from my browser or RUN (and that's for the default.asp). But the asp files do not work when I call them from a hyperlink in an HTML file.

View Replies View Related

CDO Is Not Working

After I moved the site to new server the mailing method stoped working , the cdo pull the email from sql database on the same server .. although it says sent to # recipients.
I send a webpage (newsletter) exisit on the server "I use full url" also the registration page gives when registration the error: CDO.Message.1 error '80040218'

Unknown Error

/extra/news/reg3.asp, line 251

line 251 is objSendMail.CreateMHTMLBody "http://www.example.com/newsletter.html"
I saw description of the error it sayes that I have to use full url ...but I am using it ...
any Idea ...

View Replies View Related

Asp Working Or Not

I have a sever 2003 machine of which I am trying to host a webisite on. The webpages I uploaded has lots of .asp files that could not be open. I'd contact the website disgner and complains about it and an he blaims it on my server not supporting asp technology.
My question today, is there a way to test what the problem really is?

View Replies View Related

FSO Not Working

In my serverside script I have gone down to the bare bones and the following doesn't seem to work:

dim fs
dim fst
dim LineOut
set fs = Server.CreateObject"Scripting.FileSystemObject")
set fst = fs.CreateTextFile("C:TEMPhome.tmp",True)

lineout = "MAFFIdentifier" & vbtab & "Title" & vbtab & "Initials"
fst.writeline(lineout)
lineout = " ==================================================
========"
fst.writeline(LineOut)

fst.close
set fs = nothing

The server gets to the end since I place a response.write in to test.

If I cut and past this into VB declare the variables as objects and lineout as string and remove the "Server." from the line when setting fs, then it works fine in VB.

View Replies View Related

Not Working In PWS

The problem is that I can run the ASP files in the wwwroot folder when I use http://localhost from my browser or RUN (and that's for the default.asp). But the asp files do not work when I call them from a hyperlink in an HTML file.If I do that, all I see are the contents of the asp file.

View Replies View Related

Getting Working

Just set up Dedicated Server Hosting with GoDaddy. I put a very simple ASP page in the home web directory and try to load it and get a very generic error. A simple HTML file works fine. Obviously it's a permissions issue or maybe some service is not running.

View Replies View Related

Sql Not Working In Asp

i got an sql sentence that is executed in toad without problem; returns 1 but when i run the sql in asp i get returned 0. Code:

SELECT COUNT(*) as st
FROM sest_sklepi
WHERE rok<(SELECT TO_CHAR(SYSDATE, 'DD.MM.YYYY') as b FROM dual)

View Replies View Related

ASP Not Working

New to IIS, Why will IIS 5.0 not server up my ASP web pages? I cannot even get to the help because it is an ASP Page. I get an error in IE that states "HTTP 500 Internal server error". I have looked in the configuration and cannot find anything related to ASP. What can I do to serve up ASP web pages?

View Replies View Related

Why Isn't My PWS Working

I'm having difficulties making PWS work. I have WIN98SE. It was working for a while but now it says:

Quote: Problem:
An unexpected error occured.

Solution:
Please restart the Publishing Wizard.

View Replies View Related

Working With Url

Im finishing up a content management system for a client. It works fine except the way they have the pages set its nessessary for someone to open each page made and change it to the new directory.

the script copys a folder from lets say

http://fake/templets

To

http://fake/user
so now we end up with something like
http://fake/user/smith

On the pages in smith is there a way to make the look at their url and strip off all but the /smith part?

Or maby someone could tell me what im trying to do is called and ill be able to do a better search online.

View Replies View Related

<>0 Is Not Working

Here are the scripts. interest is 0, but, it will not execute then clause. Why?

interest = round(rs("CURR_WORKING_INTEREST"))
response.write interest
if sizeworkint < 3 OR interest<>0 then CURR_WORKING_INTEREST2 =
left(rs("CURR_WORKING_INTEREST"),2) + ".000000" end if ..

View Replies View Related

ASPUpload Isn't Working

I just noticed my upload function isn't working since I have move the folders and files to different directory.

Now I get this error:

Error Type:
Persits.Upload.1 (0x800A003D)
Wrong Content-Type. Make sure you have included the attribute ENCTYPE="multipart/form-data" in your form.
/foldername/UploadScript.asp, line 54

line 54 is:
Upload.Save "z:
ewfolder"

I have given modify, read & write permission for IUSR_MachineName account on NewFolder and given Read & Write permissions in IIS.

I also included ENCTYPE="multipart/form-data" attribute in my upload form.

View Replies View Related

CDONTS Not Working

I'm using IIS 5 on a win xp machine for all my testing, before I upload to our live server. I've installed the SMTP service and it's running with no errors.

Dose anyone know anything about the above set-up not supporting "CDONTS.NewMail" for sending email using ASP..?

I get the following error message: "Server object, ASP 0177 (0x800401F3) Invalid class string".

View Replies View Related

Access SQL To ASP SQL Not Working

I have taken some SQL from MS Access and got it working. I have since updated the SQL in Access but cannot get the additional part working in ASP. The working SQL I have in asp is:-

strQuery = strQuery & " HAVING ((OrderQuantity-Sum(QtyShipped)>=0) AND
(OrderLines.SelectAll=-1) AND (PCBForecast.HeldMarker='Scheduled'))"

I need to add the following but keep getting errors saying my SQL is
incorrect.

This is the additional part which should also be on this line:-

AND ((PCBForecast.ShipETA) Between Now() And #12/30/3000#))"

or another variant I require

AND ((PCBForecast.ShipETA)=#12/31/3000#))"

What is the correct way to write both of these, as I cannot get either
to work in asp, yet they work in Access.

View Replies View Related

ASP Working With MS Office

I want to read the MS Word and XLS documents with ASP code for searching. Is
there are any solution for me or any reference?

View Replies View Related

If Statement Not Working

whati have is a table that alternates colour each row so making it easier to look at the info. I also have it to check so that if the stock level is below min change from standard to red.

I also want it to check now so that if it has been ordered instead of being red green instead. i thought this would do it but i dont know how to check database to see if the check box is ticked. Tried Yes/No True/False and even both "yes" or "true" and so on. Code:

View Replies View Related

Replace Not Working

my replace is not working
Shipping News ...i don't want news word ..mean i just want
Shipping
Code:

<%=Replace(rs("name"), "news", "")%>

View Replies View Related

Hit Counter Working

i want to add a hit counter to my site but i dont know any thing about it. can any one tell me how does it work.and what should i do for that?

View Replies View Related

Ad Rotator Not Working

I have the following ad rotator that dosent show any errors or pictures. In my root directory I have a folder called "ads" and in the folder there are a few gif's.

In my html folder I have the file called "banner-inc.asp" which contains the following code:

View Replies View Related







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