# \[asp\] mailto problem

**URL:** https://forum.kirupa.com/t/asp-mailto-problem/19558
**Category:** programming
**Created:** [April 29, 2003, 8:39am UTC](https://forum.kirupa.com/t/asp-mailto-problem/19558 "2003-04-29T08:39:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![virusdoder](https://avatars.discourse-cdn.com/v4/letter/v/f4b2a3/32.png) [@virusdoder](https://forum.kirupa.com/u/virusdoder)
#### Post date: [April 29, 2003, 8:39am UTC](https://forum.kirupa.com/t/asp-mailto-problem/19558/1 "2003-04-29T08:39:27Z")

</div>

i’m trying to make a mailto, where the sendet get automaticly een mail back,

but it will not work.

here is the code:

form action=“scandoor.asp?cfg=scandank” method=“post”  
input type=“text” name=“mailnaam”

```
textarea name="mailuitleg" cols="40" rows="10" wrap="virtual" dir="ltr" 

```

lang=“nl” Vul hier uw tekst in.  
/textarea

```
input type="text" naam="mailadres"

input type="submit" title="verstuur"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
input type="reset"

```

in the scandank.dat:

[to=virusdoder@hotmail.com](mailto:to=virusdoder@hotmail.com)  
senderfield=mailadres  
subject=Info Aanvraag  
senderfield=emailadres  
fieldorder=mailadres  
extrainfo=1  
confirmbody=bedankt.txt  
onsuccess=http://www.hurtigruten.com

but it doesn’t work,  
somebody a suggestion?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 30, 2003, 7:22am UTC](https://forum.kirupa.com/t/asp-mailto-problem/19558/2 "2003-04-30T07:22:15Z")

</div>

The ASP code for processing mail is quite different to what you are trying to use…

Try something like this in scandoor.asp (obviously request all of your fields):

```auto

strWho = Request ("UserName")
strTo = Request("UserEmail")
If strWho = "" or strTo = "" Then
    Response.Write ("You must complete both the Name and Email fields.")
Else
'Now set the mailer object
    Set Mailer = Server.CreateObject("SMTPsvg.Mailer") 'Use the mailer object installed on your server
    Mailer.FromName = "Your Web Server" Mailer.FromAddress= "mailadmin@lucidsurf.com" 'You can set this to any name that you choose (I usually use the sender's email address)
    Mailer.RemoteHost = "mail.myserver.net" Mailer.AddRecipient strWho, strTo 'Place the destination email address here. This would usually be your email address
    Mailer.Subject = "ASPMail Test Message" 'Any subject line relevant to the form should be placed here
    Mailer.BodyText = "Dear " & strWho & ". This e-mail is to let you know that the ASPMail email is working..." 'In the body you can place any other form content
'Now send the email. You can just use "Mailer.Sendmail" but the following approach chcks to make sure the mail is sent. 
    If Mailer.SendMail Then
        Response.Write (strWho & " - an email was sent to you at " & strTo)
    Else
        Response.Write "Mail send failure. Error was " & Mailer.Response
    End If
    Set Mailer = Nothing 'Clean up
End If

```

Hope this helps!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 30, 2003, 7:32am UTC](https://forum.kirupa.com/t/asp-mailto-problem/19558/3 "2003-04-30T07:32:53Z")

</div>

i heve tried it with cdonts, but i’m working with a nt workstation, but it doesn’t work, he siad always coud find the path.

it’s by send, where the fould is made,

i don’t know what it is
