Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kristoffer Eriksen 185 posts 465 karma points
    Sep 29, 2014 @ 14:00
    Kristoffer Eriksen
    0

    Send newsletter to multiple subscribers with same email but different name

    Is it possible to create a newsletter which send the same newsletter to a list, containing several instances of the same email, but with different names.

    I managed to create a subscriptionprovider, which runs through a list from a .txt file with each name and email on each line

    ex:

    Hans; [email protected]
    peter;[email protected];
    susanne;[email protected]

    And it returns a list with the corrent numbers of subscribers

    public override List<Receiver> GetSubscribersForSendOut(string listItemValue, SendOutParams parameters)
            {
                var list = new List<Receiver>();
                string filePath = HostingEnvironment.MapPath("/External/udsendingsliste.txt");
                if (filePath != null && File.Exists(filePath))
                {
                    var subscriptionList = new StreamReader(filePath);
                    string line;
                    int count = 10000;
                    while ((line = subscriptionList.ReadLine()) != null)
                    {
                        string[] subscriber = line.Replace("\t","").Split(';');
                        string name = subscriber[0];
                        string email = subscriber[1];
                        if (Common.IsValidEmail(email))
                        {
                            list.Add(new Receiver
                            {
                                DataProviderKey = count.ToString(),
                                Fullname = name,
                                Email = email
                            });
                            count++;
                        }
                    }
                }
                return list;
            }

    But when I send the newsletter to this list, mails which are doubles, gets deleted, and it only sends the mail one time, for each email.

    I know it's a wierd case, but the reason for this, is that it is a mail that is emailed to a system-mailbox, where it gets sorted by the name of the reciever.

  • Kristoffer Eriksen 185 posts 465 karma points
    Sep 29, 2014 @ 14:02
    Kristoffer Eriksen
    0

    Oh....just recieved an answer from Markus

    Varje mailing list kan endast innehålla 1 (en) förekomst av en e-post - eventuella dubbletter kommer att raderas. Om man sedan försöker skicka till 3 listor där en viss e-post finns med i samtliga av dessa så kommer det endast skickas en gång per e-post.
    Problemet du beskriver ovan är tyvärr inget som, på ett enkelt sätt, går att hantera med Newsletter Studio.

    Bottom line to the swedish text is: no it can't be done :-)

    Hmm... need to find another way then.

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Sep 29, 2014 @ 14:04
    Markus Johansson
    100

    Hi!

    I've just answered you PM as well. No matter if you manage to "feed" Newsletter Studio with multiple emails the "send out"-engine will filter all duplicates before sending. The most common use-case for that filter is if a email is in multiple lists that are all selected you probably don't want to send to the same email multiple times. 

    I'm sorry but the case that you have is not really something that Newsletter Studio (or any other service as I know) can handle.

    // m 

  • Kristoffer Eriksen 185 posts 465 karma points
    Sep 29, 2014 @ 14:09
    Kristoffer Eriksen
    0

    Hey Markus

    Yeah I recieved your email, the same instance I pressed "submit" ...

     

  • Marcel 18 posts 67 karma points
    Nov 17, 2014 @ 14:34
    Marcel
    0

    @Kristoffer Eriksen: There is a workaround.

    According to Mail - RFC an E-Mail has a display-name before the called addr-spec. The addr-spec itself must be in < >. In your case just form these E-Mail-Adresses

    "Hans" <[email protected]> 
    "peter" <[email protected]> 
    "susanne" <[email protected]>
    

    So now you don't have duplicates because Newsletter Studio tests the complete E-Mail-Adress.

    Best regards, Marcel Lüscher

Please Sign in or register to post replies

Write your reply to:

Draft