I am building a web script that will enable a user to compose an email and send it to potentially thousands of subscribers on their mailing list from a DB. The ASP script will use CDONTS or Jmail.
Problem is that I told my host about the app and they say they only allows 1000 emails to be sent daily from my server. The script will possibly send thousands of emails daily. Any body have experience with using ASP for bulk emailing, and how to get around server limitations?
Novice here, I am doing bulk emails using CDO, connection to a smtp server at another location. I am trying to streamline my script, or through it out and start over to make it faster.
I know that I am doing something wrong and that messages should be sending much faster.
Set objConfig = Server.CreateObject("CDO.Configuration") Set Fields = objConfig.Fields
With Fields .Item(cdoSendUsingMethod)= cdoSendUsingPort .Item(cdoSMTPServer) = "blah.com" .Item(cdoSMTPServerPort) = 25 .Item(cdoSMTPConnectionTimeout) = 10 .Item(cdoSMTPAuthenticate) = cdoBasic .Item(cdoSendUserName) = "blah@blah.com" .Item(cdoSendPassword) = "blah" .Update End With
Set objMessage = Server.CreateObject("CDO.Message") Set objMessage.Configuration = objConfig
' Open database here
objRS.Open SQLString, objConn,2,2 I = 0 With objMessage .From = "Blah Mailer <blah@blah.com>" .Subject = Request.Form("Subject") .TextBody = Request.Form("Body") Do while not objRS.EOF .To = objRS("Name") & "<" & objRS("Email") & ">" .send objRS.MoveNext I = I + 1 Loop End With objRS.Close objConn.Close Set Fields = Nothing Set objMessage = Nothing Set objConfig = Nothing
my web host offers ASPMail - which works fine for sending individual emails, but I'm not too keen on using it to send out bulk emails because generally it times out, and then I am left with having to work out who has received their email, and who hasn't.
Anyway, just checking to see if anyone here has any advice about what options I could use to send out bulk emails. My idea of "bulk" is anywhere between 300 and 1400 at a time.
I know there are lots of free services on the web out there which offer free email newsletter services - do people have any recommendations for any of these, or any ASP based components or scripts which I could use on my site to get around this problem?
is it possible to rn a client side vbscript to send messages using cdo.message and cdo.configuration? what are the requirements to do this? my wks are xp and 2000 and all have cdosys.dll registered. do i have to have outlook express loaded.
i have workstations that don't have outlook but rather lotus notes and want to send email to an smtp server. these emails have local attachment thus the need to run client script versus server scripts. is this possible or am i on the wrong track.
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.
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".
I'm doing a website for a Japanese client and he needs to send out batch emails to his subscribers every month. So I used CDONTS to create and send the emails.
The problem is when I send out the emails in my company's internal server,everything turns out fine but when I use the external mail server, the Japanese email suject turns garbled. I've been trying to get this done for ages and my deadline is nearing now.
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".
I'm having an issue sending email to AOL accounts using CDONTS on my server. The emails always fail. Has anyone else had this problem? Email is always delivered to other accounts problem free, I just dont know why AOL is rejecting the mail.
I am trying to send an email using CDONTS, and I am having troubles with newlines. There was a past thread a while back that said to use vbNewLine to insert a break in the message, but I still can't get it to work.
I used vbNewLine, vbCrLf, chr(10) & chr(13) and my text still continues to flow right along. I want to keep it plain text rather than HTML.
my CDONTS email isn't sending.. I think the code is set up correctly but I'm not positive. Is there a way to specify a mail server, if necessary? It seems to be going through without a hitch but the emails are never arriving, to any box I send them to. So perhaps our server needs some sort of authentication before permitting outgoing mails, I'm not really sure. Is there a way to check this?
I have our form set up on a standard html page, with a "action=process.asp" command..
here's the process.asp file..
<% 'Option Explicit Dim objIndexMail Set objIndexMail = Server.CreateObject("CDONTS.NewMail") objIndexMail.From = Request.Form("email") objIndexMail.To = "me@myemail.com" objIndexMail.Cc = "me@myhotmail.com"
objIndexMail.Subject = "New Inquiry from" & Request.Form("parents")
Response.Write("Ready to create body")
objIndexMail.Body = "bunch of body text here"
Response.Write("body Created")
objIndexMail.Send Response.Write("Sent")
Set objIndexMail = Nothing Response.Write("Thank You") %>
it gets to the thank you message every time, but nothing ever arrives in my mailboxes...
I am rather new to cdonts and using email. I am planing an email site, however I am not sure how the email is stored on the server nor do i know how to read it from the server. I would guess that it is stored in a database, if so how would it be populated?
I have a form that needs to handle international characters withing the UTF-8 character set. I have tried all the recommended strategies for getting utf-8 characters from form input to email message and I cannot get it to work. I need to stay with classic asp for this.
Here are some things I tried:
'CDONTS Call msg.SetLocaleIDs(65001)
'CDOSYS msg.HTMLBodyPart.Charset = "utf-8"
I included the following meta tag in the email HTML: <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
I also tried modifying the CharSet and CodePage of all involved Request and Responses.
I was able to Response.Write the form content on post back to the screen and it was properly rendered. However, none of my efforts can get the email to render with the correct codebase. I have tried opening the email in Outlook and Thunderbird. Neither one picks up on the UTF-8 charset meta tag.
I've tried to send a mail using CDONTS.DLL but the mail goes in to C:InetpubmailrootQueue"
Here is my code
Dim Mailer Set Mailer = Server.CreateObject("CDONTS.NewMail") Mailer.To = "testemail@hotmail.com" Mailer.From = "expediteur@email.com" Mailer.Subject = "Titre du message" Mailer.Body = "Le texte qui sera envoyé" Mailer.Importance = 0 Mailer.BodyFormat = 0 Mailer.MailFormat = 0 if not Mailer.Send then response.write ("mail envoye") else response.write ("Mail non envoyé. Erreur : ") & Err.Description end if Set Mailer = Nothing
I work with win xp pro, do can I use CDONTS or CDO? I work on local (the webserver is located:C:Inetpubwwwroot)
I am trying to help out my friend by creating a invoicing page in ASP for his business, basically consisting of 3 pages : (no sensitive info will be asked for.. )
1.info submission page -cust enters his info 2.info summary -cust info summarised plus quote calculated 3.invoice page -quote emailed for invoicing.
At present I have made the initial set up and it works fine. However, I am using CDONTS 1.2 to email the gathered cookies with the following code:
I am using the following set of commands to send a formatted email:
"AllTopQuestions" actually pulls out formatted text (including all html tags and inverted commas). - - If this text is ascii and not formatted, the mail goes out fine. But, once the text in the database gets formatted, the outgoing mail contains no body at all. Code:
I made an contact form, and an asp script for the email, but my messages get sent to the mail/queue folder in inetpub. I have a hunch it has something to do with the email address I put in the "from" area since it's just made up.
I'm using cdonts object, and registered the dll, and it works fine. I also opened port 25 on my router, and tested if it really was open, and it is. Code:
I have a script that I've been using for years that emails my customer a confirmation, and bcc's me a copy. It's just a standard CDONTS script, nothing tricky, and I'm sure that it's scripted correctly. I've been having intermitant problems for the better part of a year where on occasion I won't get the email, but the customer will.
This problem seems to come in spurts where it will 'be down' for a few days, and then it will work again, with no change by anyone. Most of the time when it goes down, I get an email about a day later that is a bounce, saying that my address doesn't exist, and it's being returned to sender (which is me, at the same address!). I think there is something screwy with the way my provider has either our server or email server setup, but after at least a dozen trouble tickets, they don't seem to have fixed anything.
Has anyone ever seen this? Bottom line is what could cause the script to work every time to an outside address but intermitantly not to one within the domain?
I'm running Win2K... and have an ASP script that uses the CDONTS object properties to send email from a web-enabled ASP form. Problem is, the page is loading fine, with no errors. However, when I check the '/queue' folder in my Inetpub directory, I see all my mail queued there. It never gets sent. There are no emails in the '/badmail' folder, or in any other folder in '/mailroot'. What gives?
I'm kinda vague on how SMTP works exactly, in Win2K. What I'm trying to do is to send email over a LAN to a client. I want to avoid installing MS Exchange Server if possible. Am just trying to have a client on the LAN send email, and then have the client's Outlook retrieve said mail. All this done offline, without ever connecting to the Net.
I have a script that send emails using CDONTS. There are users that have keyboards that support Spanish characters. I am able to render the chars correctly in the body using HTML substitutions, however, the subject line comes out bad. Is there a good way to handle this situation?
Can anyone take a look at this code and see where I may be going wrong?
************************************************** * html page: <form method=Post action=get.asp> valley secretary<br> <input type="text" name="t1" size="20"><p> <input type=submit value=Submit></form> ************************************************** * asp page: <% Dim t1name,t1 t1name = "valley secretary" t1 = Request.Form("t1") Dim ObjMail Set ObjMail = Server.CreateObject("CDONTS.NewMail") ObjMail.To = "kklimarchuk@supremecouncil.org" ObjMail.From = "kklimarchuk@supremecouncil.org" ObjMail.Subject = "Form Submission" ObjMail.Body = t1name & vbcrlf&_t1 ObjMail.Send Set ObjMail = Nothing Response.Write"Thank You" %>
Here are the two pages html and calling the asp. As you can see I am new to this. I also had our Network Admin make sure CDONTS was installed correctly on IIS. Any help would be awesome. I have been trying to create an email form for months now......
I am trying to generate an email from the webpage using code below, which works fine. However I want to be able to include some dyanmic data how do I go about it ?can anybody point me in the direction of some sample code ?
Dim myMail Dim HTML Set myMail = CreateObject("CDONTS.NewMail")
HTML = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN"">" HTML = HTML & "<html>" HTML = HTML & "<head>" HTML = HTML & "<meta http-equiv=""Content-Type""" HTML = HTML & "content=""text/html; charset=iso-8859-1"">" HTML = HTML & "<meta name=""GENERATOR""" HTML = HTML & " content=""Microsoft Visual Studio 6.0"">" HTML = HTML & "<title>HTMLMail</title>" HTML = HTML & "</head>" HTML = HTML & "<body bgcolor=""FFFFFF"">" HTML = HTML & "<IMG SRC=""http://www.microsoft.com/library/" HTML = HTML & "images/gifs/homepage/microsoft.gif"" BORDER=0 " HTML = HTML & "WIDTH=167 HEIGHT=36 ALT=""Microsoft Corporation"">" HTML = HTML & "<p><font size =""3"" face=""Arial""><strong>" HTML = HTML & "Microsoft Exchange CDONTS Example</strong></p>" HTML = HTML & "<p><font size =""2"" face=""Tahoma"">" HTML = HTML & "CDO for NTS allows an easy way to send mail.<br>" HTML = HTML & "This example shows how the content can be " HTML = HTML & "an HTML page<br>" HTML = HTML & "which allows you to send rich text and" HTML = HTML & "inline graphics.</p>" HTML = HTML & "</body>" HTML = HTML & "</html>"
myMail.From="someone@microsoft.com" myMail.To="someone@microsoft.com" myMail.Subject="Sample CDONTS HTML Message" myMail.BodyFormat=0 myMail.MailFormat=0 myMail.Body=HTML myMail.Send set mymail=nothing Response.Write "Message Sent" %> </HEAD> <BODY> </BODY> </HTML>
Hey all, I'm having trouble getting email to be sent using CDONTS. I've done this many times before with no problem, but this one just seems to want to be a pain..
The site is just on an IP address right now, but it still has access to a mail server and all. Everything seems to go correctly, but the mail server has no logs of cdonts trying to send anything. the script isn't generating any errors though.
<%@ language="VBscript" %> <%
'Option Explicit
Dim objIndexMail Dim body
Set objIndexMail = Server.CreateObject("CDONTS.NewMail") objIndexMail.From = Request.Form("email") objIndexMail.To = "my email address" objIndexMail.Subject = "New Inquiry from" & Request.Form("parents") Response.Write("Ready to create body <br><br>")
body = "bunch of body text here" objIndexMail.Body = body
Response.Write("body Created <br><br>") Response.Write(body & "<br><br>")
I ran some script and confirmed tht CDONTS exists on the server...which runs on Win2k and has IIS 5.0 When i run my email script,no error is displayed ,but i NEVER get the emails im trying to send. What could be the problem.