Cdo - Send To Multiple Recipients

I'm using cdo to send auto-generated emails. I'm calling a stored procedure that returns a recordset.

In most instances, the recordset will only return one record containing one email as the value. However, there are instances, where two records can be returned with two seperate email addresses that I need to send out using cdo. This is how I'm calling the procedure:

Code:

View Replies


ADVERTISEMENT

Send To Multiple Recipients

I am using CDONTS to send a confirmation email. I am using plain text to send my email. I would like to send to multiple users, but I am already using the "To," "Cc," and "Bcc." Is it possible to send to multiple recipients in the "To" field? I am also using variables instead of hard coded email addresses. Here is my code:

Set MyCDONTSMail = CreateObject("CDONTS.NewMail")
MyCDONTSMail.From= TeacherEmail
MyCDONTSMail.To= Administrator, Administrator2, Administrator3
MyCDONTSMail.Cc= Secretary
MyCDONTSMail.Bcc= TeacherEmail

View Replies View Related

How Can I Send The Mail To Multiple Recipients

how can i send the mail (CDONT) to multiple recepients in ASP

if i select the address from the address box ,then all the selected mail id will go to TO text box with ' seperator.

View Replies View Related

ASPEmail To Send To Multiple Recipients?

ASPEmail to send to multiple recipients? I tried to use comma and semicolon but all the time give this message error:

Error: 6 - 501 Bad address syntax

nor : email@dom,email@dom,email@dom
or: email@dom;email@dom;email@dom

what is the sintaxe for it? can I only send for one recipient by time?

View Replies View Related

Multiple Recipients

I have a form that I want to email three people from - dependant upon three fields in a form.At the mo, I can only email 1 person.it doesn't work

Set iMsg.Configuration = iConf
iMsg.To = Request.form.Item("Room") & Request.form.Item("student") & Request.form.Item("teacher")

View Replies View Related

How Can I Use SMTP And ASP To Send Mail To Several Recipients On A Single Occasion?

I use CDOsys and this code to specify the recipient. I guess I could create two separate instances of the objMail and specify everything one more time, but I want to send mails to two persons at once (the recipient and myself) and therefore wonder if there is a shorter way to do it.

View Replies View Related

Multiple Recipients : ASPMailer

I'm sending email using ASPMailer thru ASP to single recipient, it is working fine. But if i m sending to multiple recipients its not working, email is going but not in proper format. i am sending some HTML format email. the email received by recipient if getting junk not in proper format.

View Replies View Related

Multiple Recipients Mail

I have few textboxes on my first page that ask for user's e mail address and other five additional e mail address after submiting that form it sends a copy to all the people use e mail address is entered.

I can send e mail to only one person if i put following code

objCDOMail.Cc = "viral007@gmail.com

or

objCDOMail.Cc = Emailtxtfield

but how can i send e mail to all the people on the list

it works if i put this
objCDOMail.Cc = "viral007@gmail.com; viralbhatt@hotmail.com"

but i have to get the value from txtbox

so if i put this code

objCDOMail.Cc = Emailtxtfield; Emailtxtfield2

it doesn't work.

View Replies View Related

Multiple Recipients Using CDONTS

somebody can whats wrong with my script, i would to add some additional recipients on the cc field, what would i do? Code:

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 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

Send Multiple Receivers

I have a database with a tbl "Email" in the tbl are two fields "Name and Email", now I have writen a asp script that emails to the all email addresses that are in tabel, here comes the problem, if I buld a loop that will bring all the emails in the same message iis doesn't allow it If i have fixed this problemm(hope that anyone can help me?), there is on more left, the recevers of this email have to see to who the email has send.Job

View Replies View Related

Send Multiple Values

I have a stored procedure that requires one variable to be filled: WHERE ItemNo = @ItemNo
Instead of sending 1 value,I'd like to send a bunch of values. I don't mind changing the SP if I new how to approach this. The user would select any number of ItemNo's from a form and submit.

Assume ItemNo's like: B1, B2, B3, etc...
The end result would be something like ...
WHERE ItemNo = B1 or ItemNo = B5 or ItemNo = B10 ...etc....

I want to build a recordset based on the user's selections. How?

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

Send Form Info To Multiple Database Emails?

I have two forms, one on each page. The user fills the first, then the second, then on the third page all the information is displayed for the user to make sure thats what they want to send.

Then they click submit on the third page and it goes through a database and depending on which category, state and county the user selected it will email all the information displayed on that third page to all the emails in the Email field in the database.

Now, I already have the first and second pages(easy enough) and the third page I can get it to display all the info how I want it and now I need to know how to go about emailing that info to the emails that match the specific fields? Right now all I have it doing on the third page, instead of submitting it for emailing, it just displays the info from the forms AND emails that match from the database. Code:

View Replies View Related

Jmail - Add Recipients Name?

I have a Jmail form with several texfields incl. email and name of users. The mail is sent from me "John Doe" "email@domain.com" to the user filling out the form. When the e-mail is being sent it looks like this: Code:

View Replies View Related

Undisclosed Recipients Message

I'm using CDO Message to send out a newsletter, but I want to keep the recipient list hidden from view in the email TO: field and just show <undisclosed recipients>

How can I accmplish this? Code:

View Replies View Related

Contact Form Varying Recipients

I have a standard formmail contact form that I would like to customize the recipient on. In other words, I want to be able to specify the recipient in a string in some cases, but when it is not specified have it send to a default recipient. What's the easiest way do accomplish this?

View Replies View Related

Will CDOSYS Handle Sending To 2000 Recipients?

I have a database of 2000 subscribers. I need to send an HTML email to the entire list, but the mail needs to be individual to each recipient, so I need to loop through a script integrating database results into the mail-out.

My host doesn't have any ASP email components installed on the server other than CDOSYS.

Will CDOSYS be able to handle this, or will it flake/timeout? I need to be sure that when my colleague presses 'the button' it works (I'll be on holiday at the time!)

View Replies View Related

Get Data From Form, Send To A Html File And Send A Mail

i am trying harder to mix this 2 solutions... but without success... the below on seen to be grabing a template and replace the data with the values posted in a form Code:

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

Send Sms Through Asp

I've been researching how to send text messages and ringtones to cell phones. I've found out that one way is to use ASP which I can handle a bit. Thing is that it seems that you have to subscribe to a pretty costly service that will transmit your messages.
The only exception I've found so far is http://smsonweb.www1.dotnetplayground.com/ksms.asmx?op=SendSMS but it doesn't seem to work.
Does anyone know of any other free services for this or where I can find more info.I'm not looking to develop any commercial software just to learn something new.

View Replies View Related

Send SMS

How can I send a sms from my asp page.even i don't know whether it is posiible or not.

View Replies View Related

Send Fax

I want to send fax from my asp pages. Is it possible. If yes how to send it.The fax no has been stored in the database.

there is one url but this code is giving internal server error something replicate data.

View Replies View Related

Send XML

Does anyone have an example of ASP streaming XML? Can I set content headers to indicate the page returns XML? Can this XML be a string or must it be prepared with DOM? I need to create an ASP that queries Access and Oracle,combines the data and returns it as XML.

View Replies View Related

Send SMS Using Asp

I want to know something about how to send sms trough ASP,Any help regarding this very much appreciable,If some one have the Sending SMS Script then let me know.

View Replies View Related

ASP To Send SMS

I do not get a error msg, but my sms is not send out. Code:

View Replies View Related

Send Informations

I Want to send email but i couldnot make plz help send both asp and html form
cdonts,aspmailer,aspmail

View Replies View Related

Send To A Friend

how can I use a mail.to or mail.addaddress with a request.form() ?

I mean, ill get an error if i code:

mail.to request.form("friend")

how can I code it?

View Replies View Related

How To Send Mail

I have the code for the sending mail but i do not know to loop it. I have been given specification saying that i should send mail after registration and deregistration.

so i have a asp page given the action function of the register form so the page updates the registration done. so i given after registration the send mail code and want to have the loop or condition for the mail to be sent to the person who updates registeration
and code is as follows....

<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY> .....

View Replies View Related

Mail.send

I'm 99.9999999999999999999% sure there haven't been any code changes, since the date stamps of the code are older than any email 'failures'

The email piece quit working using the mail.send. If there haven't been any changes made to previously working code, where do I look for the problem now? I restarted the SMTPservice in IIS. Our real email is hosted remotely, I checked with the admin and she said no changes were made, i.e., not blocking port 25 traffic from the gateway.

I guess this isn't ASP specific, but any ideas how to troubleshoot this?

View Replies View Related







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