Iznogoud Posted September 30, 2010 Share Posted September 30, 2010 Hi all, I am looking for a nice way to send my invoices to my customers, without using some online monthly paid system. I received an e-mail with a nice 3D PDF image icon wich you can click to download a information file and this makes me wonder. Is it possible to create a tool wich would input an image file to the e-mail with a specific hyperlink? If so then the next step would be to upload a file to IIS, create a unique hyperlink, input the image the a new e-mail message with the hyperlink. But first of all, is it possible to input an image into a new e-mail message, any idea how to start? ps. if you have other suggestions about handling this issue, please let me know. Link to comment Share on other sites More sharing options...
iamtheky Posted September 30, 2010 Share Posted September 30, 2010 Type something along the lines of <a href = "http://www.google.com"><IMG SRC = "http://www.designsojourn.com/wp-content/uploads/2008/02/flintstones-car.jpg"></a> into a text editor. save it as an html file. open that html file in a browser. Select All and Copy it Paste that into your email client of choice. Any other solution will likely be Email client specific. ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Iznogoud Posted September 30, 2010 Author Share Posted September 30, 2010 Type something along the lines of <a href = "http://www.google.com"><IMG SRC = "http://www.designsojourn.com/wp-content/uploads/2008/02/flintstones-car.jpg"></a> into a text editor. save it as an html file. open that html file in a browser. Select All and Copy it Paste that into your email client of choice. Any other solution will likely be Email client specific. That's not an easy way, i was searching for some way i can select a file and with a press of a button the image is added to the e-mail message. Your way is not possible and higly un-user friendly. Link to comment Share on other sites More sharing options...
iamtheky Posted September 30, 2010 Share Posted September 30, 2010 (edited) ummm seriously? its absolutely possible and not incredibly difficult. This will create the html and copy it, all you have to do is open your email client and paste it. Just swap out the URL in the filewrite and a preferred temp location. Then maybe add some clean up lest you want all the windows to remain open. If you would reveal your email client, there may be functionality already present making a generic solution less than optimal. and who are un-users and how am i friendly to them $image = inputbox ("what pic" , "what pic?") $temp = "c:\test.html" $test = FileOpen($temp , 2) FileWrite($test, "<a href = 'http://www.google.com'><IMG SRC =" & $image & "></a>") Fileclose($test) ShellExecuteWait($temp) sleep(500) send ("^a") sleep (500) send("^c") sleep (500) Edited September 30, 2010 by iamtheky ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Iznogoud Posted September 30, 2010 Author Share Posted September 30, 2010 ummm seriously? its absolutely possible and not incredibly difficult. This will create the html and copy it, all you have to do is open your email client and paste it. Just swap out the URL in the filewrite and a preferred temp location. Then maybe add some clean up lest you want all the windows to remain open. If you would reveal your email client, there may be functionality already present making a generic solution less than optimal. and who are un-users and how am i friendly to them $image = inputbox ("what pic" , "what pic?") $temp = "c:\test.html" $test = FileOpen($temp , 2) FileWrite($test, "<a href = 'http://www.google.com'><IMG SRC =" & $image & "></a>") Fileclose($test) ShellExecuteWait($temp) sleep(500) send ("^a") sleep (500) send("^c") sleep (500) Sorry about un-user, that's my fault with the translation. I meant not user friendly. I tried your script and it works, i only hope it also possible without opening the internet explorer or html file. But then again, i don't have a clue how to do that. Trying to put things on clipboard right away, but that's text only i think. Link to comment Share on other sites More sharing options...
iamtheky Posted October 1, 2010 Share Posted October 1, 2010 (edited) Hopefully someone smart can answer this: The following script functions for pasting the live html contents of the clipboard into the body of an outlook(2010) message. However, my attempts at using the _outlooksendmail yield either null or a result of 1, when I attempt send("^v") as the $sBody. Is there a nice way to paste non-text data from the clipboard? Going through the clipboard udf at the moment and getting similar results... expandcollapse popup#Include <Array.au3> #Include <Outlook.au3> #Include <Clipboard.au3> $temp = "c:\test.html" $test = FileOpen($temp , 2) FileWrite($test, "<a href = 'http://www.google.com'><IMG SRC =http://wba.theoffside.com/files/2010/05/the-flintstones.jpg></a>") Fileclose($test) ShellExecuteWait($temp) sleep(5000) send ("^a") sleep (2000) send("^c") sleep (1000) send("^w") shellexecute ("outlook.exe") sleep (5000) send ("!") sleep (500) send ("h") sleep (500) send ("n") sleep (500) send ("test@gmail.com") ; to send ("{TAB}") send ("{TAB}") send ("{TAB}") ; skips cc sleep (500) send ("Autoit Pic Send Test") ;subject sleep (500) send ("{TAB}") sleep (500) send ("^v") ; pastes clipboard into body ;~ Global $oOutlook = _OutlookOpen() ;~ $paste = send("^v") ;~ _OutlookSendMail($oOutlook, "test@gmail.com", "","", "AutoitTest", $paste, "") Edited October 1, 2010 by iamtheky ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Iznogoud Posted October 4, 2010 Author Share Posted October 4, 2010 Hopefully someone smart can answer this: The following script functions for pasting the live html contents of the clipboard into the body of an outlook(2010) message. However, my attempts at using the _outlooksendmail yield either null or a result of 1, when I attempt send("^v") as the $sBody. Is there a nice way to paste non-text data from the clipboard? Going through the clipboard udf at the moment and getting similar results... expandcollapse popup#Include <Array.au3> #Include <Outlook.au3> #Include <Clipboard.au3> $temp = "c:\test.html" $test = FileOpen($temp , 2) FileWrite($test, "<a href = 'http://www.google.com'><IMG SRC =http://wba.theoffside.com/files/2010/05/the-flintstones.jpg></a>") Fileclose($test) ShellExecuteWait($temp) sleep(5000) send ("^a") sleep (2000) send("^c") sleep (1000) send("^w") shellexecute ("outlook.exe") sleep (5000) send ("!") sleep (500) send ("h") sleep (500) send ("n") sleep (500) send ("test@gmail.com") ; to send ("{TAB}") send ("{TAB}") send ("{TAB}") ; skips cc sleep (500) send ("Autoit Pic Send Test") ;subject sleep (500) send ("{TAB}") sleep (500) send ("^v") ; pastes clipboard into body ;~ Global $oOutlook = _OutlookOpen() ;~ $paste = send("^v") ;~ _OutlookSendMail($oOutlook, "test@gmail.com", "","", "AutoitTest", $paste, "") I tried several options, but i do not see anything happening. I have deleted the part of starting outlook etc, because that part is manually. I am trying to make a script wich can select a PDF, upload it to an HTML Fileserver, Create a unique link and make an image with the right link. The last part should be put on the clipboard, so i could paste it anywhere in the message. Is it anyway possible to use non-text in the clipboard function? Link to comment Share on other sites More sharing options...
whim Posted October 4, 2010 Share Posted October 4, 2010 Is it anyway possible to use non-text in the clipboard function ?According to the help file it is, check: User Defined Functions Reference -> Clipboard ManagementHTH,whim Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now