Results 1 to 3 of 3

Thread: send mail attachment

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Location
    Sweden, Sthlm
    Posts
    112
    Hi!!

    I try to send an mail with an file attachment!

    Anyone knew the correct line to add an attachment to the mail?

    sMail = "mailto:[email protected]%[email protected] &subject=Subject line &body=Mail body!"

    nResult = ShellExecute(0, "open", sMail, 0, 0, 1)

  2. #2
    Lively Member markwel's Avatar
    Join Date
    Jan 2001
    Location
    Chennai, India
    Posts
    104
    Friend,

    Please refer Articles section to know more about mail with attachment. It includes Demo project and exe also.

    Thanx and Best of luck.
    Soma Sundaram R
    3/480, Lakshmana Perumal Street
    Kottivakkam
    Chennai, India

    [email protected]
    http://somasundaram.cjb.com
    Develop Your Own Browser-->http://www.vbsquare.com/internet/browser/

  3. #3
    Hyperactive Member wasiq's Avatar
    Join Date
    Jan 2000
    Location
    Karachi, Sindh, Pakistan
    Posts
    274
    try using this

    Code:
    Dim sMail As String
    Dim nResult As Long
    
    sMail = "mailto:[email protected]%[email protected] &subject=Subject line &body=Mail body!"
    nResult = ShellExecute(Me.hwnd, "open", sMail, "", App.Path, 1)

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