Android Question SMTP.Sender.Replace appears not to change displayed name

PhilipK

Member
Licensed User
Longtime User
Hi,

Creating a tool to send emails to a list of recipients. Testing the tool: The emails are sent from my main email account and it works, fine.

I would like to replace the 'displayed name' (my main email address) with a display name such as "Info@...".

I believe that the following should do this but the 'sender.replace' appears not to make the replacement:
B4X:
            SMTP1.To.Add(txtAddress.Text)
            SMTP1.Subject = txtSubject.text & " " & n
            SMTP1.Body = txtMessage.text
            SMTP1.Sender.Replace("michelle@souris.co.uk","Info@souris.com")

Any ideas?

Thanks for your help.
 

PhilipK

Member
Licensed User
Longtime User


Ah, OK. I thought that it would be possible to change the displayed name while keeping the underlying email account the same. So I'll create some new email accounts!

Thanks, Erel.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…