Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
form information via email
Old 02-04-2005, 11:57 PM form information via email
PhilR714's Avatar
Average Talker

Posts: 18
Trades: 0
I have created a form in Dreamwaever that gets information from a person. I want to send it to an email address without bringing up the senders default email client when they hit submit. I contacted the hosting company and they suggested using aspemail from www.aspemail.com . The problem is I cannot figure out how to modify the code to include fields other than the ones they use. It is supposedly customizable. The code sample is located at http://www.aspemail.com/manual_02.html. They don't offer phone support so I emailed them my questions. Does anyone know of any other way I can accomplish this task. Any and all help would be appreciated.
Phil
PhilR714 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-05-2005, 04:06 PM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Look up some CDOSYS examples (Or CDONTS if you're on an old NT Server).
Very easy to use. You just create the object, tell it the from, to, subject, body etc. of your e-mail, then send it.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 02-08-2005, 12:43 PM
Average Talker

Posts: 17
Trades: 0
Here is a quick CDONTS example:

I've use this in my site.

Assume you have a form fields each name correspond to the ASP request.form variable.

Code'

<%

Dim strEmailBody, strRating, strAuthorName, strComment, strEmailAddress, strWebmasterEmail, strAuthorHomepage, strSubject

strSubject = Request.Form("SUBJECT")
strAuthorName = Request.Form("AUTHOR")
strEmailAddress = Request.Form("EMAIL")
strAuthorHomepage = Request.Form("HOMEPAGE")
strWebmasterEmail = Request.Form("FROM")
strComment = Request.Form("COMMENT")

strEmailBody = strEmailBody & "<br>Hello: " & strAuthorName
strEmailBody = strEmailBody & "<br><br>Thank You For Joining."
strEmailBody = strEmailBody & "<br>at www.mydomain.com"
strEmailBody = strEmailBody & "<br><br>Info Submitted Info:"
strEmailBody = strEmailBody & "<br><br><b>Name: </b>" & strAuthorName
strEmailBody = strEmailBody & "<br><b>E-mailL: </b>" & strEmailAddress
strEmailBody = strEmailBody & "<br><b>Homepage: </b>" & strAuthorHomepage
strEmailBody = strEmailBody & "<br><br><b>Comment Made: </b>" & strComment
strEmailBody = strEmailBody & "<br><br>Webmaster,"
strEmailBody = strEmailBody & "<br>www.mydomain.com"
strEmailBody = strEmailBody & "<br><br>Once again thank you!"

Dim objCDO

Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.From = "<" & strWebmasterEmail & ">" '

'Who the e-mail is sent to - Recipient's E-mail address
objCDO.To = "<" & strEmailAddress & ">"

'Use to send blind copy to webmaster.
objCDO.bcc = "<" & strWebmasterEmail & ">"

'The subject of the e-mail
objCDO.Subject = strSubject

'The main body of the e-amil
objCDO.Body = strEmailBody

'Set the e-mail body format (0=HTML 1=Text)
objCDO.BodyFormat = 0

'Set the mail format (0=MIME 1=Text)
objCDO.MailFormat = 0

'Send the e-mail
objCDO.Send()

Set objCDO = Nothing

%>
dexterz is offline
Reply With Quote
View Public Profile
 
Old 02-08-2005, 06:12 PM
PhilR714's Avatar
Average Talker

Posts: 18
Trades: 0
Thanks for all the help. I was able to resolve the problem by using a tutorial I was lead to at http://www.webthang.co.uk/default.asp. I needed to understand how to build the body variable and it was very helpful. Now that I see how it is done it is a simple process.
PhilR714 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to form information via email
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13945 seconds with 12 queries