473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

asp mail problem -- urgent

Hi,

I am trying to send a mail from the asp page. The page works fine
without error but i am not able to send any mails. I have set the To and
From Property to my email account. Is there any configurations i have to set
in IIS or anywhere else.

This is the code.

Set objMail = Server.CreateObject("CDONTS.Newmail")
objMail.From = "so*****@xyz.com"
objMail.To = "so*****@xyz.com"
objMail.Body = "Testing mail"
objMail.Send
Set objMail = Nothing

Thanx in advance


Jul 19 '05 #1
3 2369
Seb
Hi

What is your error message ?

With the same code, I have not problem !

Seb
"Prashanth" <so*****@microsoft.com> a יcrit dans le message news:
OS**************@TK2MSFTNGP10.phx.gbl...
Hi,

I am trying to send a mail from the asp page. The page works fine
without error but i am not able to send any mails. I have set the To and
From Property to my email account. Is there any configurations i have to set in IIS or anywhere else.

This is the code.

Set objMail = Server.CreateObject("CDONTS.Newmail")
objMail.From = "so*****@xyz.com"
objMail.To = "so*****@xyz.com"
objMail.Body = "Testing mail"
objMail.Send
Set objMail = Nothing

Thanx in advance

Jul 19 '05 #2
Is the virtual SMTP server running on the web server? If not, you can pick
up the outgoing emails from the C:\inetpub\mailroot\pickup folder on the
server.

Cheers,

Alan

"Prashanth" <so*****@microsoft.com> wrote in message
news:OS**************@TK2MSFTNGP10.phx.gbl...
Hi,

I am trying to send a mail from the asp page. The page works fine
without error but i am not able to send any mails. I have set the To and
From Property to my email account. Is there any configurations i have to set in IIS or anywhere else.

This is the code.

Set objMail = Server.CreateObject("CDONTS.Newmail")
objMail.From = "so*****@xyz.com"
objMail.To = "so*****@xyz.com"
objMail.Body = "Testing mail"
objMail.Send
Set objMail = Nothing

Thanx in advance

Jul 19 '05 #3
What kind of server is it? Does it have CDONTS?
Apparently Windows XP and Windows 2003 do not have CDONTS but rather CDO
"Prashanth" <so*****@microsoft.com> wrote in message
news:OS**************@TK2MSFTNGP10.phx.gbl...
Hi,

I am trying to send a mail from the asp page. The page works fine
without error but i am not able to send any mails. I have set the To and
From Property to my email account. Is there any configurations i have to set in IIS or anywhere else.

This is the code.

Set objMail = Server.CreateObject("CDONTS.Newmail")
objMail.From = "so*****@xyz.com"
objMail.To = "so*****@xyz.com"
objMail.Body = "Testing mail"
objMail.Send
Set objMail = Nothing

Thanx in advance

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Vittorio Pavesi | last post by:
Hello, I'm using CDO in my VB Application. Does anybody know how to set the Mail priority (Urgent, Medium, Low) ?? Thanks Vittorio...
4
by: | last post by:
Hi all, We are using the Asp.Net SMTP Client to send email via our Exchange 2003 SP2 Server. When trying to send email to a local recipient I am getting the following error:- Server:...
2
by: Goran Djuranovic | last post by:
Hi all, When sending mail from within a windows service I get this exception: "The specified procedure could not be found" at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at...
3
by: eitan | last post by:
אני מעוניין לשלוח דואר אלקטרוני בתוכנת Windows Outlook 2003 אבל לא מעונין שהאדם שמקבל את הדוא"ל יראה את השם שלי ב-FROM האם יש אפשרות??
2
by: | last post by:
I implement a lot of "send to friend" functionalities as well as utilizing a lot of content that's been scraped from other places on the web.I built these tools using Classic ASP. Some classes...
2
by: =?Utf-8?B?TWljaGFlbCBkZSBWZXJh?= | last post by:
To all, I was wondering if someone has sample VB.NET code that will help me send rows of a gridview into a body section of an e-mail. My goal is to present multiple rows within a gridview to a...
2
by: joseph2000 | last post by:
Hi, I have problem with e-mails which are being send via System.Web.Mail.SmtpMail class but before describing the problem itself first I'd like to show shortly what I'm doing on the server. ...
3
by: Chris Noble | last post by:
I need to be able to read and add to the collection of email addesses for an Active Directory User with a mailbox. I assume that this is a collection object. However I can't find any help on which...
3
by: Ken Fine | last post by:
I am using ASP.NET's CreateUserWizard control. I want to force the visitor to use a username and e-mail address that I am providing in programming, and I do not want the visitor to be able to edit...
2
by: =?ISO-8859-1?B?RulybmFz?= | last post by:
Hey all, I have a URGENT problem and I hope someone could help me... scenery: I have a windows app, coded using C# (framework 1.1 - VS2003)... The exe and dlls of the app is are stored in a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.