When I subscribe to the newsletter from the front page, there is an entry in the log that says that a confirmation was sent, but I don't receive it. However, when I send an unsubscribe message, I get an email saying I am trying to unsubscribe to a list of which I am not a member.

One thing to note is that it doesn't happen for all of the users. I have three email addresses and this situation occurs for one of them.

L

Comments

sutharsan’s picture

It looks like your confirmation e-mails get caught by spam filter(s).

lduperval’s picture

No, they don't. What I do is this:

- Subscribe on the Web page
- Use fetchmail immediately to fetch data on the SMTP server. At the same time, I watch to see what happens

In the case of an unsubscribe, fetchmail says that a message is downloaded. In the case of a subscribe, it isn't. So the message looks like it's never sent.

Is there a way to increase logging with this or do I need to add log statements manually? If I do it manually, where should I add this information?

Thanks,

L

sutharsan’s picture

Simplenews does not have a logging or debugging function.
For inserting debug statements in the code you can best start with simplenews_mail_send() and simplenews_mail_confirm().

A short summary of functions involved in sending email in simplenews:

simplenews_mail_send()
handles sending of individual newsletter
calls mimemail (if html-mail is selected)
calls drupal_mail (for plain text email)

_simplenews_send()
called by cron and called upon newsletter submit
sends multiple emails based on newsletter send status in database
calls simplenews_mail_send
maintains send status in database

simplenews_send_test()
sends test email
cals simplenws_mail_send
screen message upon succes

simplenews_mail_confirm()
sends subscription/unsubscription emails
calls simplenews_mail_send
watchdog message of sending succes/fail

sutharsan’s picture

One more important debug tool with sending newsletters is the Devel module. The Devel module has an option to reroute the mail output to the watchdog log instead of the default e-mail route. drupal.org/project/devel

enkara’s picture

I have exactly the same problem. If you find the solution please post it here.

As I am subscripting users when they register (because I need their names), a solution for me would be if there would be a way to insert the subscription confirmation email (made by hash) in the welcome message that is sent to users (because they actually are registering but they don't know).
Can someone tell me if this can be done and tell me any clue to do it?

Thank you very much!

sutharsan’s picture

Status: Active » Closed (fixed)

No activity, item will be closed. Feel free to re-open if more support is needed.

@enkara: look at http://drupal.org/node/178485. This is a patch to subscribe at registration time. It requires testing and discussion, please participate.