You did not set any properties on the SmtpClient so it can't relay mail, youhave to specify lots of settings like server, username, password port etc..
mojoPortal has some built in stuff to make sending email a little easier. If you study the mojoPortal source code you can find examples of almost anything you want to do.
This example comes from the ContactForm feature:
try
{
Email.SendEmail(
SiteUtils.GetSmtpSettings(),
siteSettings.DefaultEmailFromAddress,
txtEmail.Text,
Settings["ContactFormEmailSetting"].ToString(),
string.Empty,
string.Empty,
subjectPrefix + ": " + this.txtSubject.Text,
message.ToString(),
true,
"Normal");
}
catch (Exception ex)
{
log.Error(ex);
}
}
Hope it helps,
Joe