ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 27th, 2002, 11:03 AM
Nauman Nauman is offline
Twenty Seven
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Multan, Pakistan
Posts: 103 Nauman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 33 m 2 sec
Reputation Power: 8
Send a message via ICQ to Nauman
Unhappy Emailing Form Results

Hello...

I've got a form and I want that when user press submit button then the form emailed to a specific email address... I've used the Mailto: but It opens outlook... I dont want this... Any help in ASP, ASP.NET, JavaScript so that When user click on submit the form automatically emaild to a specific address without outlook's outgoing mail server defined...

____________
Thanks...
Nauman Ahmed

Reply With Quote
  #2  
Old November 27th, 2002, 03:03 PM
markerdave markerdave is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Illinois, USA
Posts: 71 markerdave User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Nauman,

Hi! If you are using a Windows server with IIS you probably have CDONTS already available. CDONTS allows you to send emails through your web pages using an object in your ASP script (and it won't use outlook to do so). If you search the net for it, you will find a lot of examples and resources. If you don't have CDONTS there are other ones that can also send email such as ASPEmail or JMail. These also have a lot of examples available.
__________________
Oh I wish, I wish I hadn't killed that fish...

Reply With Quote
  #3  
Old November 27th, 2002, 08:40 PM
Nauman Nauman is offline
Twenty Seven
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Multan, Pakistan
Posts: 103 Nauman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 33 m 2 sec
Reputation Power: 8
Send a message via ICQ to Nauman
Hello...

Thanks a lot for ur reply... Any other option... Actually my client hasnt got the support of CDONTS on his webserver...

Reply With Quote
  #4  
Old November 27th, 2002, 10:18 PM
markerdave markerdave is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Illinois, USA
Posts: 71 markerdave User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
If your client doesn't have CDONTS, I would use JMail. It is free and easy to use. Other than this method I don't know of any other way to send an email.

Reply With Quote
  #5  
Old November 28th, 2002, 03:46 AM
Nauman Nauman is offline
Twenty Seven
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Multan, Pakistan
Posts: 103 Nauman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 33 m 2 sec
Reputation Power: 8
Send a message via ICQ to Nauman
Talking

Hello...

Ok Mark... I'll try it

Reply With Quote
  #6  
Old December 4th, 2002, 07:17 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 9 m 52 sec
Reputation Power: 10
Send a message via ICQ to stumpy Send a message via MSN to stumpy
CDONTS is part of IIS - I think you HAVE to have it

Reply With Quote
  #7  
Old December 10th, 2002, 01:53 PM
lckidwell lckidwell is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 7 lckidwell User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
CDONTS requires that you have the SMTP server on the same server - for security reasons, most places don't allow that. JMail and Persits are what i use ...

here's an easy way to set it up - put this function in yer handy include file... and call it with the variables as shown...

PHP Code:
'Starts here....

Function sendMail(fromName, from, rcpt, subject, body)


Persits component....

 
on error resume next

 set mail     
server.CreateObject("Persits.MailSender")
 
 
' change with your smtp server
 
 mail.Host     = pSmtpServer 
 mail.From     = from
 mail.FromName     = fromName
 mail.AddAddress rcpt
 mail.AddReplyTo from
 mail.Subject     = subject
 mail.Body     = body

 on error resume next
 
 mail.Send



JMail Time (don't run all of these, just pick one)

 set mail     = server.CreateOBject( "JMail.Message" ) 
 mail.Logging     = true
 mail.silent     = true
 mail.From     = from
 mail.FromName     = fromName
 mail.Subject    = subject

 mail.AddRecipient rcpt

 mail.Body     = body
 
 on error resume next
 
 mail.send(pSmtpServer)
 

 
ServerObjectsASPMail1
  
 set mail 
Server.CreateObject("SMTPsvg.mail")

 
mail.RemoteHost  pSmtpServer

 mail
.FromName    fromName
 mail
.FromAddress from
 mail
.AddRecipient rcptrcpt
 mail
.Subject     subject
 mail
.BodyText    body

 on error resume next
 
 mail
.SendMail
 

if err <> and then  
%>  <html
    <
br><br>
    
Error while sending email:  <%response.write Err.Description%>
    <
hr>
    <
br>From    : <%response.write from%>    
    <
br>To      : <%response.write rcpt%>
    <
br>Subject : <%response.write subject%>
    <
br>Body    : <%response.write body%>        
    </
html>
   <%
 
end if
 
end Function 

Last edited by lckidwell : December 10th, 2002 at 02:09 PM.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > Emailing Form Results


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




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek