AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mail a file

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
lingoist



Joined: 05 Oct 2004
Posts: 121
Location: Brasília, Brazil

PostPosted: Tue Feb 01, 2005 7:38 pm    Post subject: Mail a file Reply with quote

Is that possible to email a file with a script? For example: I would like to send the file C:\test.txt as an attached file in Outlook Express.

Thanks,
Lingoist


Last edited by lingoist on Fri Nov 04, 2005 11:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Tue Feb 01, 2005 7:52 pm    Post subject: Reply with quote

use a cmd line tool like blat.
_________________
Back to top
View user's profile Send private message
Jon



Joined: 28 Apr 2004
Posts: 373

PostPosted: Tue Feb 01, 2005 7:54 pm    Post subject: Reply with quote

you can use a command line utility to send e-mail.

I use this to send attachments all the time via a script-
http://caspian.dotconf.net/menu/Software/SendEmail/
Back to top
View user's profile Send private message Send e-mail
lingoist



Joined: 05 Oct 2004
Posts: 121
Location: Brasília, Brazil

PostPosted: Tue Feb 01, 2005 8:32 pm    Post subject: Reply with quote

Thanks Jon, but I haven't succeeded in sending an email with SendEmail.exe. Log says:

Tue Feb 1 17:21:06 2005 - 1799777 - sendEmail.exe - ERROR: Connection attempt to [localhost:25] failed: Unknown error

How could I capture my server and its port?
Back to top
View user's profile Send private message
lingoist



Joined: 05 Oct 2004
Posts: 121
Location: Brasília, Brazil

PostPosted: Tue Feb 01, 2005 9:42 pm    Post subject: Like TextPad does Reply with quote

In fact, I would like to use the Outlook Express. Would there be a way to send an attached file like TextPad does?

Thanks,
Lingoist


Last edited by lingoist on Fri Nov 04, 2005 11:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Tue Feb 01, 2005 11:20 pm    Post subject: Reply with quote

Quote:
Connect Failed message

If you get a connect failed message it means that the MAILSERVER entry in your sendmail.ini configuration file is incorrect, or the mail server is not responding. You need to specify the host name of an SMTP mail server. The required name should have been provided to you by your system administrator or ISP.

If you are using Outlook Express you can find the by mail server host name and port by clicking on Tools, Accounts, Mail tab, a mail account, Properties, Servers tab - Outgoing Mail(SMTP) and Advanced tab - Outgoing Mail(SMTP).


Taken from the IndigoMail manual, which seems to be identical to sendmail. Have a try. And btw: RTFM of "your" sendmail Wink
Back to top
lingoist



Joined: 05 Oct 2004
Posts: 121
Location: Brasília, Brazil

PostPosted: Wed Feb 02, 2005 4:00 pm    Post subject: Reply with quote

Thanks BoBo and Jon,

I've succeed in executing my script with smtp.hotpop.com:25, but it requires POP Authentication before SMTP. Would you know a command-line program to check POP3?

Lingoist


Last edited by lingoist on Fri Nov 04, 2005 11:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Wed Feb 02, 2005 5:48 pm    Post subject: Reply with quote

As already recommanded (above) by Mr. Smart-GUI himself (guess only his mum still calls him "Rajat" Laughing )

Quote:
Blat

Win32 console utility to send mail via SMTP or post to usenet via NNTP
by P.Mendes,M.Neal,G.Vollant,T.Charron,T.Musson,H.Pesonen,A.Donchey,C.Hyde
http://www.blat.net
syntax:
Blat -to [optional switches (see below)]
Blat -install [[[]]] [-q]
Blat -profile [-delete | ""] [profile1] [profileN] [-q]
Blat -h

-------------------------------- Installation ---------------------------------
-install[SMTP|NNTP|POP3] [
[ [ [ []]]]]
: set server, sender, number of tries and port for profile
( and may be replaced by '-')
port defaults are SMTP=25, NNTP=119, POP3=110
default profile can be specified with a '-'
username and/or password may be stored to the registry
order of options is specific
use -installNNTP for storing NNTP information
use -installPOP3 for storing POP3 information
(sender and try are ignored, use '-' in place of these)

[More...]
Back to top
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Wed Feb 02, 2005 10:38 pm    Post subject: Reply with quote

Hmmm... Wink
Back to top
View user's profile Send private message
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Thu Feb 03, 2005 12:43 am    Post subject: Reply with quote

Smile
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group