For a web application I\'m working on I made a method to send email notifications. The message has to come from a specific account, but I would like the \"from\" header field to
What you are looking to do is called "spoofing." It appears as though you are using Google's SMTP servers, if this is the case, you will not be able to do this successfully. For security purposes, Google will only allow the "from" address to be the authenticated email address.
See this related question