473,387 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 7136
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.HTMLBody 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.asp>
<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="VBSCRIPT" 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.CreateObject("Dundas.Mailer") 'Mailer object

'specify the recipient of this message
objEmail.TOs.Add "yourATemailaddress.com"

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

'specify the sender of the message
objEmail.FromAddress = Request.Form("email")

'specify an SMTP Relay server. This increases the speed and reliability of
the operation
objEmail.SMTPRelayServers.Add Request.Form("SMTP")
Dim sBody
sBody="The user's name is " & Request.Form("fname")
'initialize the HtmlBody property, we'll throw a header into it
objEmail.HTMLBody = "<Html><Head></Head><Body>" & sBody
objEmail.SendMail

%>

"Raphael Gluck" <iwish i could tell you @alas blame the spammers> wrote in
message news:O0**************@TK2MSFTNGP12.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**************@tk2msftngp13.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("test")

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.HTMLBody = "<Html><Head></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.me.uk? Probably not.
If you're hard coding the e-mail address, just do

objEmail.TOs.Add "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**************@TK2MSFTNGP09.phx.gbl...
Ah, clever never knew that, Thanks for that tip. I have IE 6 and still got
that error 500
DSMailer.Address.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.Add Request.Form("tr****@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
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,...
1
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...
1
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,...
0
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
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...
4
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...
0
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...
8
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...
6
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.