e-Newsletter with Multi-site use case

Hello,

I have installed e-Newsletter in a Multi-site environment. I’m using Amazon SES to send mails for the whole site network. Since that is the case, I’d like the “from” address to always show as info@mysitenetwork.com, which I can see how to do. However, I would like to set it so each site sends emails with the “reply-to” email address set to that site’s admin email. For example, if SubSite 1 has a blogname of “SubSite 1” and an admin email of subsite1owner@gmail.com, I would like the emails sent from that site to look like this:

From: SubSite 1 <info@mysitenetwork.com>

Reply-To: subsite1owner@gmail.com

Does that make sense? To send through AWS you need to have the from address be a registered email address or domain, so I can’t just set the “from” address to each sub site owner’s email. However, when users respond to their emails, the replies should go back to the sub site owner, and not to my email sender account.

Can you advise as to how this would work? This seems like a use case that should be supported. I don’t see a “reply to” configuration option in the plugin, and I don’t see any filters that look relevant. I’d be willing and able to write code to fix it myself, but I would like to not have to edit your plugin if possible because then I have to merge my changes every time you release an update.

Best,

Dave

  • Adam Czajczyk
    • Support Gorilla

    Hello Dave,

    I hope you’re well today and thank you for your question!

    I must say that although it makes perfect sense it’s not very common request and even after briefly reviewing plugin’s code I’m still not sure how to do this. Because of that I asked plugin’s developer for help and am awaiting his response.

    Please note that this may take a bit longer than my replay here on support forum as he deals with a lot of complex issues on daily basis. I’m hoping though he’ll be able to lend us a helping hand here soon and I’ll update this thread with information as soon as I get an answer.

    Please keep track of this thread!

    Best regards,

    Adam

  • David Thibault
    • The Incredible Code Injector

    A related question on this is how bounce messages would be handled. I see that it says you should set up a separate pop3 email box for every sub-site, but I don’t want to make my users get dedicated bounce processing email boxes. If you could ask the developers how they might handle that as well, it would be great.

    For the first question above, I think maybe just sticking in apply_filters calls for inserting a reply-to address in the header would be a good start. I saw that the PHPMailer code you included in it has an AddReplyTo function, but your code never calls it.

    As for bounce processing, Amazon SES has the ability to send bounce messages, complaint notifications, and delivery notifications to separate SNS topics, so you could hook into those for bounce message processing as well, but that might be too AWS-centric for you to want to do. However, maybe another well-placed apply_filters would do it.

    Best,

    Dave

  • Adam Czajczyk
    • Support Gorilla

    Hello David!

    A related question on this is how bounce messages would be handled. I see that it says you should set up a separate pop3 email box for every sub-site, but I don’t want to make my users get dedicated bounce processing email boxes. If you could ask the developers how they might handle that as well, it would be great.

    Separate e-mail accounts for bounced messages would make a perfect scenario but I think in case you’d like to keep your users “away” from it, you could simply use one dedicated account, the same for each e-newsletter instance. In case you’d like to get more control over the messages you could use an old Gmail trick utilizing “+” sign: for example a “mybouncebox@gmail.com” account can be used also as “mybouncebox+first@gmail.com”, “mybouncebox+second@gmail.com” and so on. That’s the same account but it’s different from “plugin’s point of view” and you can set filters in gmail’s inbox.

    For the first question above, I think maybe just sticking in apply_filters calls for inserting a reply-to address in the header would be a good start. I saw that the PHPMailer code you included in it has an AddReplyTo function, but your code never calls it.

    Yes, I agree. That is what I was thinking but the question is how to make use of that feature. I hope developer will be able to help us with this :slight_smile:

    As for bounce processing, Amazon SES has the ability to send bounce messages, complaint notifications, and delivery notifications to separate SNS topics, so you could hook into those for bounce message processing as well, but that might be too AWS-centric for you to want to do. However, maybe another well-placed apply_filters would do it.

    I admit I’m not familiar at all with Amazon SES but I passed an information about it to the developer as well. Let’s see what he says about it :slight_smile: I”ll keep you updated (as soon as I get a replay).

    Best regards,

    Adam

  • Adam Czajczyk
    • Support Gorilla

    Hello Dave!

    I can certainly understand this, especially since you’re in hurry. Nevertheless, I’m going to update you here with information once I only get a response from the developer – just in case you decided to give our plugin (now or in future) another shot :slight_smile:

    Have a nice day!

    Adam