Hello,
I am developing a D7 webform form for collecting some basic data, such as name and title etc and email them to the site manager. The email works in being sent, but the message content are not in the email. I tried all the versions of 7.x-3.2, 7.x-4.2 and 7.x-4.x-dev, using both default and custom templates, and the message body is alway empty. The only things I need are raw data, just as the template shows: like name: aaa, title: developer etc. Everything else is there, such as the subject, from and to label and email addresses, except the message body content. BTW, I am usng a newly installed drupal 7 and newly downloaded webform to get the no content email issue.
I checked the logs and cannot find anything wrong. Could somebody helps me with this? Hushi
Comments
Comment #1
hushi commentedComment #2
hushi commentedComment #3
hushi commentedComment #4
hushi commentedComment #5
danchadwick commentedThere is something wrong with your installation or configuration. I suggest you install phpmailer and mailsystem, uninstall and remove anything related to HTML e-mails, confirm that your site can send core e-mails, configure a simple e-mail for submissions and start over.
There are 10,000's of installations sending email with 7.x-4.2, including mine. I use PHPMailer, mailsystem, and mimemail.
You may have to set through the process with a debugger in your development environment to see where the problem is occurring, or add print/debugging code as needed.
Comment #6
hushi commentedHi Dan,
Thanks for your answer!
I am testing the webform with a newly built installation of drupal with only newly downloaded webform module. For this testing site, there are no other email related modules. Are both phpmailer and mailsystem drupal 7 modules?
I did use webform for D6 and D7 a year ago alone without encountering the issue. Maybe my IP address does not work? I am using yahoo email and the email I received with no content has the header saying:
Received-SPF: softfail (transitioning domain does not designate [my ip address] as permitted sender)
Thank you so much Dan. Hushi
Comment #7
hushi commentedI just realized the real problem for my testing failure. as late as of 2013, an overwhelmingly large number of domain (approx seven million) start to adopt SPF policies. As I am developing my drupal modules and sites using vertical architure, starting from my laptop, my ip address of course doen't match the remote domain and therefore it fails with "softfail", which is the reaon for the blank content for Yahoo and Google doesn't even bother at all. Previously in my drupal career, I have been using webform as granted profusely, using the hook alter at will using any email(!). But this SPF Sender Policy Framework, started to block me for better or worse. Once I create an email as unlikely as literally "webmaster@mycompany.local" as the from and bouncing email, on my local, it all start to work as sweet. As I am using RESTFUL format for openssl data transfer, I can definitely now hook alter it from there, without a stack of mailing modules designed for beautifying layout: I only need json + restful raw data.
Thank you very much for being responsive. Hushi
Comment #8
danchadwick commented