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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Using Sendmail to send emails to more than 1 personUsing Sendmail to send emails to more than 1 person
Previous
 
Next
New Post
1/29/2009 11:20 AM
 

Hi

I recently upgraded my site from DNN3.3.7 to 4.9.1. Pretty much everything is working ok except that I am finding a module, that I created in DNN 3.3.7 is not sending emails the way it was, and I am wondering if there is a bug in the SendMail code.

I have some code

 

DotNetNuke.Services.Mail.Mail.SendMail(_sendfrom, "admin@mydomain.com","you@mydomain.com,me@mydomain.com",EmailSubject.Text, Server.HtmlDecode(EmailText.Text), "", "html", "", "", "", "")

When I invoke the send it sends the email but only admin@mydomain.com and me@mydomain.com receives it. When I looked at the code I found that with CC and BCC the code is objMail.Bcc.Add(Bcc) where Bcc contains "you@mydomain.com,me@mydomain.com"

Is this right or should the objMail.Bcc.Add(Bcc) loop through everything seperated by commas?

Thanks in advance

 

 
New Post
1/29/2009 1:34 PM
 

AFAIR there is specific code to replace comma by semicolon, but try to use semicolon instead. You also don't need to HTMLDecode, except the text is encoded.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/30/2009 3:16 AM
 

hi,

perhaps you can try this

DotNetNuke.Services.Mail.Mail.SendMail(_sendfrom, "admin@mydomain.comyou@mydomain.com;me@mydomain.com",EmailSubject.Text"", "html", "", "", "", ""), Server.HtmlDecode(EmailText.Text), ;

is recommend to create a functions to replace those emails you want to send to, unless you just want to send to specific users.

Roy Thakur wrote
 

Hi

I recently upgraded my site from DNN3.3.7 to 4.9.1. Pretty much everything is working ok except that I am finding a module, that I created in DNN 3.3.7 is not sending emails the way it was, and I am wondering if there is a bug in the SendMail code.

I have some code

 

DotNetNuke.Services.Mail.Mail.SendMail(_sendfrom, "admin@mydomain.com","you@mydomain.com,me@mydomain.com",EmailSubject.Text, Server.HtmlDecode(EmailText.Text), "", "html", "", "", "", "")

When I invoke the send it sends the email but only admin@mydomain.com and me@mydomain.com receives it. When I looked at the code I found that with CC and BCC the code is objMail.Bcc.Add(Bcc) where Bcc contains "you@mydomain.com,me@mydomain.com"

Is this right or should the objMail.Bcc.Add(Bcc) loop through everything seperated by commas?

Thanks in advance

 

 
New Post
1/30/2009 3:37 AM
 

I don't understand, what woaychee is trying to do, maybe you should install the debug symbols for your DNN version from http://www.codeplex.com/DNNHelpSystem and trace, what happens within your call. sorry, no other idea atm.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/30/2009 9:44 AM
 

Hi
Thanks for your reply. The reason I am doing it the way that I am is that I need to send emails blind copied so that other people do not see who the email is going to.

 

woaychee wrote
 

hi,

perhaps you can try this

DotNetNuke.Services.Mail.Mail.SendMail(_sendfrom, ";admin@mydomain.comyou@mydomain.com;me@mydomain.com",EmailSubject.Text"", "html", "", "", "", ""), Server.HtmlDecode(EmailText.Text),

is recommend to create a functions to replace those emails you want to send to, unless you just want to send to specific users.

 Roy Thakur wrote
 

 

Hi

I recently upgraded my site from DNN3.3.7 to 4.9.1. Pretty much everything is working ok except that I am finding a module, that I created in DNN 3.3.7 is not sending emails the way it was, and I am wondering if there is a bug in the SendMail code.

I have some code

 

DotNetNuke.Services.Mail.Mail.SendMail(_sendfrom, "admin@mydomain.com","you@mydomain.com,me@mydomain.com",EmailSubject.Text, Server.HtmlDecode(EmailText.Text), "", "html", "", "", "", "")

When I invoke the send it sends the email but only admin@mydomain.com and me@mydomain.com receives it. When I looked at the code I found that with CC and BCC the code is objMail.Bcc.Add(Bcc) where Bcc contains "you@mydomain.com,me@mydomain.com"

Is this right or should the objMail.Bcc.Add(Bcc) loop through everything seperated by commas?

Thanks in advance

 

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Using Sendmail to send emails to more than 1 personUsing Sendmail to send emails to more than 1 person


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