angelos3lex / react-native-smtp-mailer

Send emails by connecting to smtp server+attachments, using android javamail and ios mailcore2
39 stars 32 forks source link

Use From-field to set name of sender in outgoing mails #20

Closed MarkusPettersson98 closed 3 years ago

MarkusPettersson98 commented 4 years ago

As brought up by @justin-dai in https://github.com/angelos3lex/react-native-smtp-mailer/issues/7#issuecomment-495385303, there is currently not a way to set a custom name of sender. From what I can tell as of the current code, from is not actually used for anything? Maybe it is and I fail to see that case? :)

I also would like to see this as being optional (as BCC list is, see #17), as it is not strictly necessary to set a custom alias in order to send an email.

Either way, it would be nice to able to set a custom alias. So far, this is only a draft and any inputs would be appreciated!

TODO