Results 1 to 7 of 7

Thread: ShellExecute Email Question

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Posts
    10

    ShellExecute Email Question

    Ok, I've kinda run into a wall with this and can't quite figure out what I need to do to make this work... I'm using shellexecute to open the user's default email program and insert an email address, subject and body into the email. This is where my problem comes in... The body that I am inserting is multiple lines long, but when I insert it into the email program it comes out as one continuous line without any line breaks. Is there a way to make this work while still using ShellExecute ? If not can you suggest a better way ? Thanks a bunch...

    Chris

  2. #2
    Looks pretty darned unintuitive: from the looks of it you actually put the values of CR and LF in as Hex in a string: http://www.vbforums.com/showthread.p...e+email+vbcrlf

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Posts
    10
    Thank you very much, that works great...

  4. #4
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344
    You could always try making your own email program in vb using the mapi controls.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  5. #5
    Fanatic Member pvbangera's Avatar
    Join Date
    Sep 2001
    Location
    Mumbai, India
    Posts
    961

    Sending Email

    CMon222,

    can u give me the source code of sending the email thru ShellExecute command? Also how to attach the file with the message.

    thanx in advance

    regards,
    prakash

  6. #6
    Junior Member
    Join Date
    May 2001
    Posts
    28

  7. #7

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Posts
    10
    Nightwalker, I've thought about using MAPI, and also Winsock and actually tried to add both into my program when I couldn't get shellexecute to work the way I wanted it, but I decided against using them for various reasons. I tested them both out, but decided it simply isn't the best way to go with the program I'm working on.

    Chris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width