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...E-mail sending questionE-mail sending question
Previous
 
Next
New Post
12/21/2008 7:20 AM
 

Hi

I am developing module when you can send in e-mail some document after click on it. So, to do this I use DotNetNuke.Services.Mail.Mail.SendMail. I have configured smtp on my localhost portal to check if everythings work. And I see that there is a strange think, if I use:

DotNetNuke.Services.Mail.Mail.SendMail("", "userInputAdress@gmail.com", "", "title", "body", "", "", "", "", "", ""); nothing happends

but if I use

DotNetNuke.Services.Mail.Mail.SendMail("aa@bb", "userInputAdress@gmail.com", "", "title", "body", "", "", "", "", "", ""); - literally aa@bb

mail is send correctly, and in field 'from' there is adress which I set in smtp settings.

And my question is: can I left it in such way (may be that is some bug of DNN) or should I get in some way correct e-mail adress of the portal (set in smtp setting) and use it instead of aa@bb? And if so how to do it?

OK, now I know what is going on - this adress (aa@bb) is needed because there is option to answer for this mail so I think that now it is quite obvious. But I have another question - how can I add two attachments (I mean of course two paths) to one e-mail?

 
New Post
12/21/2008 6:14 PM
 

you need to specify a MailFrom value, it is not supported to use an empty string in this position. I acknowledge, that this is not validated in the mail method yet, but an empty from address is not accepted  by most of the mail servers. you may skip replyTo (and it is set to From address).

Multiple  attachments can easily be specified, either as "|" separated string in some overloads or as array of strings ("ByVal Attachment() As String").


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/22/2008 7:19 AM
 

Thanks a lot, it solves my problem

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...E-mail sending questionE-mail sending question


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