xpMail - Send email with attachment anywhere.


Do you want to send emails from metatrader to your gmail account?

Do you want to send emails from metatrader to your yahoo/hotmail/etc account?

Do you want to send html format emails from metatrader?

Do you want to send attachments (ex: screen shot of the chart)?


I've created a dll that sends email with/without attachment to gmail. For sure you can use it with hotmail/yahoo etc.
The good news is it's Free (free version appends our site link to the end of your message - try Pro version).

logos

Setup:

Copy the dll to the MQL4 Libraries folder.
Copy the xpMail script to MQL4 Scripts folder.

These are the xpMail inputs:

Code
Set it to "free" for using a free version of xpMail

Server
For gmail we are using "smtp.gmail.com"

User
Enter your gmail user name. Ex: youremail@gmail.com

Pass
Enter your gmail password.

Port
The server port. For gmail keep the port 465

UseSSL
Does the server use SSL. for gmail keep it = true

Authenticate
Does the server use authentication. for gmail keep it = true

From
The sender that appears in your gmail. ex: youremail@gmail.com

To
The email that yo'u send to. usaually your gmail email. ex: youremail@gmail.com

CC
Set it if you want to send a copy of the email to another email

BCC
Set it if you want to send a blind copy of the email to another email

Subject
Email subject

Body
Email body. You can use html tags (ex: <br>)

Attach
If you want to attach a file set the file name and path

Hope you enjoy!