Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

How to set from, to, subject #2

Open
alif80 opened this issue Jan 18, 2017 · 2 comments
Open

How to set from, to, subject #2

alif80 opened this issue Jan 18, 2017 · 2 comments

Comments

@alif80
Copy link

alif80 commented Jan 18, 2017

Hi,
Thank you for putting this together. I have a silly question, but how do you set the from, to, subject for the message. I could not see this in the documentation or I must have overlooked it. Could you please provide an example? Thanks

@buiduyhung13
Copy link

buiduyhung13 commented May 18, 2017

@alif80 I tried with below and it worked

  msg = mimemessage.factory({
  	contentType: 'multipart/mixed',
  	body: []
  });
  msg.header('Message-ID', '<1234qwerty>');
  msg.header('from', 'from@gmail.com');
  msg.header('to', 'to@gmail.com');
  msg.header('subject', 'Test email');

@ibc
Copy link
Contributor

ibc commented Jul 18, 2017

Yes, that's the way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants