Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Affordable ASP.NET Hosting Service
  Ads  
 


  Sponsors  

Meet Our Sponsors

ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  problem using sendmail
Previous Previous
 
Next Next
New Post 4/23/2008 2:24 AM
User is offline ShaneN
9 posts
10th Ranked


problem using sendmail 

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 3:42 AM
User is offline Sebastian Leupold
15057 posts
www.deutschnetnuke.de
1st Ranked












Re: problem using sendmail 

Which DNN version are you using?


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 4/23/2008 7:23 AM
User is offline ShaneN
9 posts
10th Ranked


Re: problem using sendmail 

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 12:46 AM
User is offline ShaneN
9 posts
10th Ranked


Re: problem using sendmail 

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 3:04 AM
User is offline Sebastian Leupold
15057 posts
www.deutschnetnuke.de
1st Ranked












Re: problem using sendmail 

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.

 


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  problem using sendmail
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


PartnerPoint | Community of Microsoft Partners
PartnerPoint is one of the largest and most active online communities of Microsoft Partners worlwide with over 8,000 members.
www.PartnerPoint.com
Web Valley
Website design, Database development
www.webvalley.com
UK DotNetNuke CMS installation, hosting & support
UK based installation, branding, customising, integration, hosting, training, support and maintenance services for DotNetNuke
www.deburca.co.uk

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP