Jump to content
Sign in to follow this  
electrico

Mail attachment

Recommended Posts

electrico

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

Share this post


Link to post
Share on other sites
gcue

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

Share this post


Link to post
Share on other sites
Jos

I do not see any difference in the 2 UDFs from that respect.

You currently have some GUI defined to compose the text?

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
gcue

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

Share this post


Link to post
Share on other sites
Jos

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

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.