Stars :
Status : Offline
Join Date: 20 Mar 2007
Posts: 10
Posted:
Wed Mar 21, 2007 5:58 pm ASP Email Help.? - Save this post
I am trying to create a form where my coworkers can fill out in html and have asp code to send it to me. I need some code on both the client and server side of things. Thanks _________________ Oh yeah, sometimes my mistakes turn out better than my intentions
ASPMail must be installed: (it's just an example!)<% Set Mailer = Server.CreateObject ("SMTPsvg.Mailer") Mailer.FromName = "Joe's Widgets Corp." Mailer.FromAddress = "sales@joeswidgets.com" Mailer.Subject = "Your Widget Order" Mailer.BodyText = "Your order was processed." Mailer.RemoteHost = "outbound-relay.biz.rr.com" Mailer.AddRecipient "John Smith", "jsmith@someisp.com" if Mailer.SendMail then' Message sent sucessfully response.write ("Your message was sent") else' Message send failure response.write ("Your message was not sent. ") response.write ("The error was: "& Mailer.Response) end if%> _________________ Web Development Blog
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum