Home | Advertising Info3 USERS CURRENTLY ONLINE   
PowerASP
   Site Search Contact Us Friday, May 17, 2024  

  Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
Classic ASP - General
 PowerASP Code Help Area : Classic ASP - General
Subject Info: CDOSYS A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
SteveMN
Newbie
Newbie


Joined: April/20/2005
Location: United States
Online Status: Offline
Info: 1
Added: April/20/2005 at 1:24pm | IP Logged Quote SteveMN

I am using option 3 from the CDOSYS (real deal) for sending emails though our exchange server. 

Question.   Is it posible and or how does one get the message sent to be stored in a user(s) sent box.

example: from our intranet a user has the option of selecting an item from our inventory listing and emailing the description to a client.  The program will generate the HTML and send it out.  Currently no record of the email apears in the users sent box.  

Back to Top View SteveMN's Profile Search for other info by SteveMN
 
cwilliams
Admin Group
Admin Group
Avatar

Joined: April/26/2004
Location: United States
Online Status: Offline
Info: 137
Added: April/20/2005 at 4:05pm | IP Logged Quote cwilliams

When you send an email from ASP code whether using your exchange server or a regular email server I dont think your going to be able to automatically have a copy of the message sent saved anywhere... it just does not work that way.

that does not mean there isn't something you can do about the situation but I dont know what that would be

"perhap there is a way to also send a copy of the message directly to the users sent box in the exhange server ?"

I dont really know

You could also save a copy of the messages somewhere else.. like a text file or a database.. anywhere really



Edited by cwilliams on April/20/2005 at 4:21pm


__________________


Chris Williams
http://www.PowerASP.com
Back to Top View cwilliams's Profile Search for other info by cwilliams
 
Tons
Newbie
Newbie
Avatar

Joined: April/29/2005
Location: United States
Online Status: Offline
Info: 4
Added: April/29/2005 at 12:31pm | IP Logged Quote Tons

Hi All

I was looking at some of the links and solutions for using CDO object to send email through ASP page.
I am new to ASP emailing and I am trying to use CDO object in my ASP page. I have done exactly same as shown on some of the links. And I am also able to send the emails but only to my company emails. The script wont send any email out side company. If you see the script below I have TO: as Jhalakshah@hotmail.com, CC: Jhalak.Shah@Teradyne.com and BCC: as 62472932942@page.nextel.com (my cell phone). If I send message using this script, the message will only go to email address 'Jhalak.Shah@Notes.Teradyne.Com' and not to other two emails. I don't understand why this happens. Can you please help me out with this? I will really appreciate your help.

EDITED BY ADMIN TO REMOVE PRESONAL INFO BY REQUEST

__________________
As life is to live
So love is to give...
Back to Top View Tons's Profile Search for other info by Tons
 
cwilliams
Admin Group
Admin Group
Avatar

Joined: April/26/2004
Location: United States
Online Status: Offline
Info: 137
Added: April/29/2005 at 12:43pm | IP Logged Quote cwilliams

We show you in our article exactly how to send email with CDOSYS when needing to use outgoing smtp authentication

it's all in the article.. our downloable form also uses smtp authentication by default so you are covered there as well

http://www.powerasp.com/content/new/sending_email_cdosys.asp

http://www.powerasp.com/content/new/self_submitting_contact_ form_using_cdosys.asp

The code you are using above is not from our articles and uses does not use a remote server with outgoing authentication so it is not going to work in a situation that requires it

I suggest you start from scratch, read our articles and go from there.



Edited by cwilliams on April/29/2005 at 12:51pm


__________________


Chris Williams
http://www.PowerASP.com
Back to Top View cwilliams's Profile Search for other info by cwilliams
 
Tons
Newbie
Newbie
Avatar

Joined: April/29/2005
Location: United States
Online Status: Offline
Info: 4
Added: April/29/2005 at 1:40pm | IP Logged Quote Tons

Cwilliams, thanks for the help.
I think you are pointing me towards this code on your page, right?
************
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver" ) ="mail.yoursite.com"
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverp ort") = 25
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl" ) = False 'Use SSL for the connection (True or False)
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnect iontimeout") = 60
     
' If your server requires outgoing authentication uncomment the lines bleow and use a valid email address and password.
'ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthent icate") = 1 'basic (clear-text) authentication
'ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusernam e") ="somemail@yourserver.com"
'ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpasswor d") ="yourpassword"
     
ObjSendMail.Configuration.Fields.Update
************
I think I was missing the below line in my code which I have added now. Let me see if this will make any difference.
*********
ObjCDOMail.Configuration.Fields.Update
*********
And in regards to Authentication, may be you are right. I am not using exactly the same code mention on your page. But in my case I am not sure that if it requires authentication or not. And if it requires why would it just send emails to selected email addresses and not to all? Also how do i find out that the remote server requires authentication and what is the authentication code? I am really confused and not sure what to do.

Thanks again. I appreciate it.
Tony

__________________
As life is to live
So love is to give...
Back to Top View Tons's Profile Search for other info by Tons
 
cwilliams
Admin Group
Admin Group
Avatar

Joined: April/26/2004
Location: United States
Online Status: Offline
Info: 137
Added: April/29/2005 at 1:47pm | IP Logged Quote cwilliams

outgoing authentication means nothing more than this

Your email address and email password are required to send an email
"done to stop spamming"

there are no special authentication codes.. you just use  a valid email address and password for that email server

then you use CDOSYS code like I show to send the email
(using a remote server with smtp authentication)

that being said whether a mail server requires outgoing authentication or not is nothing to get excited about because you can still use outgoing authentication with an email server that does not require it. No different then when you set up your email account in outlook (there are check boxes there to turn on outgoing authentication)

I dont see what is confusing about it... thats why I wrote this article explaining the different ways to send emails and what they mean
(with tested example code)

http://www.powerasp.com/content/new/sending_email_cdosys.asp

if you actually read though it all I just do not see how anyone could possibly still be confused

also, if you download our "contact us form" example code sending an email with that couldnt be easier and you can learn a lot from looking at the code in it.



Edited by cwilliams on April/29/2005 at 3:52pm


__________________


Chris Williams
http://www.PowerASP.com
Back to Top View cwilliams's Profile Search for other info by cwilliams
 

Page of 2 Next >>
  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2024 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.cjwsoft.com,www.aspclassifieds.com,www.aspphotogallery.com