Usually, when I send HTML emails, I just SRC the image to my web server, but now I would like to consider embedding images for those instances when potential customers may view the email when offline.
Can this be done with CDO or is another component required?
I have a web form where a client can select which site members to send an email to.
This form is populated from the contents of the member table, so the form can have 0-x names listed on it depending on member expiration dates.
When the form is submitted, the code loops through the form contents and sends an email to those members that meet the selected criteria.
All this worked perfectly when I was sending text emails, but since I changed, it sends the message correctly, but the last person gets everyone else as well. For example, if I have three members (mem1, mem2 and mem3) to send emails to, here is what happens
mem1 gets the correctly formatted message
mem2 gets mem1's correctly formatted message plus mem2's message - one right after the other. Code:
I want to send email in html format with containing more images added dynamically using cdo.message method. can you pls explain any body one how to do this. i alredy done this, but it send only one picture with that email. here i posted my code also. pls any one tell me what is the problem in this code.
html = "<html>" html = html & "<head>" html = html & "<meta http-equiv=""Content-Type""" html = html & "content=""text/html; charset=iso-8859-1"">" html = html & "</head>" html = html & "<body>" html = html & "<p><font face=""Arial"" ><b>Name: " & name & "</b></font></p>" html = html & "<p><font face=""Arial""><b>Company Name: " & cname & "</b></font></p>" html = html & "<p><font face=""Arial""><b>Country: " & ctry & "</b></font></p>" html = html & "<p><font face=""Arial""><b>E-mail: " & email & "</b></font></p>" html = html & "<p><font face=""Arial""><b>Details: " & remarks & "</b></font></p>" html = html & "<p> </p>"
for i = 0 to ubound(iid) html = html & "<img border=""0"" src=""" & "http://www.abcd.com/img/" & fnme(i) & """></td>" next
html = html & "</body>" html = html & "</html>"
mail.From= emailFrom mail.Configuration=cdoConfig mail.To = emailTo mail.Subject = emailSubject mail.HTMLBody = html mail.Send set mail = nothing set cdoConfig = nothing
i have a page that dynamically displays payment info for accounts. since each account differs in the number of rows to display, i loop through my recordset and use the following asp embedded html: Code:
I have a code in asp which counts the number of visitors visited the site, how do I call this file to the html page? Is it by using <!include ...> or is there any other way of doing it. I tried using the include method it is not working and also I tried using <script language="JavaScript" src="hitcounter.asp"></script>, that also does'nt work. When they open the index page it should automatically display the visitor's number. Can you please help me with this?
I know there is AddEmbeddedImage but does this only work only for images on your hard drive - can it be used for images that are web based? If not is there a way to embed an image in an email on the fly before sending - all web based?
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.
My readers that are lotus note user receive the mails I send using cdonts with image displayed as attachement in place of inline.
I read http://www-1.ibm.com/support/docvie...uid=swg27002572 that say "for displaying image inline in lotus you must set correct mime header as content disposition : inline"
however I can't achieve it with cdonts : my mime header is stuck to "content disposition : attachemnt" and I can't see how to change it.
I read somewhere that using attachurl instead of attachfile will fix it but my test did not achieve this way.Any of you experienced sending inline image to lotus note users with cdonts ?
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".
Sending mails using CDONTS works great but I have (for now) just 1 minor problem. I would like to place the username (of the person located in my database) inside my input-box (type="text") and send that as a page to the person using cdonts.
here's a part of my code (simplified):
HTML = HTML & "<html>" HTML = HTML & "<head>" HTML = HTML & "</head>" HTML = HTML & "<body>" HTML = HTML & Email: <input type=""text"" name=""email"" value=""<% = strEmail %>""> HTML = HTML & "</form>" HTML = HTML & "</body>" MyCDO.Body = HTML
So the problem arises at line 5 here. He does not understand the asp-tags inside the text. Anyone who knows how to solve this?
I got a little problem while sending HTML e-mails with CDONTS.
I generate my e-mail body without problems into a string variable. When I display it to the browser via a "response.write", it's OK, including images. Then I set this string variable to the CDONTS.Newmail object (body property), and I send the mail. Code:
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?