The Yesmail module provides integration with Yesmail's email marketing platform. A Yesmail account, along with a developer account, is required to use this module.

By itself, the Yesmail module does not do much. Once enabled, the necessary API information can be entered. To have this module do something, the Yesmail Email sub module must be enabled.

The Yesmail Email submodule provides a way to create blocks that are coupled with a Yesmail email template. These blocks provide a very basic form that allows visitors to submit their email address and receive the specified email template from Yesmail.

Project page

https://www.drupal.org/sandbox/ejh3/2664650

Git clone command

git clone --branch 7.x-1.x http://git.drupal.org/sandbox/ejh3/2664650.git yesmail

Comments

jh3 created an issue. See original summary.

PA robot’s picture

Issue summary: View changes
Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxejh32664650git

Fixed the git clone URL in the issue summary for non-maintainer users.

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

jgrubb’s picture

The vast majority is style issues that can be cleaned up to pass auto inspection. Didn't see any issues of substance.

jh3’s picture

I squashed almost all of the issues reported by the PA robot. The only one left is related to the case of hook_menu in a class where it's being overridden.

jh3’s picture

Status: Needs work » Needs review
ashwinsh’s picture

Hello jh3,

My findings for your module as follows:

I think it would be nice to use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
Please check line 309: yesmail_email.module

$transactional = $email->settings['transactional'] ? true : false;

To

$transactional = $email->settings['transactional'] ? TRUE : FALSE;

Thank you,

jh3’s picture

Hi ashwin -- Thanks for reviewing the project! The constants are now uppercase.

visabhishek’s picture

Hello jh3,

Module Looks good and working fine for me , some findings for your module as follows:

1: Follow the Readme template for the readme.txt https://www.drupal.org/node/2181737
2: Please use indent of 4 spaces for composer.json
3: Please add hook_help
4: Remove "Delete button" from Add yesmail email form (http://www.drupal-7./admin/config/services/yesmail/email/add)

klausi’s picture

@visabhishek: Looks like you forgot to change the status. Is this now RTBC after your review or are there application blockers left and this should be "needs work"?

visabhishek’s picture

Status: Needs review » Reviewed & tested by the community

Hi klausi ,

I think we dont have any blocker points. So i am marking as RTBC.

@jh3 : Its really good, if you consider my points before full project release.

jh3’s picture

@visabhishek, thanks for reviewing! I've made all the changes you suggested in #2671996-8: [D7] Yesmail Integration.

benjifisher’s picture

Status: Reviewed & tested by the community » Needs work

There is just enough room in the Title field to enter <script>alert('hack!');</script>, and then I get an alert when I load the page. Arguably, this is not a security problem because the character limit is too small to do anything worse.

I see that you have applied filter_xss_admin() to the description, but it seems that you have not done anything to sanitize the title.

Note that entering something like My <title> will break the page layout.

PA robot’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).

I'm a robot and this is an automated message from Project Applications Scraper.

jh3’s picture

Status: Closed (won't fix) » Needs review
jh3’s picture

@benjifisher The title is now being sanitized.

tessa bakker’s picture

Status: Needs review » Needs work
  1. Please update the project page with valid URL's.
  2. modules/yesmail_email/yesmail_email.module#n214 user_access will return TRUE or FALSE.
  3. src/Connection/YesmailConnectionFactory.php#n51 drupal_set_message is visible to any user, use watchdog() for error reporting to administrators and a user friendly message for visitors.
  4. If you're trying to validate an e-mail address, the implementation is way to complex, Drupal and PHP have their own validators already.
  5. Anyhow, please update to jquery validation 1.16 and try to use more 'early returns' in your code.
jh3’s picture

Hi Tessa,

Good eye. Thanks for the review.

Regarding #4 in your list -- what email validation are you referring to?

Thanks!

PA robot’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).

I'm a robot and this is an automated message from Project Applications Scraper.