Keyword

Empty email from Multinotify component

  • Giulia Magnesa
  • Giulia Magnesa's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 4 weeks ago #99643 by Giulia Magnesa
Empty email from Multinotify component was created by Giulia Magnesa
I have changed the default Category email in this way:

////This is for email subject//

$this->subject = "New comment submission for '".$this->item->title."' item on ".$this->siteName;

////This is for email body//

$this->body = "A new comment has been added: ".$this->comment->link;$this->body.= "<br/>";$this->body.= "Link to '".$this->item->title."' item : ".$this->item->link;

 

But After this change I receive an empty email when a new article is added.

 

Can you help me?

Please Log in or Create an account to join the conversation.

More
13 years 4 weeks ago #99644 by william white
Replied by william white on topic Empty email from Multinotify component
I use this

$this->body .= "<a href =\"". $this->item->link . "\"> Click Here</a> to read the Obituary<p><p><p>";

for the link to the item

Please Log in or Create an account to join the conversation.

  • Giulia Magnesa
  • Giulia Magnesa's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 4 weeks ago #99645 by Giulia Magnesa
Replied by Giulia Magnesa on topic Empty email from Multinotify component
I'm not sure it is the solution, because I have copied exactly the text in Multinotify user manual pdf file.

 

Also if my code was wrong for link to item, I don't expect to receive an empty email with no subject too

Please Log in or Create an account to join the conversation.

  • Giulia Magnesa
  • Giulia Magnesa's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 4 weeks ago #99646 by Giulia Magnesa
Replied by Giulia Magnesa on topic Empty email from Multinotify component
Sorry I have copied the comment notification, but it is very similar to new item notification:

////This is for email subject//

$this->subject = "New item submission in '".$this->category->name."' category on ".$this->siteName;

////This is for email body//

$this->body = "A new item has been added: ".$this->item->title;$this->body.= "<br/>";$this->body. = "link: ".$this->item->link;$this->body.= "<br/>";$this->body.= "Link to '".$this->category->name."' category : ".$this->category->link;

Please Log in or Create an account to join the conversation.

More
13 years 3 weeks ago #99647 by Jiliko.net
Replied by Jiliko.net on topic Empty email from Multinotify component
Hi,

 

You have an error (extra space between '.' & '=') :

 

$this->body. = "link: ".$this->item->link;

 

should be

 

$this->body.= "link: ".$this->item->link;

 

Olivier

Please Log in or Create an account to join the conversation.

  • Giulia Magnesa
  • Giulia Magnesa's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 3 weeks ago #99648 by Giulia Magnesa
Replied by Giulia Magnesa on topic Empty email from Multinotify component
Thank you I will try today

Please Log in or Create an account to join the conversation.

  • Giulia Magnesa
  • Giulia Magnesa's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 3 weeks ago #99649 by Giulia Magnesa
Replied by Giulia Magnesa on topic Empty email from Multinotify component
I t works. thank you!

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum