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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Sending mail with multiple attachments from DNN moduleSending mail with multiple attachments from DNN module
Previous
 
Next
New Post
2/1/2010 6:55 PM
 

I am trying to add two pdf files as an attachment to a mail. Adding each one individualy works fine but when I add them in a string array and send the mail no attachment is added. Is this a known issue or am I doing something wrong?

I am using the following sendmail override:

SendMail(string MailFrom, string MailTo, string Cc, string Bcc, MailPriority Priority, string Subject, MailFormat BodyFormat, Encoding BodyEncoding, string Body, string[] Attachment, string SMTPServer, string SMTPAuthentication, string SMTPUsername, string SMTPPassword, bool SMTPEnableSSL);

 

 
New Post
2/1/2010 10:19 PM
 

you need to pass an array of strings, containing an attachment path in each element


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/1/2010 11:21 PM
 

That is what I am doing. When I try the paths of both files individually (adding them as string directly) they get added as attachment but when I add the paths to a string array and use the array as attachment the mail sends without attachment. Any thoughts?

Greetings from Mexico.

 
New Post
2/2/2010 4:36 AM
 

what is the concrete error you are facing?

are you using a dynamically sized array?

I am not sure, whether multiple attachment has ever been tested due to missing UI.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/2/2010 10:33 AM
 

I do not get an error. I simply use the sendmail override that uses a string array and pass a string array with 2 strings (paths to the two files). It then sends the mail but it does not attach either file. I will do some more testing today and will also take a look at the DNN source to see how the array is handled. Your replies are very much appreciated.

 

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Sending mail with multiple attachments from DNN moduleSending mail with multiple attachments from DNN module


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