Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add support for fromname and toname to .send

That's about it. Happy to add it to the SMTP API
as well once I have a few seconds to review the
API structure.
  • Loading branch information...
commit aa20646915f43f58e62bf898e48791a45879d443 1 parent 2d9f73f
Kav Latiolais authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/email.js
View
6 lib/email.js
@@ -223,6 +223,12 @@ Email.prototype.toWebFormat = function() {
headers: JSON.stringify(this.headers)
};
+ if (this.fromname != null) {
+ data.fromname = this.fromname;
+ }
+ if (this.toname != null) {
+ data.toname = this.toname;
+ }
this.updateMissingTo(data);
return data;
Please sign in to comment.
Something went wrong with that request. Please try again.