# Small Help Needed In Asp

**URL:** https://forum.kirupa.com/t/small-help-needed-in-asp/257639
**Category:** programming
**Created:** [April 15, 2008, 9:12pm UTC](https://forum.kirupa.com/t/small-help-needed-in-asp/257639 "2008-04-15T21:12:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![v1qqr\_grp](https://avatars.discourse-cdn.com/v4/letter/v/2bfe46/32.png) [@v1qqr\_grp](https://forum.kirupa.com/u/v1qqr_grp)
#### Post date: [April 15, 2008, 9:12pm UTC](https://forum.kirupa.com/t/small-help-needed-in-asp/257639/1 "2008-04-15T21:12:38Z")

</div>

i have made very simple FORM ( what i have i will explain you )

i created 2 input boxes 1 button

FIRST INPUT BOX VARIABLE IS NAME  
SECOND INPUT BOX VARIABLE IS LAST NAME

BUTTON NAME IS SEND MAIL

NOW MY I STRUCK IN ASP PLZ HELP ( I HAVE MY ASP HOSTING )

IAM SENDING YOU THE CODE OF ASP ( PLZ CORRECT ME IF IAM WRONG ) PLZ HELP ME IN THIS PLZ ! THANK YOU !

* * *

\<%  
Name = Request.form(“name”)  
lastName= Request.form(“lastname”)  
strName = “me” ’ this is for my own name  
strEmail = “[me@abc.com](mailto:me@abc.com)” ’ this is for my own e-mail  
strSubject = “hi there how are you!” ’ this is for my own subject message  
strBody = ToComments & HearAbout & Company  
Set Mailer = Server.CreateObject(“SMTPsvg.Mailer”)  
Mailer.RemoteHost = “[mail.mydomain.com](http://mail.mydomain.com)” ’ this is for my domain  
Mailer.FromName =name  
Mailer.FromAddress =lastname  
Mailer.AddRecipient strName, strEmail  
Mailer.Subject = (strSubject)  
Mailer.BodyText = strBody

%\>

please help me in this plz thank you !!
