Smtp send email with another address
In the "Send mail as" section, click Add another email address. Enter your name and the address you want to send from. Send verification. For school or work accounts, enter the SMTP server (for example, smtp.gmail.com or smtp.yourschool.edu) and the username and password on that account.
All you need is an SMTP server with relaying. if smtp.myserver.com has relaying, than you can use a variety of languages. YOu need to modify the >MAIL From: parameter in any which of those languages.
For magento, modify: “/magento/app/code/core/Mage/Core/Model/Email.php"
then under the public function send() function you need to modify: