Closed Thread Icon

Topic awaiting preservation: Sending mail with ASPMail Pages that link to <a href="https://ozoneasylum.com/backlink?for=27549" title="Pages that link to Topic awaiting preservation: Sending mail with ASPMail" rel="nofollow" >Topic awaiting preservation: Sending mail with ASPMail\

 
Author Thread
krets
Paranoid (IV) Mad Scientist

From: Right-dead center
Insane since: Nov 2002

posted posted 02-23-2006 01:16

I'm working on a webpage for a friend of mine and she wants a form for prospective clients to send her mail. I know nothing about ASP and she has a .Net account so I can't use my old standard formmail script that I usually use.

Here's a snippet of code I got from a website:

code:
<%
	if Request.Form("action") = "submit" Then
			Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
			Mailer.RemoteHost = "mail.franklycreative.com"
			Mailer.FromAddress = Request.Form("email")
			Mailer.FromName = Request.Form("name")
			Mailer.AddRecipient "Recipient", "heremail@franklycreative.com"
			Mailer.Subject = "Form Submission from Frankly Creative"
			messBody = "Clients information is below" & vbCrLf & "--------------------------------------------------------------" & vbCrLf

			messBody = messBody & "Name: " & Request.Form("name") & vbCrLf
			messBody = messBody & "E-mail: " & Request.Form("email") & vbCrLf & vbCrLf

			messBody = messBody & vbCrLf & "Message:" & vbCrLf
			messBody = messBody & Request.Form("message") & vbCrLf & vbCrLf
			
			Mailer.BodyText = messBody
			if Mailer.SendMail then
				Set Mailer = Nothing
				Response.Redirect "success.html"
			else
				Response.Write "Mail send failure. Error was " & Mailer.Response
			end if
	end if
%>



Then the form looks like:

code:
<form method="post" action="contact.asp">
<div id="form">name:<br /><input class="input" size="40" type=text name="name" value="<%=Request.Form("name")%>" /><br />
email address:<br /><input class="input" size="40" type=text name="email" value="<%=Request.Form("email")%>" /><br />
question/comment:<br /><textarea cols="34" rows="5" name="message" class="input" style="width: 500px;"><%=Request.Form("message")%></textarea><br />

<input class="button" type="submit" name="submit" value="submit" />
</div></form>



But I'm having no luck with this thing. All their help desk is telling me is that I need to submit a password along with the username but I have no idea how to do that.

Any clues?

:::11oh1:::

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 02-23-2006 11:58

well, my googeling didn't help - apperantly SMTPsvg.Mailer doesn't support authenticated SMTP - which is probably what you need to do.


But this and a google search for 'send mail asp.net' should get you on the right track.

so long,

->Tyberius Prime

krets
Paranoid (IV) Mad Scientist

From: Right-dead center
Insane since: Nov 2002

posted posted 03-01-2006 04:51

I tried to understand that but it could have been in Japanese and I would have gotten more out of it. I don't have much coding experience at all and especially none with ASP. The host I'm working with though only supports ASP and I can't figure out how to get this done.

Damn, all I want to do is email the results of a form to someone, why the hell does it have to be so damned difficult?

:::11oh1:::

JKMabry
Maniac (V) Inmate

From: raht cheah
Insane since: Aug 2000

posted posted 03-01-2006 06:46
code:
<form method="post" action="http://11oh1.net/cgi-sys/FormMail.cgi">





Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 03-01-2006 08:42

So... how big is that open relay of yours jk?

JKMabry
Maniac (V) Inmate

From: raht cheah
Insane since: Aug 2000

posted posted 03-01-2006 16:41

that's kret's

I use nms formmail with authorized referrer and recipient arrays, so again I say

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 03-01-2006 21:05

krets
Paranoid (IV) Mad Scientist

From: Right-dead center
Insane since: Nov 2002

posted posted 03-02-2006 15:43

Yeah, that would work great on my own site but this isn't for me!

:::11oh1:::

« BackwardsOnwards »

Show Forum Drop Down Menu