This is a little command-line program to send mails.
http://sapco.info/software/minimail.zip
It´s easy to use and can send attachments too.
It can be simply used with File.Run in AMS
Code:The parameters to send the mail are: 1. MailServer 2. User name of the mail account 3. Password for the Mail account 4. Mail adress of the Sender (optional) 5. Name of the Email Sender (optional) 6. Mail adress of the Recipient 7. Subject of the Email (optional) 8. Text of the Email (optional) 9. Attachment (optional) Usage: minimail.exe "MailServer" "User Password" "Sender_Email" "Sender_Name" "Recipient" "Email_Subject" "Email_Text" "Attachment" example with all parameters used: minimail.exe "smtp.yahoo.com" "johnsmith@yahoo.com" "thatsmypassword" "johnsmith@yahoo.com" "John Smith" "hannah.montana@television.tv" "Thats the reason of my Email" "This could be a long text, but i want to make it short." "c:\Myfile.zip" example without sending Subject and Attachment: minimail.exe "smtp.yahoo.com" "johnsmith@yahoo.com" "thatsmypassword" "johnsmith@yahoo.com" "John Smith" "hannah.montana@television.tv" "" "This could be a long text, but i want to make it short." "" minimail.exe writes the result of Email-sending to the file minimail.History.txt. There you can see if there was an error sending the mail.

Reply With Quote



