Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 August 25th, 2003, 11:22 AM
Authorized User
 
Join Date: Aug 2003
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default emailing forms..

Hey guys, just wondering if there is anything wrong with this code? Im just trying to send the form that i made to an email. But it seems like it keeps on timing out. Is it because of the safemailserver?

<%

Set Mailer = Server.CreateObject("SMTPsvg.Mailer")

Mailer.RemoteHost = "win2krelay.safemailserver.com"

Mailer.FromName = "lixin"

Mailer.FromAddress= "[email protected]"

Mailer.AddRecipient "nguy,mike","[email protected]"

Mailer.Subject = "subject"

Mailer.BodyText = "body"



if Mailer.SendMail then

Response.Write "Mail sent..."
'Response.Redirect(Request.Form("_redirect"))
else

Response.Write "Mail send failure. Error was " & Mailer.Response

end if


%>

 
Old August 25th, 2003, 08:15 PM
Authorized User
 
Join Date: Jun 2003
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to planeswalk
Default

Hi,

Do you get any Mail.Response written as output? Also, you might want to try using your own mail server to send emails as I don't think the safemailserver SMTP will allow relaying.

Cheers!


Marlon Villarama
Support Team
Web Burner Hosting
[email protected]
www.webburner.com
Toll-Free: 877-535-2876
 
Old August 26th, 2003, 01:42 PM
Authorized User
 
Join Date: Aug 2003
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yea, the message with it idled out!

But then i contacted the isp that is hosting the site, they said that they dont support sendmail.exe, and that i should use mail.exe.

Is there any samples on how to use mail.exe???

" You will need to point your Formmail Scripts Mailprog to mail.exe. This should resolve the issue you are encountering."


 
Old August 26th, 2003, 03:54 PM
Authorized User
 
Join Date: Aug 2003
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i have been searching the net, and i dont know what is this mail.exe?
is that a unix server or something...

another question is that if its a unix base server, does that mean i have to write perl on my script to email my formS???? Or it doesnt matter...what language i do it in?

confused






Similar Threads
Thread Thread Starter Forum Replies Last Post
Emailing from Excel danielharris Excel VBA 0 January 11th, 2006 06:39 PM
dynamic emailing ips2004 JSP Basics 1 December 8th, 2004 01:57 PM
HTML Emailing [email protected] BOOK: Expert One-on-One Access Application Development 1 November 24th, 2004 06:32 PM
Auto-Emailing hafizism Excel VBA 1 October 29th, 2004 09:43 AM





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