Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

sending emails/info from autohotkey to an email address/site


  • Please log in to reply
12 replies to this topic
socom1880
  • Members
  • 73 posts
  • Last active: Jun 06 2011 07:40 AM
  • Joined: 14 Aug 2008
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?

Icarus
  • Members
  • 851 posts
  • Last active: Jan 02 2012 11:17 AM
  • Joined: 24 Nov 2005
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.
Sector-Seven - Freeware tools built with AutoHotkey

socom1880
  • Members
  • 73 posts
  • Last active: Jun 06 2011 07:40 AM
  • Joined: 14 Aug 2008
wait sorry im not too experienced. how would you incorporate that into an ahk script?

Icarus
  • Members
  • 851 posts
  • Last active: Jan 02 2012 11:17 AM
  • Joined: 24 Nov 2005
You use the Run or RunWait commands to execute the external application.
Sector-Seven - Freeware tools built with AutoHotkey

garry
  • Spam Officer
  • 3219 posts
  • Last active: Sep 20 2018 02:47 PM
  • Joined: 19 Apr 2005
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 -->

socom18800
  • Guests
  • Last active:
  • Joined: --
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?

garry
  • Spam Officer
  • 3219 posts
  • Last active: Sep 20 2018 02:47 PM
  • Joined: 19 Apr 2005
1st example:
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


JeremysDad
  • Members
  • 113 posts
  • Last active: Feb 23 2015 03:56 PM
  • Joined: 28 Oct 2005

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?

Check out this page for a simple tutorial on the MailTo command. I use it for a series of routines I employ daily.

Hope that helps :)

Gary

socom18800
  • Guests
  • Last active:
  • Joined: --
hmm would it be possible to just send a message (without using outlook) through a gui?

JeremysDad
  • Members
  • 113 posts
  • Last active: Feb 23 2015 03:56 PM
  • Joined: 28 Oct 2005

hmm would it be possible to just send a message (without using outlook) through a gui?

The MailTo command activates the default email client. I haven't tried to do so by any other method.

garry
  • Spam Officer
  • 3219 posts
  • Last active: Sep 20 2018 02:47 PM
  • Joined: 19 Apr 2005
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


Architek
  • Guests
  • Last active:
  • Joined: --
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!

scriptmonkey
  • Members
  • 176 posts
  • Last active: Jan 08 2015 07:42 PM
  • Joined: 19 May 2006
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?
Zak M.