Hi Erel,
I just tested this on two different email servers using two different apps.
Server 1 = SMTP2GO (smtp paid service)
Server 2 = a VPS on Godaddy where I installed my own "smartermail" email server on the VPS to manage all my domains's emails.
I can setup a new account in my Windows Microsoft Outlook 2003 app (not outlook.com site) and specify "
[email protected]" and "John" as the "user info". And in this same account I setup the SMTP account with the username of "
[email protected]" and it's password. And when I send an email using this account, it comes up as coming from "John (
[email protected])" and NOT the smtp login username of "
[email protected]".
I also created a VB6 app that uses nsoftware's SMTP ActiveX control and configured the SMTP control with the SMTP2GO account info (which has a totally different username) and set the control's SMTP.From = "
[email protected]" and when it sends an email, it will show "
[email protected]" as the "From" address (and not the SMTP2Go login username).
But, when I use the same account info for either server with the B4A NET lib, the "From" will always be the login username and not the value for SMTP.MailFrom that I assigned.
So, I don't know what is going on with B4A's NET lib, but as you can see both of the SMTP servers I tested this with will accept a different "From" then the username.