Replacing "For Each" Statement In Mail Sending Code
The following script sends form results in an html email. It causes each form field result to have exactly the same html. I need it to have unique html for each form field result. Can you help???? I tried changing the for each statement to a for statement but couldn't figure it out.
The original code is : (from Brainjar.com - I emailed them but they did not respond)
body = "<table border=""0"" cellpadding=""2"" cellspacing=""0"">" & vbCrLf
for each name in fieldOrder
body = body _
& "<tr valign=""top"">" _
& "<td><b>" & name & ":</b></td>" _
& "<td>" & Request.Form(name) & "</td>" _
& "</tr>" & vbCrLf
next
body = body & "</table>" & vbCrLf
When I attempt to send mail from my IIS, it works, but after I upload to a website, the feature does not seem to work as nothing is arriving in my inbox. Here is the source of my test code:....
Here's the scenario. I'm currently using cdosys/asp to send mail to our SMTP server. We use a product called MailFilter to check for SPAM. It doesn't work very well. If MailFilter isn't working cdosys also has problems and emails don't get sent. As these email are confirmations for customer's bookings this means lots of customers calling to see where their confirmation emails have gone. The root of the problem is MailFilter but that here to stay. So I had this thought of sending the message to a queue of some sort so at least they will get to the customer eventually rather than being lost for good. So here's the question:
Can I/How do I send messages to a mailbox on our exchange server using cdo.message?
I' m using opertion system XP PRO,i have instelled the IIs 5.1. im trying to simulate sending email to my outlook express but it'snt working,somebody can tell me if i need to install any other componente?
how to conigurate my smtp(what is my host name,how can i find it)?
i use a personal web server and i'd like to send a mail into an ASP page. Usually, i use CDONT component but it seems it does not work on Personal Web Server.
Our server is a Windows 2000 Server with Service Pack 3, IIS 5 with Lockdown Wizard applied.
My first problem is related to CDONTS.NewMail. Up until recently, I had no problems sending e-mail with this little utility. Our current development efforts are moving to .NET so it didn't matter to us that this is something that won't be supported anymore by MS. However, while we are in the process of flipping to .NET, this is something we're still using for the time being.
The problem I'm having is that the e-mail is not getting sent at all! I don't get any errors or anything like that, and when I look at our IIS 4 relaying SMTP mail server, and then look at our big outgoing mail server, I can't find the e-mail anywhere in there. It's like it vanishes. Can anyone give any insights?
Secondly, we have an older Access based training application that again, up until recently was working just fine. I don't know if the IIS lockdown wizard did something I'm not aware of, but now on the line in the ASP file where the server goes to open the database using the DSN, I get an "Unspecified Error"
I checked www.aspfaq.com and found the article about this and tried all of the tricks mentioned there for this error message. Granting the IUSR_machinename account read/write access toe the TEMP directory got me further into the file, but it didn't get me far enough to finish it because later on in the file, when the server goes to open another connectio nthe the database, I get he same problem. I cannot modify the source code on this page without killing our support contract or warranty on the product. Can anyone give me any thoughts on this one?
I am using CDONTS to send a mail.There is no error in the code and it says that the mail has been send successfully,But i am not receiving any mails .The Code
Set vobjMail = CreateObject("CDO.Message") vobjMail.From= Email address vobjMail.To= Email address vobjMail.Subject= The subject vobjMail.TextBody= The Body vobjMail.Send
I would like to know if this can be achieved! On the form I a drop down menu that's called ("Escalation_type") the values are eta, hdtv, and supervisors. I have some ideas but I am not sure if it will work or not. If the use chooses an eta as a value I would like it to be sent a mailbox for exam: no@where.com. If they choose hdtv as value I would like it to be sent to a different mailbox. Can this be achieve by using the case statement or the if statement?
I'm working on a few intranet pages and have a doubt on how to send e-mails ( i have the aspemail component installed) to outside clients including the invoice for services payment.So differently from Intranet issues where you easily provide a link embeedded on the e-mail, I can't figure how to show the info from outside offices network. Does anyone knows how to do it? perhaps printingscreen the html page by code and then send to the client as a embedded image or something....?
I attach files from the folder uploads which r uploaded there by the user. The problem is that when i recieve the attachment i get a .dat extension with it for eg ;if i attach a.txt i recieve a.txt.dat....
I am usually a CDONTS man but the hosting company say I must use CDOSYS. The following code seems to only work correctly when the recipients email address is the same as the sender address.
I have tried to send the email to Hotmail, Yahoo and GMail accounts and it does not send. No error messages, just is not received in the inbox of the account.....
I'm trying to send mail from my ASP page using CDO, but when I execute the query no mail is sent. How do I set up my internet incoming mail server and outgoing SMTP server?
I'm having a few problems sending an email using CDO from a webpage , just wondered if anyone knew what the error message i'm getting could mean , and if the code i'm using looks ok.
Set ObjMail = Server.CreateObject("CDO.Message") Set iConf = CreateObject("CDO.Configuration") Set Flds = iConf.Fields .....
I tried to cend mails with CDONTS.NewMail and the local smtp service of the iis. It works. BUT I tried to send a mail to a invalid address. I got an email (like I configured at the smtp) but the badmail directory is allready empty! I nned the entries for a bounce-management!
I am learning ASP.NET , I want to send mail from my application so I need to configure IIS.I have written code for it but my mail is in Queue or Droped. I think I have not configured IIS properly.Can anyone tell me in detail how to configure it.
i have an asp file that will send an email to such person but some data should be etrieved from the database.once i run it, only the last record is being displayed... do i have to put do while ... in Mail part?what is the code am i going to put in "Mail.Body" part?
I am using this code to send a mail from a feedback form page, but this code is not working. can anybody tell me what mistake I am doing . My requirement is , the message of feedback form will go as a content of a mail to a specific person.
<% Set Mail=Server.CreateObject("CDONTS.NewMail") Mail.To="emailid" Mail.From="emailid" Mail.Subject="Just testing my script" Mail.Body="Hey! I am sending this email through an ASP Page, and guess what? I haven’t learnt much yet, but know that ASP is very powerful." Mail.Send Set Mail=nothing %>
i have an ASP script that steps thru a db containg email addresses, using cdonts. i get server script timeout errors with any more that around 200 email address. i'm on shared hosting and am unable to change server timeout times.
is there an alternative that i can send emails to quite a few members (over say 500+) without getting timeouts ?
im using code below to send an email, let say sample is my company domain, when i try to put myMail.From and myMail.To as Lee@sample.com.sg, but when i try to put myMail.From and myMail.To as same as code below, it seems like never send ou the mail. Can anyone tell me what is the problem? Code:
I am trying to send e-mails to customers in a database. Each e-mail is customised for each customer, so I cannot simply copy all customers on the same e-mail. My logic loops through the appropriate recordset and attempts to send a notification e-mail to each customer. The problem is that about 10 - 20% of the e-mails do not get sent! (I know this because I :bcc myself on all the e-mails.) I also know that there is no problem with the e-mail addresses because when I try again to run the program with the same addresses but a smaller list of customers, those mails go out just fine.
The program generates a report which shows that it tried to send all the appropriate e-mails, but in reality several of the mails were not sent. What's interesting is that all of the e-mails near the beginning of the program execution get sent. But as the program goes on, more and more get skipped. It seems that CDONTS cannot keep up with the program execution.
Does anyone know of a way to solve this? What would be great would be a DO... WHILE loop that kept trying until the e-mail was sent successfully. But, for that approach to work, there would have to be some way for the program to check if the e-mail had gone out successfully. Another option would be a loop that waited until the *previous* e-mail had been sent successfully before attempting to send the next one.
Does anyone know of a way to test either of those conditions or of an alternate approach to avoid this problem I am having?
I don't know anything about ASP language but a friend of mine gave me permission to use his questionnaire for my site. He paid someone a lot of money to do his whole site and he let me take it for free from him but he said he doesn't know how it works, he knows that whenever someone submits his questionnaire online he receives it in a form of an HTML Email showing him everything they filled out or left blank......
I searched through this forum to find a answer to my problem but couldn't find it in any of the forums, so I'll describe the problem and the solution here.
I am using ASP on SBS 2003 with IIS 6.0 and Exchange 6.5.7226.0. I have a page where the user can submit a form to send email. I followed Microsoft's sample code to use either CDOSYS or CDOEX, but I kept getting error 80070005, which is an access denied message. Here's my simple sample code:
<% function sendEmail(to, from, subject, body) { var iMsg = Server.CreateObject("CDO.Message") iMsg.To = to iMsg.From = from iMsg.Subject = subject iMsg.TextBody = body iMsg.Send() } %>
Here's what I did to fix the problem: From the IIS Manager, right-click Default Web Site, choose Properties, then the Home Directory tab. Change the Application pool from DefaultAppPool to ExchangeApplicationPool.
I am generating a shipment order booking. For this, I am generating a report which contains the container details. And another report from another file, generating the packing list.
These two report are from two different pages. I want to send these two reports together by mail.
I am trying to Send the values of checkboxes to the user's email and display in the form of List <li></li>. The values of checkboxes are sourced from a table in my access DB. I am using Jmail to send this info. Can anyone please help me how to retrive values from the check boxes, split, make a list and send in the body of e-mail. Here is wht I 've done so far :