Multiple Email Recipient

the script works but i wanna have this email to be sent to more than one recipient (see below code in red). I did add another ObjMail1.To tag for another email recipient but doesnt work.

<%Response.Buffer=True%>
<html>
<head>
<title>Thanks</title><%
Dim salutationname,salutation,t1name,t1,t2name,t2,t3na me,t3,t4name,t4,highqualificationname,highqualific ation,checkname,check,MyNewRandomNum
Randomize
MyNewRandomNum = Round(Rnd * 100000000000)+1
salutationname = "Salutation"
salutation = Request.Form("salutation")
t1name = "Name"
t1 = Request.Form("t1")
t2name = "Telephone number"
t2 = Request.Form("t2")
t3name = "Email"
t3 = Request.Form("t3")
t4name = "Age"
t4 = Request.Form("t4")
highqualificationname = "Qualifications"
highqualification = Request.Form("highqualification")
checkname = "Options"
check = Request.Form("check")
Dim stname,st
stname = "Comments"
st = Request.Form("s1")
Dim ObjMail1,ObjMail2
Set ObjMail1 = Server.CreateObject("CDONTS.NewMail")
'CHANGE THE EMAIL ADDRESS IN QUOTES BELOW TO THE ADDRESS YOU WANT THIS MAIL SENT
ObjMail1.To = "info@abc.com "

ObjMail1.From = t3
ObjMail1.Subject = "Enquiry"& "" & "QUEUE NO: " &Trim(MyNewRandomNum)& ""
ObjMail1.Body = t1name & vbcrlf&_
t1 & vbcrlf&_
t2name & vbcrlf&_
t2 & vbcrlf&_
t3name & vbcrlf&_
t3 & vbcrlf&_
t4name & vbcrlf&_
t4 & vbcrlf&_
highqualificationname & vbcrlf&_
highqualification & vbcrlf&_
checkname & vbcrlf&_
check
ObjMail1.Send
Set ObjMail1 = Nothing

Set ObjMail2 = Server.CreateObject("CDONTS.NewMail")
ObjMail2.To = t3
ObjMail2.From = "info@abc.com"
ObjMail2.Subject = "Thanks for your enquiry."& "" & "Your QUEUE NO: " &Trim(MyNewRandomNum)& ""
ObjMail2.Body = " Hello " &"" & t1 & ".You have submitted your enquiry to us. You will hear from us shortly. " & "" & ":" & st &""
ObjMail2.Send
Set ObjMail2 = Nothing
Response.Write"<center />Thank You.You will hear from us soon. "
%>

</head>

</html>

View Replies


ADVERTISEMENT

Email Recipient

how do I get the response from the user to an email recipient?

View Replies View Related

Different Email Recipient Issue

The form I have created is intended to send a email to an address based on what subject the user selects. Right now the form processes fine, but I receive no emails.

Dim name, email, phone, subject, message, customer, advertisement, truck, objNewMail
name = Request.Form("name")
email = Request.Form("email")
phone = Request.Form("phone")
subject = Request.Form("subject")
message = Request.Form("message")
customer = Request.Form("customer")
advertisement = Request.Form("advertisement")
message = Request.Form("truck")

Set objNewMail = Server.CreateObject("CDONTS.NewMail")
objNewMail.From = Request.Form("email")

if ("subject") = "1" then
objNewMail.To = "mrowan@hackworthrepro.com"
'hri@hackworthrepro.com

elseif ("subject") = "2" then
objNewMail.To = "foundsheep@yahoo.com"
'dcs@hackworthrepro.com

elseif ("subject") = "3" then
objNewMail.To = "foundsheep@gmail.com"
'production@hackworthrepro.com

'else if ("subject") = "4" then
'NewMailObj.To = "bmaury@hackworthrepro.com"

'else if ("subject") = "5" then
'NewMailObj.To = "slinton@hackworthrepro.com"

'else if ("subject") = "6" then
'NewMailObj.To = "mmartin@hackworthrepro.com"

'else if ("subject") = "7" then
'NewMailObj.To = "jvivio@hackworthrepro.com"

'else if ("subject") = "8" then
'NewMailObj.To = "hri@hackworthrepro.com"

end if

objNewMail.Subject = "Message from HRI Website"
objNewMail.Body = "Name: " & name & _
"<br>Email: " & email & _
"<br>Phone: " & phone & _
"<br>Subject: " & subject & _
"<br>Message: " & message & _
"<br>Heard About HRI from: " & customer & _
"<br>" & advertisement & _
"<br>" & truck

objNewMail.BodyFormat = 0
objNewMail.MailFormat = 0
objNewMail.Send

Set objNewMail = nothing
Response.write "<p>Thank you for contacting Hackworth Reprographics, Inc. Your message has been successfully sent. You should expect a response from us within one business day. Have a great day.</p> <p>Return to <a href='default.asp'>Home Page</a></p>"

View Replies View Related

Configuring SMTP To Send Email To The Recipient

It seem that I did not configure the SMTP service on a Windows 2000 server correctly because all the email is been sent to InetpubmailrootQueue directory. Do I need to install Outlook for the email to send the mail to the recipient?

View Replies View Related

Email Send Failed: The Server Rejected One Or More Recipient Addresses

I am using ASP formmail from www.brainjar.com. I keep getting this error message:
Form could not be processed due to the following errors:

Email send failed: The server rejected one or more recipient addresses. The server response was: 550 endlessenergysystems.com.

The email address in the form is correct and does work. I have changed the settings to different email address and SMTP servers to try to figure out the issue. However I still get the same error. Here are the basic settings:

referers = Array("www.endlessenergysystems.com", "endlessenergysystems.com")
mailComp = "CDOSYS"
smtpServer = "smtp.readyhosting.com"
fromAddr = "info@endlessenergysystems.com"

View Replies View Related

Recipient Name In CDONTS

When sending an email, is it possible to include the recipients name with the email address?

View Replies View Related

Different Recipient For Different Geographic Locations

I've been using aspmailer by Tom Germain but I don't understand how to get it to do this (or find another mailer script that will) - assign different recipient email addresses for different geographic locations, then process accordingly, depending on the geographic location selected from list on form.

View Replies View Related

Multiple Email Address

I'm sending mail using below code. It works fine. How can I send email to more than one address. I wanna add one more address in .to feld or in .cc

Set cdoMessage = Server.CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "abc@abc.com"
.To = "xyz@xyz.com"
.Subject = "abc"
.HtmLBody = body
.Send
End With

View Replies View Related

Authenticating/identifying Recipient Of Mail (with Link)

I'm looking to distribute links to a site by mail, and then identify the users following those links. (ie. embedding user id in the url, and retrieving that data)

I think Dev sheds activate account feature does what I need, as does similar features of other sites, so I would think this is pretty standardized. Unfortunately, I can't figure out what I need to feed the search engines in order to elicit a tutorial....

View Replies View Related

Email Code Run Multiple Times

I have an html page with standard contact us type form. This when posted goes to an asp page which stores the data and then sends an email to me. It then redirects back to the original email form with a message thanking the user for the contact.

The problem is I am getting multiple spoof emails which are being generated form the asp page. Some one is accessing and then just refershing the page so it generates numerous emails.

Is there a way of either hiding the asp page in the original HTML form or checking that the page has been called by the html form rather than just refreshed.

View Replies View Related

CDONTS: Email With Multiple Attachments

i've finally integrated a way to send multiple attachemts from within an asp page and it works!!!!!

View Replies View Related

Sending Multiple Attachments Via Email

Just want to confirm if you can add multiple attachments like this? Code:

Mail.Host="test@yahoo.com
Mail.FromName="test@yahoo.co.uk"
Mail.AddAttachment "C: est.doc"
Mail.AddAttachment "C: est2.doc"

View Replies View Related

Jmail.SMTPMail Error '8000ffff', 503 Must Have Sender And Recipient First

Can anyone please help me with this. I have same code to send the emails. But once in a while i am getting this error messages. Could you please tell me what might be the possible reasons that makes this occur.

jmail.SMTPMail error '8000ffff'

503 must have sender and recipient first

Here are the program details: ....

View Replies View Related

Email Multiple Recipients From Recordset (jmail)

I'm trying to send an email (jmail) to everyone in a recordset but I'm getting no joy,I keep getting a "not all servers received message" error or something similar, can someone please take a look at this code and see if they can spot my glaring errors ?

<%
set rsetReminder = Server.CreateObject("ADODB.Recordset")
rsetReminder.ActiveConnection = MM_connmessages2_STRING
rsetReminder.Source = "SELECT * FROM accessgroups WHERE ((accessgroups.fldjoined<Date()-14)) AND fldGroup = 'Guest' ORDER BY fldjoined DESC"
rsetReminder.CursorType = 0
rsetReminder.CursorLocation = 2
rsetReminder.LockType = 3
rsetReminder.Open()
rsetReminder_numRows = 0
%>
<%
While NOT rsetReminder.EOF
firstname = rsetReminder.Fields.Item("fldFirstname").Value
lastname = rsetReminder.Fields.Item("fldLastname").Value
emailadd = rsetReminder.Fields.Item("fldEmailAddress").Value
username = rsetReminder.Fields.Item("fldusername").Value
password = rsetReminder.Fields.Item("fldPassword").Value
usrid = rsetReminder.Fields.Item("fldnewuserid").Value

crlf=chr(13)+chr(10) .....

View Replies View Related

Email Notification Query (many To Many) :: Multiple Directions

I could sure use some conceptualization and query help with a Page Watch
System I am building in Access 2000 and Asp.

I need to cycle through databae and generate a compiliation query email that
notifies a person of yacht(s) that have changed on our website:

Key database tables.....

View Replies View Related

How To Send Multiple Attachments To Email, From This Script I'm Using Now...

Here's the script I'm using now to send me a picture selected in a form (from a browse button type thing), sent to me in the attachments.

Right now it will only send the one picture (field name="Attachment"), how can I change this script to send multiple (for example; ten) pictures in the attachments from the form??

Here's the script...

View Replies View Related

Email Multiple Recipients With CDO Mail Component

I'm a PHP programmer who for some reason was tasked with fixing some code on an asp page. I have what I feel should work, but I am getting this error:

CDO.Message.1 error '8004020c'

At least one recipient is required, but none were found.

/admin/mass_email_monthly.asp, line 47

Line 47 being this line: objMessage.Send

Now I want to have multiple recipients pulled from the database as illustrated in the code, but it isn't working. I have no idea why, and I have no idea what that error message means? Can anyone point me in the proper direction of a tutorial that can help? OR possibly show me where my syntax is wrong?

View Replies View Related

How To Display Multiple Form Fields In Email Using This Script?

I am using this script to submit my form fields into the body of my email:

***********************************************
Dim strBody
dim ix, formElementName, formElementValue
strBody = "Results of form submitted at " & Now() & vbCrLf & CrLf
For ix = 1 to Request.Form.Count
formElementName = Request.Form.Key(ix)
formElementValue = Request.Form.Item(ix)
strBody = strBody & (formElementName & ": " & formElementValue & vbCrLf)
Next

***********************************************
I'm completely new to vbscript and have been searching all over the net for an example of this script being used with mutliple fields with absolutely no luck.

The closest I've come to getting something back from this thing is when I tested the script with these elements:

FormElementName = Request.Form.Key("Name")
formElementValue = Request.Form.Item("Name")
formElementName = Request.Form.Key("Telephone")
formElementValue = Request.Form.Item("Telephone")
formElementName = Request.Form.Key("Email")
formElementValue = Request.Form.Item("Email")

Which produced this result:

Email: Email
Email: Email
Email: Email

Its seems the answer to my problem lies in defining the 'Key' and possibly the 'Item' parameters but I haven't been able to find any documentation on these terms. Can someone out there please save me from what probably is a very simple solution?

View Replies View Related

SQL Server - Update/Insert Multiple Cols Into Multiple Tables

Just as the title says I am trying to do something impossible with a single SQL statement. I am doing an ASP webpage for internal use at the company I work for.

I want to know if there is a way to insert/update data into multiple tables in 1 SQL statement.

If it requires functions | views or anything else that is fine but I don't want to have 3-4 different SQL statements to update 2-3 different columns in different tables.

View Replies View Related

Searching Multiple Memo Fields In Multiple Tables In Access

I have a search option on my website, which should perform a search on 4 fields, as follows:

tblNews
headline
content

tblDatabank
filename
description

It only needs to return matches which are an exact match of their search criteria. For instance, searching for "I am here" would return a record which contained "I am here", but not just "I" or "I am" etc.

I need to return all these records as part of one recordset preferably, as I want to be able to order them etc., though I imagine you may suggest I use an array somehow to merge two recordets etc., then reorder them?

View Replies View Related

How To Update Multiple Records With Different Multiple Value

i hav problem with updating the data. In the asp page i hav displayed records based on search criteria. in display mode im displaying the to be updated field in combo box for each similar contract_no. each contract_no will hav different no of rows and to be updated combo box.

based on the selected value in the combo boxes of different contract_nos i hav to update the combo value with old value. user select multiple combo values at a time I need anybody's help with detailed programming logic.

View Replies View Related

Email Validation Of Email Address Within An Access Database

Im running a simple mail system program which emails newsletters to a database list of 3000+ users.

The program loops through a database containing the emails and sends them out using ASPEmail.

My question is, is there some way i can validate each email address so that if there are invalid characters e.g. the space in "blah @blah.com"
it will skip the record and continue the loop.

At the moment i have a working program however, whenever the program comes across an invalid email address it stops at that record and prevents the program from emailing any further.

View Replies View Related

CDONTs - Problem Formatting An Email, From Form To Email

I am having a problem formatting an email message which comes from a form.

I am currently having difficulty with the <br> tag which I am using for line spaces within my email. I am getting an expected statement error message which is pointing to the line which is underlined below. I can't think what is causing this.

The code for my processing page is below:-

View Replies View Related

Generating Email Address And Textarea To Be Inlcluded On Email

1. I want users to type in their email address on a textfield, and after users press the "Submit" button. The info will automatically go to another person's email to receive a compliment, suggestion, etcetera.

2. Another is how to include the message written on a textarea of a form with the ASP code supplied below: Code:

View Replies View Related

Asp Email Verification Check Valid Email Thru Mx Record

how to write to check verification valid email thru nslookup or mx record or dns record. Is it possible to do that. Is there any tutorial from sitepoint, previously found it but i lost the link.

example to check assume test@domain.com is not a real email, abc@domain.com is real email
how do u check it.

View Replies View Related

Cdonts Email Script Won't Send Email

i used the following script but it won't send the email. any suggestions why?

<%
Dim TBdy
Dim MyCDO
CR = Chr(13)
Set MyCDO = Server.CreateObject("CDONTS.NewMail")
MyCDO.From = "person@something.org"
MyCDO.To = "allstar@aol.com"
MyCDO.Subject = "collegebound info"
TBdy = Request.Form("cb_name")
MyCDO.Body = TBdy
MyCDO.Importance = 1 (Normal)
MyCDO.Send
Set MyCDO = nothing

%>

View Replies View Related

Email Form - Verify Email Address

Just starting to play with scripts, and need a little guidance. I want to check to make sure that the email addresses users enter in a form are identical before it will allow them to submit. here's what i have:

the variable for the second email address is EmailFrom2

'validation
Dim validationOK
validationOK=true
If (Trim(EmailFrom)="") Then validationOK=false
If (validationOK=false) Then Response.Redirect("emailerror.htm?" & EmailFrom)
If (Trim(Name)="") Then validationOK=false
If (validationOK=false) Then Response.Redirect("nameerror.htm?")
If (Trim(CityState)="") Then validationOK=false
If (validationOK=false) Then Response.Redirect("citystateerror.htm?")
If (Trim(SchoolName)="") Then validationOK=false
If (validationOK=false) Then Response.Redirect("schoolnameerror.htm?")

View Replies View Related

ASP Email Form: Sends To Some Email Addresses But Not Others..

here is the script i use:

Set myMail=server.CreateObject("CDO.Message")
myMail.Subject="subject"
myMail.From="me"
myMail.To=request.form("email")
myMail.TextBody="hello"
myMail.Send
set myMail=nothing

this script sends emails to some addresses but not others--and its based on the email service it's sending to. for instance, hotmail email addresses get the email, but mail.com email addresses dont get the email. i have tried sending it to other email hosts, too, and still, some work, some don't. what is going on here?

View Replies View Related

Email Through CDONTS Using ISP Email Server

I am using CDONTS component to send email in ASP.

The code is some thing like this:

Dim Mail
Set Mail = Server.CreateObject("CDONTS.Newmail")
mail.From = "abc@hotmail.com"
mail.to = "xyz@hotmail.com"
mail.subject = "Test Email Subject"
mail.body = "This is Email body message"
mail.send

Now the question is that this code will use the Default Virtual SMTP Server in IIS, but I want to use my ISP's SMTP server. please tell me how to do this. I have used my ISP's email server in Outlook express and it is working fine. Please do not suggest to use "CDO" or "CDOSYS" to use for sending emails because I must have to use "CDONTS".

View Replies View Related

Remove Email Address/ Pseudo Email Address

has anyone got a function or subroutine which will remove blank out or remove email addresses.

i've wrote a function which will remove valid email addresses, it's pseudo addresses such as "blah @ blah.com" or "blah_at_blah_dot_com" or "blah_at_blah_._com"

the function is basically to stop users posting an email address in a message.

View Replies View Related

Multiple SQL's

I have a database being updated by a text file every ten minutes, so in the code that is why the column names are messed up.

My problem is I get all the sums, and counts all working. What I need to do is at the end of it have a sum for for all the columns returned, i.e. col002, I need all the sums in that column added up for a total at the bottom. The following code works but when I try to do column totals I can't get it to work, Code:

View Replies View Related

Multiple Queries

I need to connect to 2 different databases in ASP and execute two different queries. Please let me know how to proceed. I understand that ADODB.Command option can connect to only one database at a time.

View Replies View Related

Multiple Redirect

I have to do a multiple redirect. That means one ASP-script should do more than one HTTP-request.

e.g.
response.redirect(url1)
response.redirect(url2)
...

I know, that it won't work like that... Does anyone now a solution or workaround

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved