Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components 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 November 4th, 2003, 04:30 PM
Authorized User
 
Join Date: Oct 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default AspMail

I'm trying to send data from a form using AspMail. I've got this code setup but I'm unclear on how to set the RemoteHost property. The form data would be from multiple users, and would be sent to one Recipient-me. What would I set as the value to the RemoteHost property?

Mark

<%
 Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = Request.Querystring("fromname")
Mailer.FromAddress= Request.Querystring("fromAddress")
Mailer.RemoteHost = "mailhost.localisp.net"
Mailer.AddRecipient "Mark Lindquist", "[email protected]"
Mailer.Subject = Request.Querystring("Subject")
Mailer.BodyText = Request.querystring("BodyText")
if Mailer.SendMail then
  Response.Write "Mail sent..."
else
  Response.Write "Mail send failure. Error was " & Mailer.Response
end if
%>

 
Old December 18th, 2003, 10:14 AM
Registered User
 
Join Date: Nov 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Berni016x
Default

Hello!

This property is the adress of the mailserver!
This component is the component from ServerObjects INC.?
If yes: here is the documentation of it:
http://www.serverobjects.com/comp/Aspmail4.htm

Kind regards
Bernhard

 
Old December 21st, 2003, 01:36 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to acdsky
Default

Hi

You could also have a look at http://www.aspemail.com/ This app only consists of one dll file and works great especially if you need to relay via some SMTP server.

Regards
M

Such is Life!





Similar Threads
Thread Thread Starter Forum Replies Last Post
aspMail Morn Classic ASP Basics 3 February 26th, 2007 06:51 PM
aspMail Morn ASP.NET 2.0 Basics 1 February 25th, 2007 09:40 PM
ASPMail embaded images kalpitkk Classic ASP Professional 1 January 9th, 2006 01:06 PM
ASpMail chocobabe100 Classic ASP Basics 1 May 5th, 2005 11:27 PM
ASPMail / Shift_JIS jz552 Classic ASP Professional 0 May 4th, 2005 02:39 PM





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