the link to unsubscribe that is sent out in the emails dosen't work for me, instead i get a page not found error

the link that produces the page not found error is :
Unsubscribe from this newsletter: http://site.com/newsletter/confirm/remove/

going the my user account settings I can subscribe and unsubscribe(without any errors) :
http://site.com/user/1/edit/newsletter

Comments

sutharsan’s picture

Is this the link in the test email you sent?

markDrupal’s picture

(BTW, this is when sending out a test message to the test email address)

This is the final line of the email message sent out when I select plain text email:
Unsubscribe from this newsletter: http://site.com/newsletter/confirm/remove/

markDrupal’s picture

Ok, turns out it works when I send out the real message, however, if I select HTML and the format, the site domain is missing from the link so the unsubscribe link will not work

here is what I see:
<a href="/newsletter/confirm/remove/afd8302a4b3t108">Unsubscribe from this newsletter</a>

Here is what I think I should see (add "http://site.com"):
<a href="http://site.com/newsletter/confirm/remove/afd8302a4b3t108">Unsubscribe from this newsletter</a>

markDrupal’s picture

Title: Unsubscribe link sent out in e-mail gives "page not found" error » HTML Newsletter Unsubscribe link missing site domain
sutharsan’s picture

6.x-1.x-dev version does not support HTML-emails. Only HEAD does in combination with Mime Mail.

markDrupal’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

patchak’s picture

Version: 6.x-1.x-dev » 6.x-1.0-rc6

I still have this issue with rc-6, so I still need to update to the latest version (dev) and see if this was eventually fixed on the last year...

Afaik this is still a bug on the module, using HTML Email and the latest dev version of MimeMail. (From june 8th)...

I will test with the dev version and report back here!

Thanks
Patchak

nelslynn’s picture

Using Simplenews 6.x-1.0 -rc6, and Mime Mail 6.x 1.x-dev.
The unsubscribe link at the bottom of the newsletter does not work ONLY when using cron to send out newsletters.
In summary:
- Unsubscribe link works when sending Test Newsletter
- Unsubscribe link works when sending Newsletter, and manually running cron to send (ie: clicking to run cron from the status report page)
- Unsubscribe link does NOT work when sending Newsletters using cron to automatically send x number of newsletters (ie: you have cron set up on your server to run every x number of minutes)

sutharsan’s picture

Try setting the Base URL in your settings.php