Topic awaiting preservation: Sending mail with ASPMail (Page 1 of 1) |
|
---|---|
Paranoid (IV) Mad Scientist From: Right-dead center |
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. 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 %>
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>
|
Maniac (V) Mad Scientist with Finglongers From: Germany |
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. |
Paranoid (IV) Mad Scientist From: Right-dead center |
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. |
Maniac (V) Inmate From: raht cheah |
posted 03-01-2006 06:46 |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 03-01-2006 08:42
So... how big is that open relay of yours jk? |
Maniac (V) Inmate From: raht cheah |
posted 03-01-2006 16:41 |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 03-01-2006 21:05
|
Paranoid (IV) Mad Scientist From: Right-dead center |
posted 03-02-2006 15:43
Yeah, that would work great on my own site but this isn't for me! |