ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 28th, 2003, 09:39 AM
truegent truegent is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 3 truegent User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ASP formmail / autorespond

I'm trying to use a form where a site visitor can chosse several items and submit their e-mail address. The form should then send the visitor the items they selected as e-mail attachements and mail the form's contents to the website owner's e-mail.

Can anyone recommend a way to do this using ASP.

I have access to aspFusion's advSMTP component on my hosting service, but neither they nor aspfusion provide any documentation with examples of how to use it.

Thanks in advance for any help.

Reply With Quote
  #2  
Old February 28th, 2003, 06:29 PM
makman111 makman111 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Minneapolis, MN
Posts: 11 makman111 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Are you looking for the email componant?

There is an email componant from Dundas software (www.dundas.com) is free and very easy to use. I love it. Sending attachmens is very easy is well documented

A small snip of sample code (w/o the attachment code) is:

<snip>

Set objMailer = Server.CreateObject("Dundas.Mailer")

objMailer.SMTPRelayServers.Add "127.0.0.1"
objMailer.FromAddress = "admin@mysite.com"
objMailer.FromName = "Your Webserver"
objMailer.Subject = "Your requested info"
objMailer.TOs.Add Request.Form("Email")
objMailer.BCCs.Add "admin@mysite.com"

sBody = sBody & "Here is the info.." & vbCrLf
sBody = sBody & "" & vbCrLf
sBody = sBody & "Add misc text here..." & vbCrLf
sBody = sBody & "" & vbCrLf

objMailer.Body = sBody

objMailer.SendMail

Set objMailer = Nothing


</snip>

Reply With Quote
  #3  
Old March 7th, 2003, 10:08 AM
RayHogan RayHogan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: NJ, USA
Posts: 11 RayHogan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Assuming you are using a web hosting company, check their support information.

There are numerous ways to do what you want, and it depends upon server configuration.

I've used Jmail, but there are many other components that do the trick.

Ray

Reply With Quote
  #4  
Old March 7th, 2003, 03:57 PM
dotMATRIX dotMATRIX is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Cincinnati, Ohio
Posts: 25 dotMATRIX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to dotMATRIX
If you're hosted on an IIS server why not use the built in CDONTS object? Nothing extra is needed.

Code:
<%
	Dim objCDOMail, Email_Body
	
	set objCDOMail = Server.CreateObject("CDONTS.NewMail")

	with objCDOMail

		.MailFormat	= 1		'0=MIME, 1=TEXT
		.BodyFormat	= 1		'0=HTML, 1=TEXT
		.Importance	= 1
		.From		= "webmaster@domain.com"
		.To		= CustomerEmail
		.Subject		= "your subject here."
		Email_Body	= "text"
		Email_Body	= Email_Body & "more text"
		Email_Body	= Email_Body & "more text, etc."
		.Body		= Email_Body

	end with
	
	objCDOMail.Send

	set objCDOMail = nothing
%>

Last edited by dotMATRIX : March 7th, 2003 at 04:00 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > ASP formmail / autorespond

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap