Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Code snippet which shows how to use the ASPMail co...
Website:
http://www.a1vbcode.com/
Submitted:
3/17/2000
Version:
ASP
Compatibility:
ASP
Category:
ASP
Views:
14342
Code snippet which shows how to use the ASPMail component to send mail from your ASP pages.
Declarations:
none
Code:
<% Dim email, name Dim Mailer Set Mailer = Server.CreateObject("SMTPsvg.Mailer") 'create Mailer object email = Request.QueryString("email") ' Get e-mail from querystring/form name = Request.QueryString("name") ' Get name from querystring/form Mailer.FromName = name Mailer.FromAddress= "feedback@a1vbcode.com" 'Your mail domain Mailer.RemoteHost = "mail.host.com" 'Name of your mail host Mailer.AddRecipient "A1VBCode", "feedback@a1vbcode.com" 'Recipient Mailer.Subject = "Newsletter Subscription" Mailer.BodyText = "E-mail : " & email & "Name: " & name Mailer.SendMail 'Send mail Set Mailer = Nothing %>
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement