Is it possible to make an autohotkey script (gui window or button) send information to an online source. I know that a script can get information from the web, but can it upload information or send emails?
sending emails/info from autohotkey to an email address/site
Started by
socom1880
, Nov 24 2008 04:22 AM
12 replies to this topic
#1
-
Posted 24 November 2008 - 04:22 AM
Depending on your need, there are numerous ways to achieve this.
I use Blat command line mail sender to send mails, and the built in Windows FTP console client to upload files using FTP.
If you are looking to upload content to a site with an "upload" button, thats something I have not attempted, so cant help you there.
HTH.
I use Blat command line mail sender to send mails, and the built in Windows FTP console client to upload files using FTP.
If you are looking to upload content to a site with an "upload" button, thats something I have not attempted, so cant help you there.
HTH.
#2
-
Posted 24 November 2008 - 05:39 AM
Sector-Seven - Freeware tools built with AutoHotkey
wait sorry im not too experienced. how would you incorporate that into an ahk script?
#3
-
Posted 24 November 2008 - 07:09 AM
You use the Run or RunWait commands to execute the external application.
#4
-
Posted 24 November 2008 - 07:27 AM
Sector-Seven - Freeware tools built with AutoHotkey
run,%comspec% /k blat.exe example.txt -server smtp.web.ch -u Username -pw password -to [email protected] -f [email protected] -s Comment:Test! -log log.txt
or send also attachment
mailserver=mail.bluewin.ch [email protected] To [email protected] ;for test ;Runwait,%comspec% /K Blat -install %mailserver% %from% ;Runwait,%comspec% /K Blat - -body "Hello garry This is a test e-mail" -subject "Test for blat" -to %TO% -attacht test33.txt Runwait,%comspec% /K Blat - -body "Hello garry This is a test e-mail" -subject "Test for blat" -to %TO% -attach test.jpg -attacht test33.txt -attacht test22.txt -attachi test44.txt exitapp /* -attach <file> : attach binary file(s) to message (filenames comma separated) -attacht <file> : attach text file(s) to message (filenames comma separated) -attachi <file> : attach text file(s) as INLINE (filenames comma separated) -embed <file> : embed file(s) in HTML. Object tag in HTML must specify content-id using cid: tag. eg: <img src="cid:image.jpg"> -af <file> : file containing list of binary file(s) to attach (comma separated) -atf <file> : file containing list of text file(s) to attach (comma separated) -aef <file> : file containing list of embed file(s) to attach (comma separated) */
example here
<!-- m -->http://www.autohotke... ... ight=email<!-- m -->
#5
-
Posted 24 November 2008 - 07:38 AM
ok so if i wanted to simply send an email to an adress with just a body message (mabye a subject line) what would i do?
#6
-
Posted 25 November 2008 - 03:21 AM
1st example:
with Blat.exe
2nd example
start email
with Blat.exe
[email protected] Runwait,%comspec% /K Blat - -body "Hello garry This is a test e-mail" -subject "Test for blat" -to %TO%
2nd example
start email
run, mailto:[email protected]?subject=Test55&Body=Hallo Garry`%0a`%0dNew line`%0A`%0A
#7
-
Posted 25 November 2008 - 05:30 PM
Check out this page for a simple tutorial on the MailTo command. I use it for a series of routines I employ daily.ok so if i wanted to simply send an email to an adress with just a body message (mabye a subject line) what would i do?
Hope that helps
Gary
#8
-
Posted 25 November 2008 - 05:45 PM
hmm would it be possible to just send a message (without using outlook) through a gui?
#9
-
Posted 26 November 2008 - 12:42 AM
The MailTo command activates the default email client. I haven't tried to do so by any other method.hmm would it be possible to just send a message (without using outlook) through a gui?
#10
-
Posted 26 November 2008 - 03:01 AM
another example with vmailer
;Homepage: http://virdi-software.com ;Forum: http://forums.virdi-software.com TO [email protected] ;for test your adress [email protected] ;your adress SMTP=mail.networld.com ;SMTP F2 =ToSend.txt ;will be created for test Head=News Header CX1 =Hello Garry DATES=%A_Now% Filedelete,%F2% Fileappend,From:GARRY_NEWS`r`nSubject:%Head%`r`n`r`n%CX1%`,`r`n`r`nAtlanta %DATES%`r`n`r`n,%F2% Fileappend,This is your text line1`r`nThis is line2`r`n`r`nGreetings`,`r`nGarry,%F2% runwait,vmailer.exe %F2% %SMTP% %TO% %FROM% ExitApp
#11
-
Posted 26 November 2008 - 09:56 AM
I am trying to create a script that essentiall enables a user to drag a document onto a compiled AHK script and run a mailto line from outlook but I also want to attach the document that was used to drag n drop on the icon to start the process.
Any ideas or direction would be appreciated.
Thanks!
Any ideas or direction would be appreciated.
Thanks!
#12
-
Posted 04 February 2009 - 05:11 AM
Sorry to resurrect an old thread but is it possible to send an email securely with BLAT.exe?
Also, how do you carriage return for the subject line?
Also, how do you carriage return for the subject line?
#13
-
Posted 20 August 2010 - 06:39 PM
Zak M.