473,785 Members | 2,317 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Send a mail with cdosys and save a copy in the Sent Mail folder: how to???

Hello to the board, i'm facing this problem and i need some help: with
cdosys i'm able to send e-mail from asp using the local exchange
server. Now I also have to save the sent mail into the user's mailbox
for future reference: how to???

i'm using:

..Fields("http://schemas.microso ft.com/cdo/configuration/smtpserver") =
ServerName
..Fields("http://schemas.microso ft.com/cdo/configuration/
smtpserverport" ) = ServerPort
..Fields("http://schemas.microso ft.com/cdo/configuration/sendusing") =
3

thank you!!

fabio

Mar 15 '07 #1
5 4301
I have a script here that will do this, BUT, the script askes for permission
to access address book, maybe there is a workaround
Dim olTaskItem
olTaskItem = 3

set ol = createObject( "Outlook.Applic ation" )
Set mi = ol.CreateItem(o lMailItem)
mi.Subject = "test"
mi.Recipients.A dd("te**@test.c om")
mi.send


<fc******@gmail .comwrote in message
news:11******** **************@ l75g2000hse.goo glegroups.com.. .
Hello to the board, i'm facing this problem and i need some help: with
cdosys i'm able to send e-mail from asp using the local exchange
server. Now I also have to save the sent mail into the user's mailbox
for future reference: how to???

i'm using:

.Fields("http://schemas.microso ft.com/cdo/configuration/smtpserver") =
ServerName
.Fields("http://schemas.microso ft.com/cdo/configuration/
smtpserverport" ) = ServerPort
.Fields("http://schemas.microso ft.com/cdo/configuration/sendusing") =
3

thank you!!

fabio
Mar 15 '07 #2
Sorry I forgot we were on a asp group, the script I sent is client side.

<fc******@gmail .comwrote in message
news:11******** **************@ l75g2000hse.goo glegroups.com.. .
Hello to the board, i'm facing this problem and i need some help: with
cdosys i'm able to send e-mail from asp using the local exchange
server. Now I also have to save the sent mail into the user's mailbox
for future reference: how to???

i'm using:

.Fields("http://schemas.microso ft.com/cdo/configuration/smtpserver") =
ServerName
.Fields("http://schemas.microso ft.com/cdo/configuration/
smtpserverport" ) = ServerPort
.Fields("http://schemas.microso ft.com/cdo/configuration/sendusing") =
3

thank you!!

fabio
Mar 15 '07 #3

<fc******@gmail .comwrote in message
news:11******** **************@ l75g2000hse.goo glegroups.com.. .
Hello to the board, i'm facing this problem and i need some help: with
cdosys i'm able to send e-mail from asp using the local exchange
server. Now I also have to save the sent mail into the user's mailbox
for future reference: how to???
Save it into which user's mailbox? Are you using windows authentication on
the server?

If you are using anonymous authentication, you have no idea who that user
is.

--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web.
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook, find/replace,
send newsletters
Mar 15 '07 #4
Save it into which user's mailbox? Are you using windows authentication on
the server?
yes, got username, mail address, mail id
how could i find the "sent mail" folder for a user???

Mar 16 '07 #5
any help?

Mar 20 '07 #6

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

Similar topics

3
9533
by: Salim Afþar | last post by:
Hi, I'm using CDO object to send email but it doesn't send any email and it does not give an error. My code look like this: Dim iMsg2 Dim iConf2 Dim Flds2 Const cdoSendUsingPort = 2 set iMsg2 = CreateObject("CDO.Message")
6
9212
by: Owen | last post by:
I am sending email using CDO but it only seems to work when the "To" address is within the same domain as mine. When I send to an outside domain (eg. yahoo.com) the mail simply does not reach the recipient. I have been testing this with my own email address. There is no error reported and everything "appears" to have worked except for the fact the email does not reach the recipient. I had this problem with CDONTS and thought that...
1
2293
by: Bruce W.1 | last post by:
I'm new to ASP (but not ASP.NET) and I'm trying to setup a simple ASP web form to send an email to me. So I try this code: http://www.library.unr.edu/subjects/guides/mailplay.asp I upload the web page file to my hosting company, which is running Windows 2000, and I get this error message: CDO.Message.1 error '80040220' The "SendUsing" configuration value is invalid. /mailplay.asp, line 63
6
11188
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I will include the code I originally used. I understand I should switch from CDONTS to CDO mail but after several sttempts I am finding a very hard time getting the new CDO mail to work properly. Any assistance with this would be greatly...
1
3718
by: Dean | last post by:
I am using MailMessage (CDOSYS) to send emails. I would like to turn off the SMTP service (it's on the local machine) and look at the emails in the pickup folder before they get sent out. However, since it is connecting using the port, I will get an error if I turn off the SMTP service. I need to configure it so that it writes the emails to the pickup folder. I've done quite a bit of digging, and found some references to...
2
2182
by: Jeti [work] | last post by:
....and send it immediatley? My goal is to send mail, and in the same time save a copy in a "Sent Items" folder... Or if sending fails - to put that mail into "Outbox" folder... Any suggestions? OE APIs? thank you...
5
8798
by: Andreas | last post by:
I am working with three computers, my developing computer, a Web Server and a Mail Server (Exchange). I am trying to send a email from the Web Server via the Mail Server to a valid email address with this code: MailMessage msgMail = new MailMessage(); msgMail.To = "test@address.com"; msgMail.From = "from@address.com"; msgMail.Subject = "Mail Example Subject";
2
2925
by: JohnB | last post by:
hi I am using System.Web.Mail.MailMessage to send email. Is there any way to keep the email to "Sent Items" Folder?? I use Microsoft Outlook as my email tool. Thanks
8
7550
by: Akbur | last post by:
Dear all, I'm having major issues sending an email from my ASP.NET app. I'm getting a "Could not create 'CDO.Message' object". When I did a search for cdosys.dll in \win_location\system32, I could not find it. So I copied it from another Windows 2003 server, where it did exist. Another dependant file was missing too (inetcomm.dll).
0
10315
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10083
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8968
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6737
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.