CDO question

I am testing CDO for email. The following function works on one computer but
fails on the second computer with a messgage that "the server response was
not available".

Both computers are on the same network and can send a receive email from the
account I am using. The program compiles OK on both computers but some
reason I can't figure out, it fails on the second computer.

Public Function SendEmailUsingCDO()

' 11/4/03 worked on E2
' 10/25/04 works on E2 but won't work here on E1 ????
' on form or as as this function

Dim iMsg As New CDO.Message
Dim iConf As New CDO.Configuration

With iConf.Fields

  .Item(cdoSendUsingMethod) = cdoSendUsingPort

  .Item(cdoSMTPServer) = "smtp.comcast.net"
  .Item(cdoSMTPConnectionTimeout) = 15 ' quick timeout
  .Item(cdoSMTPAuthenticate) = cdoBasic
  .Item(cdoSendUserName) = "xxxxxx"
  '.Item(cdoSendPassword) = "xxxxxx"
  '.Item(cdoURLProxyServer) = "server:80"
  '.Item(cdoURLProxyBypass) = "<local>"
  '.Item(cdoURLGetLatestVersion) = True

  '.Update
End With

With iMsg
  Set .Configuration = iConf
      .To = """User A"" <xxx@xxx.net>"
      .From = "<xxxxx@xxx.us>"
      '.From = """User B"" <xxxx@comcast.net>"
      .Subject = "Access CDO test"
      '.BCC = "<xxxx@xxx.us>" never recd with/without <>
      '.CreateMHTMLBody "http://mypage"
      '.AddAttachment "C:\files\mybook.doc"
      '.
      .TextBody = "This is the body of the CDO message"
      .Send
End With

End Function


0
88karl3200 (58)
10/26/2004 2:36:01 PM
comp.databases.ms-access 42527 articles. 11 followers. Post Follow

2 Replies
109 Views

Similar Articles

[PageSpeed] 10
> I am testing CDO for email. The following function works on one computer
but
> fails on the second computer with a messgage that "the server response was
> not available".
>
> Both computers are on the same network and can send a receive email from
the
> account I am using. The program compiles OK on both computers but some
> reason I can't figure out, it fails on the second computer.
>
> Public Function SendEmailUsingCDO()
>
> ' 11/4/03 worked on E2
> ' 10/25/04 works on E2 but won't work here on E1 ????
> ' on form or as as this function
>
> Dim iMsg As New CDO.Message
> Dim iConf As New CDO.Configuration
>
> With iConf.Fields
>
>   .Item(cdoSendUsingMethod) = cdoSendUsingPort
>
>   .Item(cdoSMTPServer) = "smtp.comcast.net"
>   .Item(cdoSMTPConnectionTimeout) = 15 ' quick timeout
>   .Item(cdoSMTPAuthenticate) = cdoBasic
>   .Item(cdoSendUserName) = "xxxxxx"
>   '.Item(cdoSendPassword) = "xxxxxx"
>   '.Item(cdoURLProxyServer) = "server:80"
>   '.Item(cdoURLProxyBypass) = "<local>"
>   '.Item(cdoURLGetLatestVersion) = True
>
>   '.Update
> End With
>
> With iMsg
>   Set .Configuration = iConf
>       .To = """User A"" <xxx@xxx.net>"
>       .From = "<xxxxx@xxx.us>"
>       '.From = """User B"" <xxxx@comcast.net>"
>       .Subject = "Access CDO test"
>       '.BCC = "<xxxx@xxx.us>" never recd with/without <>
>       '.CreateMHTMLBody "http://mypage"
>       '.AddAttachment "C:\files\mybook.doc"
>       '.
>       .TextBody = "This is the body of the CDO message"
>       .Send
> End With
>
> End Function
>
have you added the refernces CDO ?
MAssimiliano


0
master8346 (24)
10/27/2004 2:09:38 PM
Yes I have the CDO reference (it says Microsoft CDO for Windows 2000
Library) . I'm using XP on both machines.

-- "MA" <master@massimilianoamendola.it> wrote in message
news:0_Nfd.28331$B06.15852@news.edisontel.com...
> > I am testing CDO for email. The following function works on one computer
> but
> > fails on the second computer with a messgage that "the server response
was
> > not available".
> >
> > Both computers are on the same network and can send a receive email from
> the
> > account I am using. The program compiles OK on both computers but some
> > reason I can't figure out, it fails on the second computer.
> >
> > Public Function SendEmailUsingCDO()
> >
> > ' 11/4/03 worked on E2
> > ' 10/25/04 works on E2 but won't work here on E1 ????
> > ' on form or as as this function
> >
> > Dim iMsg As New CDO.Message
> > Dim iConf As New CDO.Configuration
> >
> > With iConf.Fields
> >
> >   .Item(cdoSendUsingMethod) = cdoSendUsingPort
> >
> >   .Item(cdoSMTPServer) = "smtp.comcast.net"
> >   .Item(cdoSMTPConnectionTimeout) = 15 ' quick timeout
> >   .Item(cdoSMTPAuthenticate) = cdoBasic
> >   .Item(cdoSendUserName) = "xxxxxx"
> >   '.Item(cdoSendPassword) = "xxxxxx"
> >   '.Item(cdoURLProxyServer) = "server:80"
> >   '.Item(cdoURLProxyBypass) = "<local>"
> >   '.Item(cdoURLGetLatestVersion) = True
> >
> >   '.Update
> > End With
> >
> > With iMsg
> >   Set .Configuration = iConf
> >       .To = """User A"" <xxx@xxx.net>"
> >       .From = "<xxxxx@xxx.us>"
> >       '.From = """User B"" <xxxx@comcast.net>"
> >       .Subject = "Access CDO test"
> >       '.BCC = "<xxxx@xxx.us>" never recd with/without <>
> >       '.CreateMHTMLBody "http://mypage"
> >       '.AddAttachment "C:\files\mybook.doc"
> >       '.
> >       .TextBody = "This is the body of the CDO message"
> >       .Send
> > End With
> >
> > End Function
> >
> have you added the refernces CDO ?
> MAssimiliano
>
>


0
88karl3200 (58)
10/27/2004 3:07:50 PM
Reply:
Similar Artilces:

Prefix/postfix ops -- concept question
Hello! Could anybody be kind enough to explain this concept? Why C++ make two ops for prefix and postfix ++ operator? As I guess, it is possible to implement both cases via sole prefix increment operation. Correct me if I'm wrong, Let's see trival example: Complex a=3,b; b=a++-2; Compiler could rewrite this as: b=a; ++a; b-=2; So. why make extraneous overhead with temporary var for postfix increment and 2 distinct ops? Thank you for patience, Sergey. * Sergey: > > Why C++ make two ops for prefix and postfix ++ operator? The postfix version is for writing side-effect ...

StartupItems Question
I have a folder named OpenBase in the StartupItems folder -- the StartupItems folder that's in the the Library folder of the Hard Drive (this is not in any user's directory or in the Library folder of the System folder). Is this something that is okay (or necessary) to leave in place as I prepare to move from Panther to Tiger? -- Michael Fogler michael@lexingtonguitartrio.com or lexguitarist@insightbb.com http://home.insightbb.com/~lexguitarist http://www.lexingtonguitartrio.com/ http://www.cdbaby.com/lexingtongt Entity Michael Fogler spoke thus: > I have a folder named ...

CDO
Dear All, using function below without attachment send an email with an attachment like ATT?????.dat. What can i do about this. Thanks, Filips -------------------------------------------------- Public Function SendCDOemail(Optional ToAddres As String, Optional FromAddres As String, _ Optional CCAddres As String, Optional Subject As String, _ Optional MessageText As String, Optional Attachment1Path As String) As Boolean ' set references to Microsoft Scripting Runtime AND Microsoft Office 12.0 Object Library On Error GoTo ErrorMsgs Dim objMessage As Object Set ...

PL/I Frequently Asked Questions (FAQ) #22
Archive-name: computer-lang/pli-faq Last-Modified: 29 September 2008 Version: 1.46 FREQUENTLY-ASKED QUESTIONS & ANSWERS .. (Q1) What is PL/I? .. PL/I is a general-purpose programming language, which is used for solving problems in a variety of fields such as commerce, science (including mathematics, physics, chemistry), engineering (including civil, electrical, aeronautics), medicine, and so on. It can be used for system programming, and the facilitites are such that it is rarely if ever necessary to resort to machine-language or as...

compatiblity question
I had a hp photosmart 7150 but got a HP Photosmart C4640 All-in-One Printer now, but i have alot of left over 57 and 58 cartridges. they dont really look different from the 60's, will they work in this printer? "Karasawa" <Karasawa.4kbdkp@no.email.invalid> wrote in message news:Karasawa.4kbdkp@no.email.invalid... > > I had a hp photosmart 7150 but got a HP Photosmart C4640 All-in-One > Printer now, but i have alot of left over 57 and 58 cartridges. they > dont really look different from the 60's, will they work in this > printer? >...

simple destructor question
Hi All, if I have a class that uses a STL list of pointers like: class SomeClass { private: list<OtherClass*> aList; --other stuff-- } If I just do aList.clear() in the destructor is that sufficient or do I have to do a delete on each pointer in the list? Thanks for your help Michael michael wrote: > Hi All, > > if I have a class that uses a STL list of pointers like: > > class SomeClass { > private: > list<OtherClass*> aList; > --other stuff-- > } > > If I just do aList.clear() in the destructor is that ...

X11 question
I downloaded X11 at Apple's website, but this is a rootless system and so when I run it I can't have, say, IceWM or Windowmaker manage the windows for me. Is there a version of X11 that comes in a package that would install as easily as Apple's version of X11, and one in which I could run whatever window manager I wanted? Thank you. -- GR Gaudreau <http://grgaud.exchristian.info> <grgaud at sympatico dot ca> On 2003-10-20, GRGAUD <look@bottom.post> wrote: > I downloaded X11 at Apple's website, but this is a rootless system and > so when I run it ...

selectOneMenu simple question...
Hi guys, i'm a question for you.I'm using for the first time a selectonemenu tag in my JSF application and i've this error javax.servlet.ServletException: javax.servlet.jsp.JspException: Value binding '#{user.teams}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /Login.jsp][Class: javax.faces.component.html.HtmlForm,Id: _id1][Class: javax.faces.component.html.HtmlPanelGrid,Id: _id2][Class: javax.faces.component.html.HtmlPanelGrid,Id: _id4][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: selectTeam][Class: jav...

Re: A DATASET QUESTION #2
Here is one solution data a ; input subject variableun $ 10-35; variableun=compress(variableun,';'); if INDEX(variableun,'ONGO') THEN VAR='A';ELSE VAR='B'; KEEP VAR; cards4; 1 City Bus leaving - ONGO; 2 Cneter city, california 3 City center colosed - ONGO 4 Center city working - ONGO; 5 Uptown Bronx, New York; 6 Mall center Closed ONGO ;;;; run; proc print; run; Nat Wooding Environmental Specialist III Dominion, Environmental Biology 4111 Castlewood Rd Richmond, VA 23234 Phone:804-271-5313, Fax: 804-...

Print
This works fine print "*" x 10; print "\n"; But is there a way to print *'s then a newline in one line print "*" x 10"\n"; doesnt work. Tks begin 666 cvidal.vcf M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..CMC=FED86P-"D9..F-V:61A M; T*14U!24P[4%)%1CM)3E1%4DY%5#IC=FED86Q 871T+F-O;0T*4D56.C(P ;,#,P.# X5#$S,3@R,%H-"D5.1#I60T%21 T* ` end >>>>> "Chris" == Chris Vidal <cvidal@att.com> writes: Chris> print "*" x 10"\n"; doesnt work. print "*" x 10, "\n"; ...

My question
Hello, Today many parallel applications that are disk bound and/or memory bound can not scale on multicore systems. The question is not how to add more and more cores to a multicore system, the problem is how to scalable and speed more the memory system and hardisk system to be able to scale many more applications that are disk or/and memory bound. Thank you, Amine Moulay Ramdane. ...

personal smtp server question
Hi, I would like to install my personal smtp server to protect my privacy. I suspect that my ISP has blocked this option. I have tried to telnet the smtp server of my office at port 25 and not success. Any other solution? Thanks ...

Question about pychecker and pylint
Hi, I wonder if pychecker projet is dead ? On pychecker home page (http://pychecker.sourceforge.net/), last version date from February 3, 2006 and their mailist contain spam messages only. Other tools like pychecker is pylint at (http://www.logilab.org/project/eid/857). This is a great tools and it's still active. However, it has issue : its web site, it is very incomprehensible. Do you have other pylint web site ? Thanks for your information. Stephane ...

Newbie : Cross Tab Question
I wanted to create a cross tab like the result below.I wanted to do it via code. The important thing is that the totals end up at the end. Also, the percentage represent the share of the total for that line. Item 1 Percentag 1 Item 2 Percent 2 Total Items Sold Customer A 6 items sold 60% 4 Items sold 40% 10 Items Sold Customer B 25 items sold 50% 50 Items sold 50% 100 Items Sold How can I do the above via code. ...

Various Questions
How many of you are using Solaris Resource Manager in a production environment? For those of who in cross-platforms, how many use AIX Workload Manager? Is anyone using ADR? Is it in connection with SRM (ie. trigger a DR when some SRM limit is hit for a period of time)? How many of you are using the SEToolkit? What do you like about it? What additional functionality would you like to see? Same questions for other performance tools - what do you like about the tool? What is missing? You can post responses here or directly to me (jar@teamquest.com). Thanks in advance, Joe Rich - TeamQ...

Questions, Questions, Questions -- Well, really only two
This newsgroup seemed distribution non-specific so here goes: 1. Many companies who want to use linux, want it for email and web service. These systems don't need xwindows, and, in fact, as I understand it, not installing it not only saves resources but reduces security risk. Is there anywhere freely available a how-to install various current distributions of linux using text only, and installing mail, web and domain name service that is fairly easy for the uninformed to follow? Especially helpful would be a debian install. 2. Does anyone know of an encyclopedia, preferrably text-b...

XML beginners question
Good day, I am new on this newsgroup. For a project I am asked to read a XML data file into memory structure (entity structure/values). My question: What do I need for this? Are packages for this, are there some links for tutorials/information about this? I am a beginner on this issue, so please give me a few key-words to search for. Regards, Mike > My question: What do I need for this? Are packages for this, are there > some links for tutorials/information about this? I am a beginner on this > issue, so please give me a few key-words to search for. http://java.sun.com/j2se...

CDO and sbcglobal
For several years I used CDO to send emails via Comcast I recently switched to sbcglobal and changed the user name and password Now I get a server not available message everytime I try to send an email. Is anyone using sbcglobal and CDO? My code is Dim iMsg As New CDO.Message Dim iConf As New CDO.Configuration Dim Flds As ADODB.fields With iConf.fields .Item(cdoSendUsingMethod) = cdoSendUsingPort .Item(cdoSMTPServer) = "smtp.comcast.net" .Item(cdoSMTPConnectionTimeout) = 10 .Item(cdoSMTPAuthenticate) = cdoBasic .Item(cdoSendUserName) = "realname" .Item...

Startup Items question
powerbook:~/cdrom apple$ ls -al /System/Library/StartupItems/ total 0 drwxr-xr-x 18 root wheel 612 Mar 28 2005 . drwxr-xr-x 56 root wheel 1904 May 25 12:01 .. drwxr-xr-x 4 root wheel 136 Mar 24 2005 Apache drwxr-xr-x 4 root wheel 136 Mar 24 2005 AppServices drwxr-xr-x 4 root wheel 136 Mar 24 2005 AppleShare drwxr-xr-x 4 root wheel 136 Mar 24 2005 AuthServer drwxr-xr-x 5 root wheel 170 Mar 21 2005 CrashReporter drwxr-xr-x 4 root wheel 136 Mar 24 2005 Disks drwxr-xr-x 4 root wheel 136 Mar 21 2005 FibreChannel drwxr-xr-x 4 root wheel ...

More jail questions...
Hi everyone, Can you chroot an app, say Apache, in a jail on 5.4? Seems like you run into trouble when you're making up the /dev nodes. I'm sure I'm missing something very simple! TIA, ../a On 2005-07-19, auliya <auliya@bluebottle.com> wrote: > Hi everyone, > > Can you chroot an app, say Apache, in a jail on 5.4? Seems like you run > into trouble when you're making up the /dev nodes. > > I'm sure I'm missing something very simple! You need to configure the jail, see the manpage. Kris Hi, Thanks for the reply. I d...

question about nat
I have a router configured to translate an external public ip address to a private address of an internal Ftp server. >From what I have seen, when a packet arrives inside the Lan, the destination IP address is that of the ftp server (its private address of course), but the source address is still the real public IP address of the sender. This is causing me some problems because this server has another default gateway (another router) and ftp requests don't get a response. Is it possible somehow to have the router to translate not only the destination address but also the source addre...

[9fans] partially oftopic historical question
Q: To what extent was the original Plan 9 concept of private namespaces influenced by Multics? Corollary Question: What were Multics' ideas for private namespaces? Any hints, insights and pointers are greatly appreciated, andrey Multics didn't have private namespaces when we were there. Possibly later, but I don't think so. Dennis ...

Beamer question
I am using beamer with beamerthemeshadow. I am wondering whether I could place some text or picture on the upper right side where it shows blue box. I am not sure how to go about it. Please help. .. Raghu rgompa@iuk.edu ...

Question about IDE interfaces
Instead of using the new IDE interfaces to load snapshots, I would like to use them (the DivIDE+, for example) to read/write large data files. If I want to load a full-screen video, for example, I know I can load a .tap or .tzx with thousands of screen files, but that's not what I'm looking for. Why should we have thousands of 6K screen files, when we can have just one file? I would like to be able to have a player that would read data from the cf card (or any other media) and play it, while using the Speccy's available ram as a buffer. This could be used for full-motion video and...

Hyperlink question
Hello, I want to link from each row of a proc report Main Table to different tables in the same html file I've found an example in which the hyperlink in the Main Table is created with: define region / group noprint; compute regtag / char length=60; if region='EAST' then regtag = "<a href='Exercise4_RegionEAST.html'>East</a>"; endcomp; It works fine but I don't know how to link to a paticular table within the same document: I have created a variable Bardrills='HREF='||'#hjkhkj' in a certain table and tried, without success: def...