Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...problem using sendmailproblem using sendmail
Previous
 
Next
New Post
4/23/2008 4:24 AM
 

So I'm probably just missing something really simple :-/ but when I try to send a message using SendMail the message sends but the body and the subject are always empty :( .... The email sends fine but yea it's always empty...... I know I'm able to send and receive emails because newsletters and notifications all get send without a problem

 

 DotNetNuke.Services.Mail.Mail.SendMail(
               "<FROM>",
               "<TO>",
               "",
               "New File Uploaded to the Server",
               "BODY",
               "text",
               "",
               "",
               "",
               "",
               "");

 
New Post
4/23/2008 5:42 AM
 

Which DNN version are you using?


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/23/2008 9:23 AM
 

04.08.02

 

The depricated SendNotification works fine though

DotNetNuke.Common.Globals.SendNotification(
                "<FROM>",
               "<TO>",
               "",
               "subject 1",
               "body");

Sends the email just fine

 
New Post
5/2/2008 2:46 AM
 

anyone?

seems like a fairly basic issue :(

I guess it's fine that it's working using deprecated methods.. but still I'm curious why the method I'm supposed to be using isn't working out

 
New Post
5/2/2008 5:04 AM
 

I cannot find an overload, that matches your parameters, closest is

Public Shared Function SendMail(ByVal MailFrom As String, ByVal MailTo As String, ByVal Bcc As String, _
ByVal Subject As String, ByVal Body As String, ByVal Attachment As String, ByVal BodyType As String, _
ByVal SMTPServer As String, ByVal SMTPAuthentication As String, ByVal SMTPUsername As String, ByVal SMTPPassword As String) As String

but you cannot pass "text" as attachment and need to specify the BodyType. This overload exisits for backwards compatibilty, I suggest to use one of the subsequent overloads with improved type security.

 


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...problem using sendmailproblem using sendmail


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out