|
|
|
|
|
| | |
|
Active Server Pages help tutorial how to ASP Help ASP Tutorials ASP Programming ASP Code - ASP Free CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Jmail post search results |
From: |
Swift |
Date: |
10/23/2000 3:37:59 PM |
IP: |
139.130.78.137 |
Hi all,
I will start with what I do know works and what I am trying to do.
I have used the below to send my mail. This works fine.
The (Search.Fields.Item("what ever").Value) are the results "value" (name and email address) from a search which will change each time.
What I cant do is loop through the results to send an email to each one.
The scrip I sent you is my attempt at trying to do this, as you can see me ASP is crap.
I hope you can help.
Regards Swift
Dim strRecipient, strName, srtEmail_subject, strEmail_from, strEmail_message, strBcc
strRecipient = (Search.Fields.Item("EMAIL").Value)
strName = (Search.Fields.Item("FIRST_NAME").Value)
strEmail_subject= Request.Form("EMAIL_SUBJECT")
strEmail_from = Request.Form("EMAIL_FROM")
strEmai_message = Request.Form("EMAIL_MESSAGE")
strBcc= ("info@swiftx.com.au")
set Message = Server.CreateObject( "JMail.Message" )
Message.From =strEmail_from
Message.AddRecipient strRecipient
Message.AddRecipientBCC =strBcc
Message.Subject= strEmail_subject
Message.Body= strEmai_message
Message.Send( "smtp.server-mail.com" )
set jmail=Nothing |
|
|

|
|
|
|
|
|
|
|
|
|