error when I send a message:
vinceyoumans - January 5, 2009 - 15:07
| Project: | Author Contact |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | JustJamesAus |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
AuthorContact 6.x-1.0
I am getting this error:
Unable to send e-mail. Please contact the site admin, if the problem persists.
possible problems:
1... The admin email address is a gmail account. Although its not a problem with the other modules.
2... I am testing this from an internet cafe, perhaps there is a block from this IP.
3... I have configured something wrong. Is there soemthing else I should be looking at?

#1
The problem is most likely with the module... I'll test it now.
#2
I have fixed the problem, please try the latest dev release - I'll replace the main d6 release with it asap as it appears it wasn't working.
#3
well, I completely uninstalled the old contact author...
deleted the entire module from /sites/modules.
did a cron, and an update.
confirmed that the module was gone.
I also confirm that htere are no blocks showing.
THEN.. I install this module:
authorcontact 6.x-1.1
6.x · Bug fixes
JustJamesAus - January 6, 2009 - 00:30
Official release from CVS tag: DRUPAL-6--1-1
Download: authorcontact-6.x-1.1.tar.gz
Size: 7.26 KB
md5_file hash: 242bca086171c621d5699032ec8d72ac
First released: January 6, 2009 - 00:30
Last updated: January 6, 2009 - 00:35
View usage statistics for this release
Fixes some bugs with emails not sending properly or appearing blank, as well as some other code improvements.
Removes the fieldset around the form as this was interfering with theming and Captcha settings.
Updates the from field setting to format: "Name"
I confirm with the .info module that I am using the 6x1.1 module.
I have installed the module and setup the block... the formis right where it is suppsoe to be...
BUT... No email is sent. It seems to have sent an email.. but no emails are arriving.
I will say that I am using a gmail account as the admin email... perhaps that is it?
#4
Hi Vince,
The drupal admin email address isn't used in this module - it sends the email marked as 'from' the email address entered into the author contact form - to allow for easy replying to queries.
Unless the admin email is the one that it's being sent to - ie if admin authored the page you're testing on. In which case it will get sent to the gmail account, can you check your 'junk' or 'trash' fodlers to make sure it hasn't tunred up in there?
Another thing to test would be to turn on the standard user contact forms (core contact module) and check if you can contact the person on their profile page using that form. If those emails work then it must be a problem with this module.
#5
well, the good news is that I read your message as I was only 4 minutes into looking at if the PHP level was the problem. so I followed your instructions and you had it right. I checked my spam and there were the messages. and it does not matter where i send this email, it goes to all my spam accounts.
this is what the email looks like:
-----Original Message-----
From: ajzzbiza@node12.myserverhosts.com
[mailto:aj99biza@node12.myserverhosts.com]
Sent: Tuesday, January 06, 2009 9:05 PM
To: vyoumans@vyoumans.com
Subject: Contact via zzfsbo.com
You have recieved an enquiry through zzfsbo.com on the page LARGE BALTIMORE
HOUSE available for Obamas Inauguration at
http://zzfsbo.com/listings/large-baltimore-house-available-obamas-inaugu...
Name: fdslajsfdklj
Email: craigslist@vyoumans.com
Enquiry:
lkdfjlkadjfl;dsjfl;adfjads
so I am thinking that the reason that the email is going into spam is from the: From: ajzzbiza@node12.myserverhosts.com.
so I am betting if I can configure the FROM email address to be info@zzfsbo.com then the emails should become something other than spam?
how do you reconfigure the FROM emails?
#6
I think I need to change the default FROM email address in this case to prevent emails going right to spam folders. in my case its: From: aj99biza@node5.myserverhosts.com as the FROM field. Is there a way to force it to use another FROM FIELD? perhaps in the module or a config file?
#7
Hmm. When I test here, it sends as 'from' the person who fills out the form.
When you send the contact, does it say at the top of the page 'Contact sent from ...' - does it have the right address in there?
Otherwise I don't know, maybe it's a server issue where it doesn't allow referencing of the 'from' field on generated emails...?
#8
another issue... I dont think the email validation is working either:
authorcontact_form_validate($form_id, $form_values) because I can pass any email to this field and it gets sent as the valid FROM email address.
#9
I really dont know what I am doing but I am hacking the your code now... educational expereince I guess... but I am thinking that perhaps if I can hard code the header information then that should work as well...
this is an email address from the server and I was thinking that its part of the server configuration file that php is looing at?
aj99biza@node5.myserverhosts.com
#10
The server email address is held in php.ini I believe, you may be able to change it there.
BUT your last two comments don't seem to make sense, if it's sending the email with the entered validated email as the FROM, how is it also sending as from the myserverhosts.com email?
Also - validation just checks that someone isn't trying to enter PHP code or some other nasty - it doesn't check if the email is actually a real, live email address - afaik it's impossible to check any random email address like that automatically.
#11
Hey, this might work for you.
If you remover the $from reference from the drupal_mail call it will send it from the default admin mail in the drupal main admin settings.
So change line 106 from
drupal_mail('authorcontact', 'sendcontact', $to, language_default(), $params, $from);to
drupal_mail('authorcontact', 'sendcontact', $to, language_default(), $params);#12
well, when I ask for the contacts email address, then I can put anything in there. I put some trash just to check it. So I guess you are correct. anyway, I am getting the trash emails sent no problems.
#13
well, I tried changing line 106... same effect. I also looked at my php.ini file... and there are no entries for this email address.
very frustrating.
I think the issue is in the header of the emails. I need to change that some how. but time to goto bed now...
but thanks for the help