Emails going to junk

I just cannot get the new reg email to be sent to the correct mail box. It always ends up in junk.

I’ve tried setting up Sendgrid, but have not been able to work it out. Posted on this forum, but nobody replied.

Somebody mentioned Post SMTP could use API, so I set that up and created a gmail api, but that still didn’t work.

The host that I am using does not allow SMTP as I am a hosting reseller, so api needs to be used.

I really need help with this please

Emails aren’t controlled by s2Member, and SendGrid isn’t officially supported, so you aren’t really posting in the right place to get the best help. If someone here specifically recommended SendGrid, then you can try and get their attention by using their user name preceded by the @ symbol. Otherwise, you should be talking to SendGrid.

But I think you should really be asking yourself why your emails go to junk. There are usually two reasons for that. One is the email address from which they are being sent. (This is where something like SendGrid can help.) But there is another possibility, and that concerns your content. Are you including content that email clients’ spam detection algorithms don’t like?

Thanks Tim. Unfortunately, I think I am now in a catch-22 situation.

I have changed my email to make it as spam - friendly(unfriendly ?) as I can. I think my issue now is that I have done so much testing that it is automatically going into junk, but I don’t want to mark it as safe as then I could get a false positive.

I am trying to find a way to update the success response so that people will at least think to check their junk. I have set up Say What, but the message appears to be html rather than php(?) and is not wrapped in __(), _e(), _n(), or _x().

The message currently says
Thank you. Your account has been approved.
— You’ll receive an email momentarily.

I would like to add something like ‘Please check your junk mail and mark the email as not spam’.

Is there some way I could do this ?

Thanks

Does the message you want to customize have appended to it a text domain saying s2member and a context of s2member-front? If so, then you can use Say What? Otherwise, you will either have to edit the file itself (and repeat after every s2Member update) or else use some javascript/jQuery.

Yes, I followed the instructions as posted in the Changing Text Created By S2member. Here is what I did -

I have tried to find where the text is set so I can copy it exactly but have not been able to find it.

I then decided to create a thank-you page and redirect to that. I can see my page without being logged in, so it’s not protected, but I still stay on the original page and get the message which I was trying to change -

[s2Member-Pro-PayPal-Form level=“1” ccaps="" desc=“Join as an Owner for 1 Year @ $1.00 / then $1.00 AUD / Yearly (recurring charge, for ongoing access)” ps=“paypal” lc="" cc=“AUD” dg=“0” ns=“1” custom=“www.doggytailfriends.com.au” ta=“1.00” tp=“1” tt=“Y” ra=“1” rp=“1” rt=“Y” rr=“1” rrt="" rra=“2” accept=“paypal” accept_via_paypal=“paypal” coupon="" accept_coupons=“0” default_country_code="" captcha=“0” success=" https://www.doggytailfriends.com.au/thank-you/" /]

https://www.doggytailfriends.com.au/thank-you/

Hopefully you will be able to shed some light on the matter. I’m thinking that the redirect may not be happening because I am a host reseller. I have had a live chat with them, but didn’t get a definative answer - “speak to your developer, they should be able to help” was their response.

I don’t know what else to do. I marked my emails as safe and when I tested again they went straight into my inbox. I just need to make it clear that people should check the junk folder :weary:

I think this is the string you need to put in as the one to change:

<strong>Thank you.</strong> Your account has been approved.<br />&mdash; You\'ll receive an email momentarily.

Try copying and pasting that into the Original String box.

Hmmm, I tried that and it still didn’t work. Can you tell me where I can find the file that needs updating please ?

I’m happy to have a crack at changing it, I’m just getting desperate now. I seem to be going around in circles and I’m not sure that it is me or s2member that are at fault, but probably the nuances of the hosting package I have.

That string is in lots of files. I’ll give you an example where PayPal is the payment processor, but it occurs more than once in this file alone, and in other files relating to PayPal too. I don’t know which is the one that you need to change:

src/includes/classes/gateways/paypal/paypal-checkout-rdp-in.inc.php:

Thanks Tim, I found that file and changed and tested it but still the same. Found another 2 files, changed them and tested again. Don’t know which one it was, but thankfully one of them worked.

Not the ideal solution, but definately a workable alternative…:slight_smile:

1 Like

An alternative to SendGrid is Postmark. I’ve been using that (via their WP plugin) for a number of months now and have been happy with the service.

Not sure if it will improve your spam rates but they have a generous trial, so it may be worth testing.

Your issue may be somewhere else, it may be related to your SPF.

If you use an email services distinct from your hosting (gsuite, GoDaddy webmail, Microsoft exchange, etc.) then the SPF does not mention your server IP as legitimate. Check your email header which is going to spam, if SPF mentioned a softfail or fail SPF this may really be the case. If it’s about your content, your spam score in the header will be very high. In both situation, the email header is the key to understand your issue.

To solve the issue you will either need to add your website IP or use the SMTP feature and not sendmail.