WebsiteBaker Community Forum

WebsiteBaker Support (2.10.x) => General Help & Support => Topic started by: rumen on November 15, 2018, 09:36:26 PM

Title: Newsletter error
Post by: rumen on November 15, 2018, 09:36:26 PM
Hi there,

I got error when I try to subscribe to Newsletter. I use WB2.12 and Newsletter v.0.20, which jacobi22 sent me early. The error is:

Code: [Select]
Error: An error occurred while sending an activation link to the email address rzaprianov(at)gmail.com.

Please contact support.

The version of the module newsletter is attached to one message here (https://forum.WebsiteBaker.org/index.php/topic,30551.msg214277.html#msg214277) where I got same problem about year and a half before, but I got to change the CMS then for clients reason and didn't dig more to fix it.

Any idea how to fix it?

Regards,

Rumen
Title: Re: Newsletter error
Post by: Gast on November 15, 2018, 11:08:21 PM
problem is located - i need some minutes
Title: Re: Newsletter error
Post by: Gast on November 15, 2018, 11:27:28 PM
problem is a own mailer inside of the class newsletter. i make's no sense for me, because, wb has a good working mail function

multiple lines in class.newsletter.ph p on different places - search for if ($this->textOnly)

original
Code: [Select]
if ($this->textOnly) {
        $result = $this->mail($this->fromEMail,$this->fromEMail,nl_subject_admin_send_link, sprintf(nl_mail_admin_send_link,$this->toEMail,$thisLink));  }
      else {
        $result = $wb->mail($this->fromEMail,$this->fromEMail,nl_subject_admin_send_link, sprintf(nl_mail_admin_send_link,$this->toEMail,$thisLink));  }
}

change to

Code: [Select]
$result = $wb->mail($this->fromEMail,$this->fromEMail,nl_subject_admin_send_link, sprintf(nl_mail_admin_send_link,$this->toEMail,$thisLink));
@ Rumen: the mail is on the way  ;-)

one more...
if you get the message in frontend like

Invalid address: (setFrom) name(at)gmail(dot)com

you have the wrong droplet call

use

[[NL-SignupForm?title=Newsletter&from=name@mail.com]]

red = Name of the Droplet
green = Name of the Group in MassMail
blue = mailadress of the admin for the newsletter, use here @ and point instead of [at] and (dot) like the module description