473,511 Members | 14,981 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how do I reconfigure the email

44 New Member
Hi there,

I have a piece of code but it is not going for some reaseon. An email should send out to people when a news is aded.

Would anyone be able to point me to the right direction?

The new webserver is sitting in a separate work group. The mailserver is sitting in the domain.

The Integrated Windows Authentication was enabled in the IIS6.0

Here is the piece of code which was running in the old server but not in the current webserver.

Expand|Select|Wrap|Line Numbers
  1. 'news email starts
  2. dim mailconfig, mail
  3. dim sql,sch
  4.  
  5. set mailconfig = Server.CreateObject("CDO.Configuration")
  6. Set mail = Server.CreateObject("CDO.Message")
  7.  
  8. sch = "http://schemas.microsoft.com/cdo/configuration/"
  9. mailConfig.fields.Item(sch & "sendusing") = 2
  10. mailConfig.fields.Item(sch & "smtpserver") = "cslmail"
  11. mailConfig.fields.update
  12.  
  13. Set mail.Configuration = mailConfig
  14.  
  15. 'mail.from = Right(request.servervariables("logon_user"),Len(request.servervariables("logon_user"))-4) & "@wart.co.nz"
  16. mail.from = "news@ct.co.nz"
  17. mail.To = "users@wart.co.nz"
  18. mail.subject = "NEWS: " & request("header")
  19. mail.Textbody = "A news article has been added. Please click one of the following links to read it: " & vbcrlf & vbcrlf & "http://intranet/news/default.asp" & vbcrlf  
  20. mail.send
  21.  
Aug 12 '10 #1
1 1430
danp129
323 Recognized Expert Contributor
You will need to authenticate with the server. Look at the examples that have "sendusername" specified on this page:
http://www.paulsadowski.com/wsh/cdo.htm
Oct 13 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

12
8746
by: Chuck Anderson | last post by:
Can anyone point me in the right direction? I want to use Php to automate confirmation of someone joining an email list by them replying to an email (so they don't have to have a browser?). I...
8
1795
by: aa | last post by:
If I have a customers database and wanted to automastically create and post an email from a local computer to each customer of the same content - can I do it in PHP? If affirmative which...
10
7656
by: Andrew DeFaria | last post by:
I was reading my O'Reilly JavaScript The Definitive Guide when I came across RegExp and thought I could tighten up my JavaScript code that checks for a valid email address. Why does the following...
4
3003
by: dmiller23462 | last post by:
So here's my problem.....I need to set up different email distributions based on which option in the following Select form has been chosen....For instance if "Putaway" is chosen it needs to email...
2
2209
by: BSG-SMTP-Gateway | last post by:
The following message sent by this account has violated system policy: Connection From: 64.253.55.90 From: python-list@python.org To: terriss@birdsall.com, q4dzsAEAAAAA@birdsall.com,...
2
1726
by: Mike TI | last post by:
April 13, 2006 Hi all I am trying to send an email through my application (VB.NET 2005). The email goes as required. However if I turn 'Internet Auto Protect' feature ON in Norton Antivirus,...
2
1971
by: stew dean | last post by:
Hi, I'm a newbie so go easy. I'm having to covert an old site I've done to run in a .net environment and have limited time to do this. What I've learnt so far is the ideal way to do this is...
14
2253
by: bugmagnet | last post by:
I am writing a simple email program in Python that will send out emails containing Chinese characters in the message subject and body. I am not having any trouble getting the email body displayed...
4
1462
by: DR | last post by:
when i build someone's project, and right click a function "goto definition" is disabled. how to reconfigure a .net project to support "goto definition" when i right click on function calls?
3
1837
by: Chris K. | last post by:
Hello, I am writing an application that processes and sends electronic mail using Visual Basic that has no issues as is. However, when running concurrently with an antivirus package...
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7137
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
7349
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,...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5659
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4734
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3219
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3210
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.