I'm using NET lib 1.80 with B4a 9.00.
I have the below code:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
The email is sent OK, but the "From:" is the username "send@mydomain.com" and not the .MailFrom = "sales@mydomain.com" that I set it to.
			
			I have the below code:
			
				B4X:
			
		
		
		SMTP.Initialize("mail.mydomain.com",222,"send@mydomain.com","123Pass","SMTP")
SMTP.To.Add("support@mydomain.com")
SMTP.HtmlBody = False
SMTP.Body = EmailBody
SMTP.Subject = EmailSubject
SMTP.MailFrom = "sales@mydomain.com"
SMTP.AuthMethod = SMTP.AUTH_LOGIN
SMTP.Send
	The email is sent OK, but the "From:" is the username "send@mydomain.com" and not the .MailFrom = "sales@mydomain.com" that I set it to.