Permalink
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...
1 parent 2d9f73f commit aa20646915f43f58e62bf898e48791a45879d443 Kav Latiolais committed May 16, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/email.js
View
@@ -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;

0 comments on commit aa20646

Please sign in to comment.