electrico Posted December 15, 2009 Share Posted December 15, 2009 (edited) Guys, can someone help with adding file to the mail message? I really dont know how to!! Thaks for advance. Here is my code: #include <inet.au3> Global $s_SmtpServer = "10.32.14.20" Global $s_FromName = "Help_Bot" Global $s_FromAddress = "mailman@gmail.com" Global $s_ToAddress = "someone@gmail.com" Global $s_MailSubject = "computer data" Global $s_MailBody = "This is the body" _InetSmtpMail($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_MailSubject, $s_MailBody) Edited December 15, 2009 by electrico Link to comment Share on other sites More sharing options...
Developers Jos Posted December 15, 2009 Developers Share Posted December 15, 2009 search for: _InetSmtpMailCom() in the examples forum. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
gcue Posted December 15, 2009 Share Posted December 15, 2009 (edited) Jos, _InetSmtpMailCom() sends the email automatically. is there a way to just compose the email in your default mail program currently i use a script that uses _InetSmtpMail to compose a message - the recipient always changes so Id like to always be able to manually type that i manually have to drag log files to the message (that part i wish was automated) sound like electrico may want to do something similar.. not sure if this is possible thanks! Edited December 15, 2009 by gcue Link to comment Share on other sites More sharing options...
Developers Jos Posted December 15, 2009 Developers Share Posted December 15, 2009 I do not see any difference in the 2 UDFs from that respect. You currently have some GUI defined to compose the text? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
gcue Posted December 15, 2009 Share Posted December 15, 2009 (edited) i use this: _INetMail("", "Logs for " & $pc_hostname, "Here are the logs you requested for " & $pc_hostname & Chr(13) & Chr(13)) so it just creates the email with no recipient (which always changes) and users manually drag over the attachment Edited December 15, 2009 by gcue Link to comment Share on other sites More sharing options...
Developers Jos Posted December 15, 2009 Developers Share Posted December 15, 2009 (edited) ooohh .... You said: currently i use a script that uses _InetSmtpMail to compose a messageBoth _InetSmtpMail and _InetSmtpMailCom are for Batch emailing which could of course be edited before sending with a GUI.Jos Edited December 15, 2009 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
gcue Posted December 15, 2009 Share Posted December 15, 2009 oops sorry.. 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