I'm not new about send email with CDONTS. But one thing I don't
know.. How to send name of email sender with email. As All command
I used to use is as follow.
Dim myMail
Set myMail = CreateObject("CDONTS.NewMail")
myMail.From="tom@hotmail.com"
myMail.To="paul@hotmail.com"
myMail.Subject="Hello :-)"
myMail.BodyFormat=0
myMail.MailFormat=0
myMail.Body=HTML
myMail.Send
when the reciever recieve email. Such as in hotmail box. It will show
tom@hotmail.com as sender. But I want it to show name such as
...Tom Hariton not tom@hotmail.com But I don't know that command
to add in the script.
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 get a asp-mailer setup that will send a specified attachment. I have tried both CDONTS and CDOSYS methods ... both are giving me headaches.
And the best part is how incredibly helpful the error is: (Sarcasm Intended)
Error Type: (0x80004005) Unspecified error <-- They should change that error to ... "Good Luck!" /knowledgetree/emailer-drivers.asp, line 90 I hilighted the above line in the code as well.
I did not realize that objMessage.From needs to be filled in, and that there is no vlaidation. Suppose that's how spammers work their magic.
Is there a way to determine the user's email account so I can fill in objMessage.From ? I am thinking No, that a server app can not strip something off a user's PC memory. Otherwise I will have to set objMessage.From to a generic term.
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.
I have a page that sends user comments with CDONTS, works fine.Until I put a URL (http://192.168.0.1).If I use http://domain.com it works fine.Why with the numeric URL, CDONTS does not send the mail?
Can somebody tell me, How can we send e-Mails with ASP without using CDONTS? Because some one told me that, it's possible to send e-Mails without using CDONTS. But i don't know how.
I had to write a page in ASP which sends an email. I googled and was able to write the following code:
<html> <body> <% Set Mail = Server.CreateObject("CDONTS.NewMail") Mail.To = "XXXXXXXXXXXX@XXXXXX.COM" Mail.From = "YYYYYYYYY@YYYYY.COM" Mail.Subject = "Test MAIL Subject" Mail.Body = " Body Body Body Body Body Bodyody Body Body" If Mail.Send Then Response.Write("Mail has been sent successfully") Else Response.Write("Mail Sending Failed") End If Set Mail = nothing %> </body> </html>
When I run this script on a shared hosting server, It's saying "Mail Sending Failed". I had never written ASP code before and couldn't find what the reason is.. I also checked whether CDONTS.NewMail component is available.
I just found out that CDONTS was indeed installed on our web server so I've been playing around with some easy sample codes. However, when I run the code, nothing happens. I get no errors, it seems like everything went OK, but no email! Are there firewall issues with CDONTS? If so, how can I work around them?
Set mail = Server.CreateObject("CDONTS.Newmail") mail.From = janki@yahoo.co.in mail.To = sender@yahoo.com mail.Subject = "Subject" mail.Body = "newsletter" mail.AttachFile = "C: est.zip" mail.BodyFormat = 0 'CdoBodyFormatHTML mail.Send Set mail = Nothing this code is not working please help.....
I am running the following script for sending e-mail thro web
Set objCDOMail = Server.CreateObject("CDONTS.NewMail") objCDOMail.From = "vkumar@ugs.com" objCDOMail.To = "vkumar@ugs.com" objCDOMail.Subject = "Library books" objCDOMail.BodyFormat = 0 objCDOMail.MailFormat = 0 objCDOMail.Body = "hi" objCDOMail.Send Set objCDOMail = Nothing ------------------------- I get the following error, when I call send method of CDONTS.NewMail object --------------------- Microsoft VBScript runtime error '800a0046' Permission denied
/cae/library/issueupdate.asp, line 61
----------------------------
I tried both the following. Everything looks fine. My OS is windows200 server
i am devloping a carrer page. i want 2 give the facility 2 user to upload the resume and send to the mail id. for example in yahoo mail. one can attach resume and send to the desired id. i want to do it in cdonts. so can anybody help me?????
i have create a web pages which is a register form for customer, and then when the customer fill up the form and click submit, it will send a mail to the customer for comfirmation. below is the coding i use: Code:
if objIndexMail.Send then Response.Write("Mail Sent") else Response.Write("Failure. ") end if
and it's coming up as Failure every time. Is there a way I can see the status of the .Send command, and why it came up as a failure? no errors are being generated, it's just not sending..
I know this question is stupid. But i need some advice for this. I am trying to develop a website, which will allow the user send to order form to the admin email. I am planning to use the CDONTS component method. Can I just to localhost server to test, whether the form can be send up to the admin's email. Or I must have the Hosting server to do that. Can Anyone suggest me, how to I test my scripts can be successfully run (at localhost), before I host it on the Web Servers.
Is there a way to determin if the email message was sent? I have a numnber of applications that use CDONTS to send mail from both ASP and ASPX pages. If the server is down mail does not get sent. I do not see a way to determine this by code. Does anyone know of a way?
When I use CDONTS on a Win2k iis5 server, I do not always get the mail that the form is sending to me (sometimes it ends up in the badmail folder but then I get the message undeliverable mail from the server?) The problem is not consistent, so it is rather baffling.
Secondly, I can't seem to send to some linux based mailservers, It just absolutely refuses to deliver the mail (and oddly enough, also not to hotmail.com addresses), and then lastly,
Is there any way to force CDONTS to use a different smtp server (can you assign a new/other server to handle the mail?)
I want to send e-mails from my asp pages but don't know how to achieve that. I have tried to create CDO/CDONTS server objects but without luck. I guess I don't have SMTP installed or not configured appropriately.
Can you help me here? What do I need to do (and if complicated how is it done) to get an SMTP server up an running?
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.