473,785 Members | 2,812 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP dundas mailer question

Hi all

I am still finding my feet creating a website in ASP, and i'm trying to get
to grips with users providing feeback to my site.
my webhosts have the dundas mailer installed, and i am trying to get it to
work for me.
does it work in conjuction with regular html? can i add a <form> and text
fields? and then will all that get sent with the page?
I have a little script but i dont know how to modify it

http://www.tripak.me.uk/dundas.txt
which when i am done with, must change to and .asp extension.
but where do i add it form content?
Say i want to ask the person viewing the page, to send me feedback, Just to
add a textfield, and some html asking for their name, how do i go about
that?

I hope someone can help me

thanks

Raphael
Jul 19 '05 #1
6 7155
Create a page with the appropriate fields you need to collect.

Post that form to the page you have (dundas.txt)
on the dundas.txt page, build the email up in a variable, and add it to the
objEmail.HTMLBo dy property. I assume there's also an objEmail.Body property
as well for those who don't use html.

So...For example
Page1.asp

<form method=post action=Dundas.a sp>
<p>What's your name<input name=fname></p>
<p>What's your email address<input name=email></p>
<p><input type=submit value=Send></p>
</form>

Dundas.asp

<%@LANGUAGE="VB SCRIPT" CODEPAGE="1252" %>
<%

Dim objEmail 'stores a Mailer control object
Dim strPath 'stores path to a directory we create at same level as this ASP
page
Set objEmail = Server.CreateOb ject("Dundas.Ma iler") 'Mailer object

'specify the recipient of this message
objEmail.TOs.Ad d "yourATemailadd ress.com"

'specify the subject of the email
objEmail.Subjec t = "Sent from the web page"

'specify the sender of the message
objEmail.FromAd dress = Request.Form("e mail")

'specify an SMTP Relay server. This increases the speed and reliability of
the operation
objEmail.SMTPRe layServers.Add Request.Form("S MTP")
Dim sBody
sBody="The user's name is " & Request.Form("f name")
'initialize the HtmlBody property, we'll throw a header into it
objEmail.HTMLBo dy = "<Html><Hea d></Head><Body>" & sBody
objEmail.SendMa il

%>

"Raphael Gluck" <iwish i could tell you @alas blame the spammers> wrote in
message news:O0******** ******@TK2MSFTN GP12.phx.gbl...
Hi all

I am still finding my feet creating a website in ASP, and i'm trying to get to grips with users providing feeback to my site.
my webhosts have the dundas mailer installed, and i am trying to get it to
work for me.
does it work in conjuction with regular html? can i add a <form> and text
fields? and then will all that get sent with the page?
I have a little script but i dont know how to modify it

http://www.tripak.me.uk/dundas.txt
which when i am done with, must change to and .asp extension.
but where do i add it form content?
Say i want to ask the person viewing the page, to send me feedback, Just to add a textfield, and some html asking for their name, how do i go about
that?

I hope someone can help me

thanks

Raphael

Jul 19 '05 #2
First of all thank you very much for taking the time to reply, i really
appreciate it.

I thought it would work easy as pie, but i am having some teething problems.
I keep getting 500 internal server error when I try, a test form.
Aside from adding in the email address to the dundas asp script, I am not
clear, must I modify something else? to tell the dundas.asp page that the
previous page, page1.asp is trying to send via it;'s script?

Many thanks

Raphael
Jul 19 '05 #3
First find out what the error is so you can figure out how to correct it.
http://www.aspfaq.com/2109

Ray at home

--
Will trade ASP help for SQL Server help
"Raphael Gluck" <iwish i could tell you @alas blame the spammers> wrote in
message news:OL******** ******@tk2msftn gp13.phx.gbl...
First of all thank you very much for taking the time to reply, i really
appreciate it.

I thought it would work easy as pie, but i am having some teething problems. I keep getting 500 internal server error when I try, a test form.
Aside from adding in the email address to the dundas asp script, I am not
clear, must I modify something else? to tell the dundas.asp page that the
previous page, page1.asp is trying to send via it;'s script?

Many thanks

Raphael

Jul 19 '05 #4
Ok, i think i'm begining to understand, please forgive my ignorance but
I have to create a variable in the dundas.asp page

to collect the info from page1.asp

Dim sBody
sBody="The user's name is " & Request.Form("t est")

assuming i called the form in page1.asp "test"

Then the line that actually calls up the variable is

'initialize the HtmlBody property, we'll throw a header into it
objEmail.HTMLBo dy = "<Html><Hea d></Head><Body>" & sBody

Is that correct? that's how my webhost put it out, did they miss a closing
</body> tag, by any chance?
Jul 19 '05 #5
Do you really have a form field named tr****@tripak.m e.uk? Probably not.
If you're hard coding the e-mail address, just do

objEmail.TOs.Ad d "tr****@tripak. me.uk"

And it's "TOs?" Interesting...

Ray at home
--
Will trade ASP help for SQL Server help
"Raphael Gluck" <iwish i could tell you @alas blame the spammers> wrote in
message news:eO******** ******@TK2MSFTN GP09.phx.gbl...
Ah, clever never knew that, Thanks for that tip. I have IE 6 and still got
that error 500
DSMailer.Addres s.1 error '80004005'

Address can not be empty string.

/dundas.asp, line 11

Is what is should have said, but now how to go about correcting it, my line 11. in dundas.asp reads

objEmail.TOs.Ad d Request.Form("t r****@tripak.me .uk")

Is that wrong? or am a quoting the wrong line 11?

thanks

Jul 19 '05 #6
I emailed my webhost today, and indeed there was problem with the script,
which they have now corrected so it works, it was the SMTP relay server line
that needed some numbers added to! but thank you Tom for the variable help.
And thank you ray, for showing me where to put my e-mail address
Raphael
Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5316
by: John Davis | last post by:
What is the **MOST** obvious reason why will this will fail (it's not syntax or anything specific to the object)? Function Mail(MailerProgram, Message, Subject, Format, FromEmail, ToEmail, ReplyTo, FromName, ToName, MailerPath, BCCEmail, Attachement) Set Mailer = Server.CreateObject("Persits.MailSender") if NOT isObject(Mailer) Then Mail = false Exit function
1
1848
by: Hans [DiaGraphIT] | last post by:
Hi! I'm programming a windows application and consdidering 3. party chart supplier. I've come down to 2 alternative. * Dundas enterprise edition Combo version * Gigasoft ProEssentials v.5 Pro
1
3266
by: Beyza | last post by:
Hi, I have a problem. One of my customer used to use php mailer in her web page. But when i changed something in the system (php packages) , it was broken. If she use php-mailer in her system, mails come base64 code. I did not understand why. Do you have any idea? I am pasting example mail header. : 55902; :25;Sat, 29 Jul 2006 05:51:26 -0500
0
1290
by: Guy Gallant | last post by:
Does anybody know if a Crystal Report (V11) can call a Dundas Chart. Using C# (2.0) can we have a Crystal Report include a Dundas Chart.
4
6611
by: =?Utf-8?B?TWlrZSBI?= | last post by:
I'm using a block of ASP to allow a user to send a form via e-mail. However, someone keeps sending me spam through this form and they're using a bogus return address. I'm testing for a successful send, which should fail if the return address is not valid, but I'm still getting the junk. The block looks like this: Set Mailer = Server.CreateObject("SMTPsvg.Mailer") Mailer.RemoteHost = "smtp.xxx.com" Mailer.FromName =...
4
3139
by: Al G | last post by:
Has anyone played with MS's SMTP sample, mailer.exe? I downloaded the sample, and ran it, but keep getting the error "Failure sending mail". Where might I look for more information? Maybe some troubleshooting tips? Thanks in advance, you folks have helped with some of my other projects, simply by answering someone else's question. Al G
0
2713
by: askzda | last post by:
Hi, Can somebody pls help to solve above problem. I have used dundas mailer for my mailing part in my asp script, but the an error occured during sending the mail. Error that is prompted out just like below: Dundas.Mailer.1 error '80004005' The DATA command failed. I've checked all the recepients' email adresses and they all valid. SO, kindly help me to solve this kind error. I really appreciate ur help.
8
2268
by: dancer | last post by:
My host Bell-south.net (now At&T)wants me to use the Dundas Mailer for sending and receiving e-mail with my asp.net application. Does anybody know anything about this? Does it work? Is it more trouble than it's worth? The host is not very helpful about anything.
6
26384
by: Dave Kelly | last post by:
Sorry for the long post, it is easier to discard information than to have to wait for it to arrive. So here goes: This code worked perfectly when I was an Earthlink customer. Sprint decided not to pardner with Earthlink and create their own IP. Since then everything email has been broke. Sprint/Embarq is the only copper wire DSL provider where I live.
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10090
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9949
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8971
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6739
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.