Download MetaTrader 5
To add comments, please log in or register
Order the development and track its status via your mobile phone.
julz
171
julz 2010.03.01 02:46 

Hello,


Just a quick question

Is there a way to attach a screenshot to an email . Basically make the WindowScreenShot() function and the SendMail() function work together ?



cheers,

-J

gordon
2322
gordon 2010.03.01 04:24  

julz wrote >>

Is there a way to attach a screenshot to an email . Basically make the WindowScreenShot() function and the SendMail() function work together ?

MT4's built-in email client does not support attachments. There are 2 possible solutions:

- Implement email attachment functionality in a DLL.

- Email via a command-line mailer - executing via ShellExecuteA().


I currently use the 2nd method successfully. A popular, stable and open-source command-line mailer is blat -> https://www.mql5.com/go?link=http://www.blat.net/. You can also add SSL support with a SSL wrapper - I use stunnel -> https://www.mql5.com/go?link=http://www.stunnel.org/, which is also open-source and stable (this will enable mailing via a gmail account). If u want even more security, u can implement OpenPGP encryption via GnuPG -> https://www.mql5.com/go?link=http://www.gnupg.org/ (also a stable open-source project).


Another option is to FTP the attachment via SendFTP() instead of emailing it, but u would need an FTP account for that. From my experience the built-in FTP client is not very reliable, but it works fine for many people and would be much easier to implement.

julz
171
julz 2010.03.01 06:15  

Cool, I`ll look into this, thanks for the infos .

ekud87
6
ekud87 2014.12.10 02:23  
gordon:

MT4's built-in email client does not support attachments. There are 2 possible solutions:

- Implement email attachment functionality in a DLL.

- Email via a command-line mailer - executing via ShellExecuteA().


I currently use the 2nd method successfully. A popular, stable and open-source command-line mailer is blat -> http://www.blat.net/. You can also add SSL support with a SSL wrapper - I use stunnel -> http://www.stunnel.org/, which is also open-source and stable (this will enable mailing via a gmail account). If u want even more security, u can implement OpenPGP encryption via GnuPG -> http://www.gnupg.org/ (also a stable open-source project).


Another option is to FTP the attachment via SendFTP() instead of emailing it, but u would need an FTP account for that. From my experience the built-in FTP client is not very reliable, but it works fine for many people and would be much easier to implement.



hi gordon

I'm desperate

I have long sought the solution and still can not find it

you could help me?

could you give more details? a code sample. etc?

sorry for my English

/
To add comments, please log in or register