Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 21st, 2004, 11:25 AM
Registered User
 
Join Date: Dec 2004
Location: , , .
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.



Reply With Quote
  #2 (permalink)  
Old December 22nd, 2004, 04:29 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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.
Reply With Quote
  #3 (permalink)  
Old January 14th, 2005, 03:57 PM
Registered User
 
Join Date: Dec 2004
Location: , , .
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 = "You@YourProvider.Com"
    .Bcc = "SomeoneElse@YourProvider.Com"
    .From = "YourWebsite@YourProvider.Com"
    .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 ?




Reply With Quote
  #4 (permalink)  
Old January 15th, 2005, 05:37 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:14 PM.


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