Closed (fixed)
Project:
Views Mail
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Oct 2007 at 21:21 UTC
Updated:
29 Jun 2008 at 07:04 UTC
I got the module working in test mode. The mail is sent to the test address.
When I switch off the test mode, the mails are not sent. I get no error message in Drupal, but I do not receive the mails. I use the same email as for the test mode.
Can someone please guide me through this?
I am using a customized node type which contains a name (CCK text) and email field (CCK email).
Comments
Comment #1
Firewolf commentedIt seems it has something to do with the email address of "sender" and "receiver" which can not be the same. I tested with another email and it is working now.
But I have another problem now. The attachment which I added to the newsletter is not sent. Is it possible to add attachments to the mail?
Comment #2
somebodysysop commentedDon't know if it can be done. Need to post the question in mimemail issues since that's the module used to send views_mail emails.
Comment #3
somebodysysop commentedComment #4
Firewolf commentedLooks like somebody already posted a question in the mimemail project ;) Thanks again for the help.
For the records: http://drupal.org/node/186049
Comment #5
Firewolf commentedActually it required a change in the Views Mail module.
I changed
to
and the attachments were added to the mail.
I had to change the mimemail call twice (line 893 & 908).
Comment #6
somebodysysop commentedIf you are able to successfully attach files using views mail, could you please explain what else you did.
I made the changes you gave above, but get this error when attempting to send newsletter with file attachments:
* warning: Invalid argument supplied for foreach() in /var/www/html/websites/drupal/sc/modules/mimemail/mimemail.inc on line 365.
* warning: Invalid argument supplied for foreach() in /var/www/html/websites/drupal/sc/modules/mimemail/mimemail.inc on line 365.
Thanks!
Comment #7
oadaeh commentedThe $attachments variable in the mimemail() function is an array of arrays like so:
Where each internal array represents a separate file.
I'm working on a patch that will hopefully introduce a third element, but that isn't there yet.
Comment #8
somebodysysop commentedCan someone please explain how you get this to work?
Comment #9
oadaeh commentedHere's a couple of snippets of what I did in Mass Contact. You can scan the mass_contact_mail_page_submit() function for all the gory details.
And then later on:
Keep in mind that the "'filename' => $_FILES['files']['name']['attachment']," line in the first snippet requires a patch to Mime Mail that I created here: http://drupal.org/node/223176. If you don't want to apply the patch, then just leave out that line.
Also, Mass Contact currently only allows one attachment. If Views Mail allows more than one, then just keep adding to the array ($message_attachment in the snippets above).
Comment #10
somebodysysop commentedNow using Simplenews to send emails, so they have a file attachment solution. The files aren't actually attached (they are links back to the site), but something's better than nothing.
http://drupal.org/files/issues/views_mail.module.5.x-2.0.patch
Comment #11
somebodysysop commentedComment #12
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.