Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 21st, 2004, 11:25 AM
Registered User
 
Join Date: Dec 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dreamweaver submit form to an email

I am reading Wrox beginning D/W MX and I have created the form in Asp as the book says. How could i send the data of the form to an email account instead of ths asp file.



 
Old December 22nd, 2004, 04:29 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Take a look here: http://imar.spaanjaars.com/QuickDocId.aspx?QUICKDOC=249

Somewhere half way down the article there is a section called "Using the Collaboration Data Objects to Send E-mail".

That shows you how to send an e-mail with information from a form post.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old January 14th, 2005, 03:57 PM
Registered User
 
Join Date: Dec 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much for your help.
I am following the second method.
I bit of more help please Imar.

How could i have multiple lines in the body of the message ?

I use this code:
 With oMessage
    Set .Configuration = oConfiguration
    .To = "[email protected]"
    .Bcc = "[email protected]"
    .From = "[email protected]"
    .Subject = "User " & UserName & " left a message"
    .HTMLBody = Message
    .Send
  End With


I mean how can i have the Message then 2 blank line another message etc ?




 
Old January 15th, 2005, 05:37 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Since you're sending HTML (you're setting the HTMLBody), you can simply send out HTML, including the <br /> tag for a line break:

Message = "Hello<br />This is on a new line"

If you set the TextBody, to send out plain text messages, use vbCrLf:

Message = "Hello" & vbCrLf & "This is on a new line"


HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Three MC's And One DJ by Beastie Boys (Track 12 from the album: Hello Nasty) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Submit button in the form sends an email in C# debjanib ASP.NET 2.0 Basics 2 July 17th, 2006 03:56 AM
How 2 Send Email When Submit Clicked BrianWren ASP.NET 1.0 and 1.1 Professional 4 April 21st, 2006 11:55 AM
Send email & submit to DB at same time brettdalldorf ASP.NET 1.0 and 1.1 Basics 2 July 2nd, 2005 08:49 AM
How can we submit a form without a submit butto phpsharma BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 October 20th, 2003 08:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.