Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending HTML in Email #60

Open
ghost opened this issue Dec 28, 2011 · 0 comments
Open

Sending HTML in Email #60

ghost opened this issue Dec 28, 2011 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 28, 2011

Hi,

I am trying to send Html in an Email through the following source code:

var email = require("./mailer/lib/node_mailer");

email.send({
host : "smtp.xyz.com", // smtp server hostname
port : "25", // smtp server port
ssl: false, // for SSL support - REQUIRES NODE v0.3.x OR HIGHER
domain : "xyz.com", // domain used by client to identify itself to server
to : "user@abc.com",
from : "info@xyz.com",
subject : "Hello World",
body: "

Hello! This is a test of the node_mailer.


<a href = "www.google.co.in">",
authentication : "login", // auth login is supported; anything else is no auth
username : "info@lfn.com", // username
password : "Pornichet", // password
debug : true,
html : true
},
function(err, result){
if(err){ console.log(err); }
});

On executing the script, i get the following error message:

Object true has no method 'replace'
at Object.encodeQuotedPrintable (/home/devrelay/DeployedVersion/MailPrototype/mailer/node_modules/nodemailer/node_modules/mimelib-noiconv/mime-functions.js:151:15)
at EmailMessage.generateBody (/home/devrelay/DeployedVersion/MailPrototype/mailer/node_modules/nodemailer/lib/mail.js:336:27)
at SMTPClient._flushMessages (/home/devrelay/DeployedVersion/MailPrototype/mailer/node_modules/nodemailer/lib/smtp.js:157:21)
at SMTPClient.sendMail (/home/devrelay/DeployedVersion/MailPrototype/mailer/node_modules/nodemailer/lib/smtp.js:254:46)
at SMTPClientPool.send (/home/devrelay/DeployedVersion/MailPrototype/mailer/lib/node_mailer.js:71:10)
at dispatchMail (/home/devrelay/DeployedVersion/MailPrototype/mailer/lib/node_mailer.js:112:12)
at Object.node_mail as send
at Object. (/home/devrelay/DeployedVersion/MailPrototype/mailsender.js:3:11)
at Module._compile (module.js:402:26)
at Object..js (module.js:408:10)

How do i solve this ?

Thanks

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

No branches or pull requests

0 participants