Send email attachment with one click

Discussion in 'Software' started by rshedrick, Feb 6, 2004.

  1. rshedrick

    rshedrick Private E-2

    I am using Outlook express and want to see if there is a program or something that would allow me to put a link on the desktop to send a attachment with one click. I have employees who have to send the same file to the same person weekly. I was trying to help them so they dont have to go to outlook/to/find file to attach all that good stuff. Thanks Robert
     
  2. Wisewiz

    Wisewiz Apprentice's Sorcerer

    If it's the same filename every week, and the message doesn't change either (just the content of the file), then why not use "Send Message Again"? That'll send the same message with the same attachment to the same address, but if you've changed the contents of the attachment, the new version will go, of course.

    I don't use OE, so I don't know where Send Again is, but it must be in the menus somewhere.

    EDIT: Sorry, I didn't think first about a shortcut. Somebody else can help.
     
    Last edited: Feb 6, 2004
  3. BoredOutOfMyMind

    BoredOutOfMyMind Picabo, ICU

    If you use Word, you can send from any version above 2000. This makes an excel spreadsheet or form easy to send.
     
  4. rshedrick

    rshedrick Private E-2

    I guess that actually is not what I am trying to do. All I have is a shortcut for the end user pointed to the document. I need something that will be a one click program to send the file out.
     
    Last edited: Feb 6, 2004
  5. Kodo

    Kodo SNATCHSQUATCH

    does anyone there know VBA?

    you could probably build an outlook module that does this for you
     
  6. rshedrick

    rshedrick Private E-2

    No it is just me and I dont know VBA? I am willing to learn though.
     
  7. Kodo

    Kodo SNATCHSQUATCH

    if I have some time today, I'll do some poking around for how to do this. I'm sure it can be done, I've just not tangled with Outlook VBA yet..

    It could very well be done in vbscript too. Let me do some research. I'm interested in this now too :)
     
  8. Freddy

    Freddy Sergeant

    Is there a Send option on the File menu within the program creating the file? I know it works from outlook, but haven't tried OE. Could work in conjuntion with a a mail group.

    Another option is to search for programs that will put the mail option in the right click menu. Would work something like right click on file to send | Send with mail, which would bring up OE and automatically attach the file.
     
  9. Kodo

    Kodo SNATCHSQUATCH

    The following script REQUIRES outlook 2000 or greater to be installed on the machine.

    PHP:
    Dim oLapp,oItem 
    Set oLapp 
    CreateObject("Outlook.application")
    Set oItem oLapp.createitem(0)
    '
    With oItem
    .Subject = "test"
    .To = "[email="MyEmail@here.com"]MyEmail@here.com[/email]"
    .body = "MESSAGE HERE"
    .Attachments.Add "c:\test.txt"
    .Display 
    .Send
    End With
    '
    Set oLapp Nothing
    Set oItem 
    Nothing

    EDIT the subject, to,body,attachment path between quotes to desired info.

    copy the code and place it in a text file. Name the file EMAIL.VBS

    NOTE: when sending the email, you will be prompted with a message from outlook that says "something is trying to access your email etc etc...". This is a safety feature in outlook that attempts to prevent unauthorized access from scripts to use the outlook engine to send mail. Wait for the yes prompt to activate and hit yes.

    I'll see if I can find a way to do this in outlook instead of a script file. But it's a start.
     
  10. BoredOutOfMyMind

    BoredOutOfMyMind Picabo, ICU

    ALT+F11 opens Visual basic editor in Outlook

    Indefined object "set" error in debug
     
  11. Kodo

    Kodo SNATCHSQUATCH

    works fine for me.
     
  12. Kodo

    Kodo SNATCHSQUATCH

    attached is a zip file.

    Export the zip file to ANY folder on your system. Take note of where you export it to.

    Open outlook.
    Hit ALT-F11 to open the editor
    on the left hand side you'll see a project. Right click on the project and choose import. point to the folder where you exported the other files to. Import those files.

    click file, save.

    Next make a button for your tool bar.
    View--->Toolbars---Customize
    click on the toolbars tab and hit "New" button.
    Give it a name.

    Go to commands tab and scroll down to macros.
    Click on the macro listed and drag it onto the button that you just made.
    Then click on modify selection and the third item down will let you type in a name for it.

    hit close and then drag the button to your tool bar to dock it.
     

    Attached Files:

  13. rshedrick

    rshedrick Private E-2

    Awesome that worked and was exactly what I was trying to do. Now I have one more question. How would I create some type of shortcut or mapped drive where it doesnt try to run the script from this machine but another machine that has the VBS on it. If I try to create a shortcut or mapped drive even though the script is on a remote machine it trys to run it from the machine that I click the shortcut or mapped drive to. I dont have Outlook installed on the local machine but the remote machine has it and that is where I am trying to run it remotely from. Hopefully this makes sense. Thanks, Robert
     
  14. Kodo

    Kodo SNATCHSQUATCH

    I'm not aware of any way to do this with proposing the following.
    Understand that any time you execute a file from your local machine, it process it locally ONLY.

    You can:
    1. Remotely Connect to the PC which has the file on it to execute it
    2. Create a web script on that machine which has outlook and run the script server side.
    Option 2 really has 2 scenarios to it. You can run the script to open an outlook session which isn't necessary or you can use the SMTP server that is in IIS. Running the script from the webserver can be almost like sending it from your email client, or it can one button click and you're done..
     
  15. rshedrick

    rshedrick Private E-2

    I am using remote admin to remote into a folder that I have shared but when I double click on the icon it runs it from the local machine. I am trying to do this so that end users dont have to remote in plus have security on the remote pc. I also tried to map a drive and do it that way with the same result.
     
  16. Kodo

    Kodo SNATCHSQUATCH

    any time you run the file from your local machine it will run in that LOCAL MACHINE's environment. It doesn't see "C:\path" as the path on machine in which it resides. I sees the path of the machine it was executed from.
    So, mapping a drive isn't going to work.

    You are going to have to run the file from the machine in which it resides. The file was meant for use on a workstation(s) that has outlook installed.
    There isn't any other way to do it. You must use the machine in which the file resides either via Terminal Services (Remote Desktop) or physically using the machine.
     
  17. muskybob

    muskybob Fish Tickler

    Why not just include the link as part of your "signature" when sending email. ;)
     
  18. goldfish

    goldfish Lt. Sushi.DC

    If you wanna run it on a regular basis you could always set the script to run scheduled with scheduled tasks ... could be a pain for the prompt to come up while youre working on somthing though.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds