<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
</head>
<body>
<h1>Welcome to example.com</h1>
<p>
You have successfully signed up to example.com,
your username is: .<br/>
</p>
<p>
To login to the site, just follow this link: .
</p>
<p>Thanks for joining and have a great day!</p>
</body>
</html>
when i deliver mail in the email it gives me the same code instead of
html output .
Interesting. What version of Rails are you using? I'm still in 3.0 and I
deliver stuff like in the rails guide:
UserMailer.welcome_email(@user).deliver
In your case I would see it like
CronjobMailer.cronjob(sender,recipient_list,@subject,@messege,
@late_commers).deliver have you tried something like that?
I am using rails 2.3.8
Do i require any other gem ?
Well it is long time ago since I used Rails 2.3
For sure the Rails guide that I suggested is for Rails 3.0.x and the
mailer logic was changed and improved from 2.3 to 3.0. Many things
changed there.
If you are just starting the project I would recommend upgrading at
least to Rails 3.0 and if you dare even to Rails 3.1 which is the new
beast. If you need to stick to rails 2.3 maybe this is old enough