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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...multiple attachments with SendMailmultiple attachments with SendMail
Previous
 
Next
New Post
6/19/2006 10:43 AM
 

Hi,

I'm writing a module that responds to a request for information with an email that may have more than one attachment in it.

Am I right in thinking that the DotNetNuke.Services.Mail..Mail.SendMail routine only allows for one attachment?

Public Shared Function SendMail(....
...

If Attachment <> "" Then
   
objMail.Attachments.Add(New Web.Mail.MailAttachment(Attachment))
End If

should be:

If Attachment <> "" Then
   
Dim arFiles() As String = Split(Attachment, ";")
      
For i = 0 To arFiles.Length - 1
      
If arFiles(i) <> "" Then  objMail.Attachments.Add(New Web.Mail.MailAttachment(arFiles(i)))
    Next
End If

If this is the case, It would be useful to include this in the next release

regards,
Duncan.

 
New Post
7/29/2006 3:43 PM
 

Hi,

this inconvinience is probably not fixed in the last Release of dnn.

Is there a way to overcome this weakness by adding own code?

 

With best regards.

 

Klaus-Dieter

 
New Post
7/29/2006 7:47 PM
 

 

Enhancement requests can be entered into Gemini at :

http://support.dotnetnuke.com/Main.aspx

 


DotNetNuke Modules from Snapsis.com
 
New Post
7/29/2006 11:22 PM
 

Here's one that I think would be a good fit, and been around awhile...

DNNP-1939

Where I am hosting the mail server has been going up and down a lot more recently causing exceptions being thrown when mails are being sent, and missed emails because of it. If DNN had a provider here I could swap out the provider for on that would queue the message for later deliverly. 

For examples like above I think a provider here would be a good fit in the core. What can be done to get this added? Core functionality could remain as it currently is, with the power to swap out the provider as needed.

Anyways, Just a idea.

Dave

 
New Post
7/30/2006 9:35 AM
 

You could put all the files in a zip file and mail the zip file

you can zip with the library that comes with dnn or you can do it with the built in classes of .NET2


Edit your Skin.xml and Container.xml files with:
Yannick's SXE
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...multiple attachments with SendMailmultiple attachments with 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