Use ethernet shield to send email to a email server in virtual linux px

I don't know what category my problem is in, anyway I have posted this in, since I am new in using Arduino.

I have a project that needs to send image or data via email with the use of ethernet shield. I am planning to use my already set-up email server inside the virtual machine. the virtual machine uses a linux operating system and I dont have any clue how to enable the ethernet shield to send email inside the virtual machine's email server.

Please help me with this. I would appreciate your reply and It's great to listen and understand your wide knowledge about this :slight_smile: thank you.

I have an example sketch in the playground that sends email to an email server using port 25.

If it is your email server, it should work fine. It works on my Linux email server.

how should I do it? do i have to run with arduino ide inside the virtual machine??? Thank you for your suggestion and clarrification:)

do you have instructables for that ? thanks for the help :slight_smile:

Is your Linux virtual machine email server available to the internet? You should be able to use that code anywhere on the email server's localnet without problems.

If you want to access it from the internet (not localnet), you will need to port forward port 25 from your public IP to the email server's private IP in your router with the public IP.