I've been using CDO to send email from my web server for a while now but
today the emails aren't being sent. They are in the queue folder on my
server. I've restarted SMTP service but that didn't work. How can I get
these sent?
I have a few queries regarding on email. Currently my web hosting provider uses Windows 2003 Server IIS 6.0 to host my ASP websites. In my own PC, I am also currently using Win XP Profession IIS 6.0 to run my ASP files.
I would like to create a pogram that would automatically sent out an email. But the problem is I have know that CDONTS do not work for Windows 2003 Server or XP Professional. It only currently work for Win 2000 Server.
Please help and perhaps show me the code of sending an email out automatically. Is there a code that can work for all servers?
I have a form which will be processed by being sent to an ASP page. I would like the ASP page to take the data from the Request.QueryString (which I know how to do) and format it so I can have it emailed to me in a nicer format. My problem is that I do not know how to have ASP send an email. I know how to send an email using the mailto: protocol by making it look something like the following:
However, this will usually take the user to their default email client and ask them to send an email by putting the specified subject and message in for them, but wait for them to do any desired editing and click their send button. I simply want the email to be sent straight from ASP. Is this possible?
Im have made up a form that sends the information via email to an email address. Whenever I test the form though, the email does not display in HTML format. The email displays the html code but I want it to display as an html page.
I am trying to send an email to someone as the person clicks on a link...i have been trying the CDO, CDONTS, JMail and other methods but none of them work!!an example is as follows:
Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="mymail@mydomain.com" myMail.To="someone@somedomain.com" myMail.TextBody="This is a message." myMail.Send
Could someone advise me on the best way to send email either using asp or html? I'm not sure which way would be best. Basically I have a page confirming that data has been entered into a database and displaying what has been entered. I then want to have a link to email the information to someone. The email address has already been entered into the database.
I asked how to send an email using CDO instead of CDONTS and got several responses. They were all good, I tested the code and it works well. However, I forgot to mention that I need to set the email body to be in HTML rather than in plain text format. Would appreciate if someone could post a complete example on how to do this.
I have tried to use this peace of code to send test email
If Request.form("submit")="Submit" Then Set objMail = CreateObject("CDONTS.NewMail") objMail.To = "alex@alex" objMail.From = "alex@alex" objMail.Subject = "Feedback" objMail.BodyFormat = "0" ' -- HTML format objMail.Body = "Name: " objMail.Send Set objMail = Nothing end if
It works fine but when I go to the drop folder it is filling it with hundreds of emails. When I look inside pickup folder there is only one email message. Does anyone knows why the drop folder is constantly filling with new email messages?It looks like it repeats it all the time like some kind of loop.I am using it locally for testing only
I am using an asp page to send email from a access database. I would like it to send an HTML version if it can, and if not then it will send plaintext. I have seen this feature before, but not sure if asp can handle it.
I want to test my mail method, when i was setting up IIS i installed stmp so thats ok. When i send the mail it goes into the mailroot folder and into a folder called queue but it does'nt actual send to the address?
Set EnquiryMail = CreateObject("CDONTS.NewMail") EnquiryMail.From = "admin@nci.ie" EnquiryMail.To = Email EnquiryMail.Subject = "Access to NCI Recruitment" EnquiryMail.Body = BodyText EnquiryMail.Send Set EnquiryMail = Nothing
I have made one site for me, I have created one contact us page where user can fill the form and send his message to us. I am using SMTP to send email to my domain and I also want to send confirmation email to visitor but email does not go specially when domain are hotmail and yahoo etc. I am using code like this:
Dim emailMessage As New Mail.MailMessage emailMessage.From = "visitorsEmailAddress" emailMessage.To = "myEmailAddress" emailMessage.Subject = "Email from web" emailMessage.Body = "Message here" SmtpMail.SmtpServer = "myServerAddress" SmtpMail.Send(emailMessage)
Can some body tell me how I can configure SMTP to send 2 way emails from my web page?
I scoured the forums and am looking for the easiest solution to send email through .asp. cfm/php all have easy defined tags that allow this. Does .asp have a similiar solution?
I've seen a lot about cdonts,yet to read this,if there is another way,if not,i better start reading.
I have tried to use this peace of code to send test email
If Request.form("submit")="Submit" Then Set objMail = CreateObject("CDONTS.NewMail") objMail.To = "alex@alex" objMail.From = "alex@alex" objMail.Subject = "Feedback" objMail.BodyFormat = "0" ' -- HTML format objMail.Body = "Name: " objMail.Send Set objMail = Nothing end if
It works fine but when I go to the drop folder it is filling it with hundreds of email. I thought my seting objMail to nothing it would stop sending it. When I look inside pickup folder there is only one email message. why is it happening?
the best way to send email either using asp or html? I'm not sure which way would be best. Basically I have a page confirming that data has been entered into a database and displaying what has been entered. I then want to have a link to email the information to someone. The email address has already been entered into the database.
I just noticed the "Sending eMail in ASP" article. I started to put some of the code in my ASP application and realized that I don't know how to get a customers email address into the following statement;
Mail.from = "whatever.com"
I have the customers email address in a access database and on a form. What is the syntax to get the email address into the above quotes?
Ok sending an email is simple but what I need to do is exclude 8 email addresses. before it actually sends the mail I need it to ckeck that the maill address is not on of the 8 specified can any on point me in the right direction. Code:
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 having a problem sending email to a certain address, which gathers information from a web form(text, up to 2 attachments) . It seems to be having a doing the actual send. It creates the message but never does send it. I say that it creates the email because when check the mailrootqueue folder, all of my attempts are in there. I have no idea why it isn't sending as i am sending to and from the same email address!!! Below is the code I am using:
<% SUB sendemail(fromwho, towho, subject, body) dim objCDO Dim objConf Dim objFields Const cdoSendusingPort=2 Set objCDO=server.CreateObject("CDO.Message") Set objConf = Server.CreateObject("CDO.Configuration") Set objFields = objConf.Fields With objFields .Item(cdoSendUsingMethod) = cdoSendUsingPort .Item(cdoSMTPServer) = "localhost" .Item(cdoSMTPServerPort) = 25 .Item(cdoSMTPConnectionTimeout) = 10 .Item(cdoSMTPAuthenticate) = cdoBasic .Item(cdoSendUserName) = "username" .Item(cdoSendPassword) = "password" .Update End With objCDO.From=fromwho objCDO.To=toWho objCDO.Subject=subject objCDO.TextBody=body objCDO.Send END SUB
<% If request.Form("send").count > 0 then set objMessage = CreateObject("CDO.Message") objMessage.Subject = Request.Form("sub") objMessage.Sender= request.Form("from") objMessage.To="myemail@hotmail.com" objMessage.TextBody=request.Form("msg") objMessage.Send response.Redirect("contactus.asp") end if %>
I'm suppose to allow users to send feedback to myemail@hotmail.com using a webpage. So i've used this asp code. But it seems like the code doesnt work for me. I've tried the page out, and there was no email sent to that address.
I have my edit page set so that, at a later date when payment comes in, I change the field "Confirmation of Funds" to Yes, which has a value of 1, which automatically sends an email to the customer whose funds I've received.
The problem is, if I go into the edit page later, to change an address or whatever, the email will get sent again, since the Confirmation of Funds field is still set to 1.
Is there a code I can stick in, after the code which sends the email, that will change the Confirmation of Funds field to 3, which I have as "Email Sent"? I already have that as a selection in my dropdown box, but I need to automatically change it after the email is sent.
I'm thinking something along the lines of
If COnfirmation of Funds = 1 Then Confirmation of Funds = 3 End If
Obviously that's wrong (I even tried it!) Can someone give me the proper syntax?
I have a client that wants to send HTML based email.
Building and sending isn't a problem, but he wants to include a plain text link at the top of the email that will display if the user doesn't not accept HTML email. Maybe it is the product we are using to send the email, but there is no way to include non-HTML formatted text in the email. Is there a way to send non-HTML and HTML in a single email?