C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » HTML »

Send emails


Posted Date: 20 Oct 2009      Posted By: Aparna.U      Member Level: Gold     Points: 1   Responses: 5



hi
i want to send emails using asp code.the code i used is(i wrote this in dreamweaver)

<%
Dim myBody
Dim MyCDONTSMail
%>

<%
Set MyCDONTSMail = CreateObject("CDONTS.NewMail")
MyCDONTSMail.From= "info@graceprint.com"
MyCDONTSMail.To= "ap@gmail.com"

MyCDONTSMail.Value("Reply-To") = request.Querystring("Email")
MyCDONTSMail.Subject="Request an estimate"
myBody = ": : : Request an estimate : : :" & vbcrlf
myBody = myBody & "This is a: "& request.Querystring("This is a") & vbcrlf
myBody = myBody & "I am a : "& request.Querystring("I am a") & vbcrlf
myBody = myBody & "Name : "& request.Querystring("Name") & vbcrlf
myBody = myBody & "Company : "& request.Querystring("Company") & vbcrlf
myBody = myBody & "Address: "& request.Querystring("Address") & vbcrlf
myBody = myBody & "City, State, Zip: "& request.Querystring("address2") & vbcrlf
myBody = myBody & "Country : "& request.Querystring("Country") & vbcrlf
myBody = myBody & "Phone Number : "& request.Querystring("Phone") & vbcrlf
myBody = myBody & "Fax Number : "& request.Querystring("Fax") & vbcrlf
myBody = myBody & "E-mail : "& request.Querystring("Email") & vbcrlf
myBody = myBody & "Prefered Response : "& request.Querystring("Please contact me by") & vbcrlf
myBody = myBody & "Artwork Provided : "& request.Querystring("The artwork that I have is")
myBody = myBody & "ProjectName : "& request.Querystring("ProjectName") & vbcrlf
myBody = myBody & "ProjectDueDate : "& request.Querystring("ProjectDueDate") & vbcrlf
myBody = myBody & "Comments : "& request.Querystring("Comments")
MyCDONTSMail.Body= myBody
MyCDONTSMail.Send
set MyCDONTSMail=nothing
response.Redirect("estimate.html")
%>

when i upload the file into server and test in browser it says the error Page cannot be found.when i click the submit button in estimate.html this is the asp script page to be executed.pls give me a solution.its very urgent

regards





Responses

Author: Lalji    20 Oct 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

you can visit this about this error

http://www.thesitewizard.com/archive/custom404.shtml



Author: Deepak Yadav    21 Oct 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

Hi,
For sending mail you can also use the code as mentioned on this link:
http://www.w3schools.com/asp/asp_send_email.asp

Cheers
Deepak Yadav



Author: vineeth kumar    04 Nov 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

wt man asins asp code in html????
if u want the code just go to this link
www.tizag.com



Author: Dhanesh.K.R    05 Nov 2009Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

You visit this site

http://articles.sitepoint.com/article/sending-web-email-asp-net



Author: Shameer    15 Nov 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

Hi,

Check the below websites:

http://www.motobit.com/tips/detpg_send-email-from-asp/

http://www.devarticles.com/c/a/ASP/Sending-Email-From-a-Form-in-ASP/



Post Reply
You must Sign In to post a response.
Next : Mask the url
Previous : Css if the char exceeds 60 then it should be in next line(including space)
Return to Discussion Forum
Post New Message
Category: HTML

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use