dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 48

Thread: email problem

  1. #31
    Join Date
    Mar 2008
    Posts
    23
    Amhady
    When i do as you told me i get:

    Unspecified failure has occured
    Code:
    .Send

  2. #32
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    I'm not exactly sure why .. but anyway go ahead with "index" ing recips and see what happens ... I think it should works too , isn't it ?
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  3. #33
    Join Date
    Mar 2008
    Posts
    23
    It's still not working i'm getting the same error...


    if you don't mind can you get a quick look at my application please ?
    i might have something wrong there that i'm not recognizing... but i'm doing what your telling me to
    Attached Files Attached Files

  4. #34
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    Ok I can see it working here just fine except one only thing the
    .AttachmentIndex
    and
    .AttachmentPosition

    they should not be the same all the time ... the first attachment their value should by '0' .. then second , values should be '1' .and so forth .

    or what error you have so far now ?
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  5. #35
    Join Date
    Mar 2008
    Posts
    23
    I'm still getting the same error...

    ok can you attach me the file after being corrected....(if possible)

    it's driving me crazy , i can't get where the error is ...

  6. #36
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    which error ? you had many errors now which one remains ??

    i'm won't kode it for u .. i just kan help u solving the problem you got .. so post the exact error you have now and/or problems ..
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  7. #37
    Join Date
    Mar 2008
    Posts
    23
    Unspecified failure has occured

    Code:

    .Send


    this error i'm always getting it

  8. #38
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    your last code is ok and working WITHOUT ATTACHMENTS .. so if it doesn't with you I think you maybe have a problem ... otherwise if that error comes only when there is attachments see my post #34
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  9. #39
    Join Date
    Mar 2008
    Posts
    23
    the error i'm getting is that i cannot send to more than one person it will send for me only once , i mean when i press send it will go
    when i come and enter the emails again and press send it will give me
    error: Invalid session
    .ResolveName

  10. #40
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819

    Arrow

    Quote Originally Posted by nawaray
    So Amahdy do u mean that i do like this?
    Code:
    With MAPIMessages1
       
               .Compose
               .MsgSubject = txtSubject.Text
    
               '.RecipDisplayName = txtTo.Text
               '.ResolveName
    .RecipIndex = 0
    
    .RecipAddress = txtTo.Text
    .RecipType = 1
    
    
    .RecipIndex = 1
    
    .RecipAddress = txtTo1.Text
    .RecipType = 1


    Hack
    i didn't use ListView control before

    thats why i told you i want an example
    this should work for two different emails [the first in txtTo and the second in txtTo1 ]
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  11. #41
    Join Date
    Mar 2008
    Posts
    23
    so shall i try this code again?

  12. #42
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    at lest it works at my PC .. just test it ..
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  13. #43
    Join Date
    Mar 2008
    Posts
    23
    i don't know how does it work on your pc , i'm still getting unspecified error:
    .Send
    this is my code again:
    Code:
      With MAPIMessages1
       
               .Compose
               .MsgSubject = txtSubject.Text
    
               '.RecipDisplayName = txtTo.Text
               '.ResolveName
    .RecipIndex = 0
    '.RecipDisplayName = txtTo.Text
    .RecipAddress = txtTo.Text
    .RecipType = 1
    
    '.ResolveName
    
    .RecipIndex = 1
    '.RecipDisplayName = txtTo1.Text
    .RecipAddress = txtTo1.Text
    .RecipType = 1
    '.ResolveName
               'The value 2 is passed to the Space() function in the
               'next line because there are two attachments to add.
               'These spaces act as placeholders for the attachments.
               .MsgNoteText = Space(2)

  14. #44
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    yes this code works good with a valid unique email in the "textto.text" and another in "textto1.text" .
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  15. #45
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    It is still happening with .Send?

Similar Threads

  1. Stand alone email client for pop3 email
    By luckyluk in forum VB Classic
    Replies: 1
    Last Post: 03-18-2006, 06:36 PM
  2. Reroute All Outbound Email
    By Brian in forum Enterprise
    Replies: 0
    Last Post: 08-13-2003, 02:22 PM
  3. convert email messages to tasks utomatically
    By Anthony Meo in forum Enterprise
    Replies: 0
    Last Post: 01-15-2002, 05:44 PM
  4. Replies: 0
    Last Post: 04-03-2001, 05:22 PM
  5. Replies: 9
    Last Post: 01-26-2001, 12:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center