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.0SendTokenizedBulkEmail: Missing Token ReplacementSendTokenizedBulkEmail: Missing Token Replacement
Previous
 
Next
New Post
5/9/2009 12:15 PM
 

Hi,

On an older version of DNN(04.07) i have cerated a module thar sends E-Mails to the users with replacing tokens.

I have used the SendTokenizedBulkEmail, and in the old version the tokens were replaced and all was working properly.

In the new version(04.09.03) the Token are replaced, too. But with an empty string ("").
(So where the name of the user should be, there is nothing, even no token)

I have used this code to send the e-mail to an user:

EmailInfo mail = EmailController.GetEmail(p);

DotNetNuke.Services.Mail.SendTokenizedBulkEmail m = new    DotNetNuke.Services.Mail.SendTokenizedBulkEmail();

            m.AddAddressedUser(DotNetNuke.Entities.Users.UserController.GetUser(portalId,i.UserId,true));
m.Priority = DotNetNuke.Services.Mail.MailPriority.Normal;
m.AddressMethod = DotNetNuke.Services.Mail.SendTokenizedBulkEmail.AddressMethods.Send_TO;
m.SendingUser = DotNetNuke.Entities.Users.UserController.GetUser(portalId,authorId,true);
m.ReportRecipients = false;
m.Subject = mail.Header.Replace("[Titel]",i.Title);
m.Body = mail.Text;
m.Bodyformat = DotNetNuke.Services.Mail.Mailformat.Html;
           
EmailAttachmentInfo[] a = EmailController.GetAttachments(p);
foreach(EmailAttachmentInfo att in a){
   m.AddAttachment(Server.MapPath("~/attachments/" +mail.EmailId + "/" + att.Filename));
}

m.Send();

Do you know whats wrong with this ?

Thanks and best regards,

Marc

 
New Post
5/10/2009 7:59 AM
 

please try to use same tokens in Admin :: Newsletter module, if they get handled appropriately, there is an issue in your code and you should compare it with code in /admin/users/bulkmail.aspx.vb. I am not aware of new issues in the current version.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/29/2010 8:04 AM
 

I'm using SendTokenizedBulkEmail, only I have some profileproperties of list type.
And the lists are saved under Host > Lists
So for instance if I have this list of titles 1 - mr. 2- mrs. etc,
Now when I use [Profile:Title] it will end up as 1, and not as 'Mr'

And another thing, it would be nice if you could build in an option to NOT send a confirmation e-mail after a bulk e-mailing

 
New Post
9/17/2010 7:33 AM
 
Ello? Anyone has an answer!?!
 
New Post
9/17/2010 8:34 AM
 
I am not having a quick solution, please make sure, the issue with lists items has been entered into the tracker at support.dotnetnuke.com. There is no confirmation email, if you are sending bulkmail using "sync" option.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0SendTokenizedBulkEmail: Missing Token ReplacementSendTokenizedBulkEmail: Missing Token Replacement


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