Hi everyone,

I am new with drupal and i am workin on my first website. Ive got it up and running about a week ago and im having a problem with sending emails. The website is www.cloudninelife.com if you want to go look at it. My problem is that when the system sends an email it is blank. There is a subject but no body. I assumed that I would have to edit a file to add a body but i havent been able to find which file. If anyone can help me that would be amazing!!! Ive spent countless hours on this!

Also I appologize if this has already been covered in the forum or if it was a dumb question but i searched the forums and could find nothing.

Thanks in advance.

Comments

carnevaledesign’s picture

Try performing a simple mail test outside Drupal to make sure your server is configured correctly for sending mail. Create a file called "mail.php" and place the following code in it:

<?php
$to = "someone@example.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>

Change the $to and $form variables to your e-mail address.

Open the page in your web browser (i.e. http://www.cloudninelife.com/mail.php) and see if the mail is delivered, and if so, if it contains the message "Hello! this is a simple email message".

ladavis’s picture

Yes that works fine. and thank you for the response.

ladavis’s picture

how would i configure the email that gets sent out when someone creates an account or requests a new password?

WorldFallz’s picture

Did you check the email settings at admin/user/settings?

ladavis’s picture

Yes they are set up as they were when I installed drupal. The emails have a body but it does not show up when the email is actually sent.

ladavis’s picture

Is there no one that can help me?

carnevaledesign’s picture

Do you have any WYSIWYG editors (FCKeditor, TinyMCE, etc) installed? Is this problem only occurring when a certain e-mail is sent or does it occur every time for every e-mail?

ladavis’s picture

I have FCKeditor installed. It is for all the emails that are in the admin/user management/user settings. For instance when a user creates an account they should get this email:

!username,

Thank you for registering at !site. You may now log in to !login_uri using the following username and password:

username: !username
password: !password

You may also log in by clicking on this link or copying and pasting it in your browser:

!login_url

This is a one-time login, so it can be used only once.

After logging in, you will be redirected to !edit_uri so you can change your password.

-- !site team

but instead they get a blank email with just this header:

Account details for !username at !site

It does this for password recovery also. Is there a .php file that i have to manually configure this in?

ladavis’s picture

I am getting really desparate right about now. Is there no one that has had this issue before??

ladavis’s picture

What modules do I have to have installed for this to work?? Am i missing something?!

ladavis’s picture

Please is there is anyone that can help me!!! I have spent weeks on this and I am on my last limb. I need to find a solution to this today!!! I am desperate!

Bartezz’s picture

Hmmz... just guessing here but have you installed any filter modules that might do something to the body of your emails?

Other than that I would put my site in maintenence mode and disable any other than core modules and see if the problem still exists. If it's solved when disabling all modules I would enable them one by one and test the mails after each enabled module...

You might want to install backup and migrate module and make a backup of your current setup before trying this!

Good luck

________________
Live fast die young

ladavis’s picture

Thanks for the response! I will try this and see if if works.

ladavis’s picture

no luck with that attempt but thanks anyways!

Bartezz’s picture

Might be quite a hassle but if you have backup and migrate running make a backup of your database and migrate everything to a test location, maybe even your localhost. And see if it still gives you headaches....

________________
Live fast die young

dwyszyns’s picture

Try removing all the calls to the templated fields (the !fields) and see if it sends out plain text emails. It may be that a field is not being replaced, and it may be causing issues with the rest of the body.

ladavis’s picture

which file would that be in?? Sorry for my lack of knowledge. Im still learning

ladavis’s picture

I am willing to pay someone to figure this out!!! I have spent probably 40+ hours on this nonsense. My website is at a standstill because of this issue. Please help me!!!

Anonymous’s picture

If I knew the solution I would help you. Unfortunately I don't

The only thing I can think of:
Download the setup that is giving you trouble, save it someplace safe, and then remove it from the server.
Then download a new Drupal installation, install this to a subdirectory (and/ or on a testing server which has mail setup). Don't install any external modules, don't change or install theme, and see if you can then send an e-mail.

Otherwise for paid support you can try here: http://drupal.org/services

Bartezz’s picture

Looks like there is more going on with your website.
I tried looking for the Drupal core contact page http://cloudninelife.com/index.php?q=contact
Which obviously isn't enabled, yet instead of ging a Drupal page not found as such http://drupal.org/pagenotfound it gave a 404 page from your server.

Anyway, have you tried enabling the core contact module and see if sending emails with that is possible? Or even tried updating core?

Cheers

PS. install this module http://drupal.org/project/update_status and see if you need updates!! If so, do it and run update.php afterwards....

________________
Live fast die young