473,385 Members | 1,732 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,385 software developers and data experts.

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.microsoft.com/cdo/configuration/smtpserver") =
ServerName
..Fields("http://schemas.microsoft.com/cdo/configuration/
smtpserverport") = ServerPort
..Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") =
3

thank you!!

fabio

Mar 15 '07 #1
5 4280
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.Application" )
Set mi = ol.CreateItem(olMailItem)
mi.Subject = "test"
mi.Recipients.Add("te**@test.com")
mi.send


<fc******@gmail.comwrote in message
news:11**********************@l75g2000hse.googlegr oups.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.microsoft.com/cdo/configuration/smtpserver") =
ServerName
.Fields("http://schemas.microsoft.com/cdo/configuration/
smtpserverport") = ServerPort
.Fields("http://schemas.microsoft.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.googlegr oups.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.microsoft.com/cdo/configuration/smtpserver") =
ServerName
.Fields("http://schemas.microsoft.com/cdo/configuration/
smtpserverport") = ServerPort
.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") =
3

thank you!!

fabio
Mar 15 '07 #3

<fc******@gmail.comwrote in message
news:11**********************@l75g2000hse.googlegr oups.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
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...
6
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...
1
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...
6
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...
1
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,...
2
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...
5
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...
2
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
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...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...

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.