Jump to content

Mail attachment


 Share

Recommended Posts

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 by electrico
Link to comment
Share on other sites

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 by gcue
Link to comment
Share on other sites

  • Developers

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

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 by gcue
Link to comment
Share on other sites

  • Developers

ooohh .... You said:

currently i use a script that uses _InetSmtpMail to compose a message

Both _InetSmtpMail and _InetSmtpMailCom are for Batch emailing which could of course be edited before sending with a GUI.

Jos ;)

Edited 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...