smtp module and site contact form

gmasky - June 1, 2009 - 19:23
Project:SMTP Authentication Support
Version:6.x-1.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I was using this module with D5.x and it worked perfectly. We recently upgraded to D6.x and the site wide contact form and smtp module are behaving oddly.

1. All mail via the contact form from anonymous users does not display the senders email address, rather it displays the From:admin@mysite.com (which is the admin email address), how do I resolve this?

2. When a anon user sends an email via the contact form, on hitting the "Send" button is greeted by a page full of this Any help will be highly appreciated

SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220 mx.google.com ESMTP b8sm16415748rvf.14 "
SMTP -> get_lines(): $data is "220 mx.google.com ESMTP b8sm16415748rvf.14 "
SMTP -> FROM SERVER:220 mx.google.com ESMTP b8sm16415748rvf.14
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250-mx.google.com at your service, [209.62.36.16] "
SMTP -> get_lines(): $data is "250-mx.google.com at your service, [209.62.36.16] "
SMTP -> get_lines(): $data was "250-mx.google.com at your service, [209.62.36.16] "
SMTP -> get_lines(): $str is "250-SIZE 35651584 "
SMTP -> get_lines(): $data is "250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 "
SMTP -> get_lines(): $data was "250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 "
SMTP -> get_lines(): $str is "250-8BITMIME "
SMTP -> get_lines(): $data is "250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 250-8BITMIME "
SMTP -> get_lines(): $data was "250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 250-8BITMIME "
SMTP -> get_lines(): $str is "250-AUTH LOGIN PLAIN "
SMTP -> get_lines(): $data is "250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN "
SMTP -> get_lines(): $data was "250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN "
SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES "
SMTP -> get_lines(): $data is "250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN 250-ENHANCEDSTATUSCODES "
SMTP -> get_lines(): $data was "250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN 250-ENHANCEDSTATUSCODES "
SMTP -> get_lines(): $str is "250 PIPELINING "
SMTP -> get_lines(): $data is "250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN 250-ENHANCEDSTATUSCODES 250 PIPELINING "
SMTP -> FROM SERVER: 250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN 250-ENHANCEDSTATUSCODES 250 PIPELINING
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6 "
SMTP -> get_lines(): $data is "334 VXNlcm5hbWU6 "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6 "
SMTP -> get_lines(): $data is "334 UGFzc3dvcmQ6 "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "235 2.7.0 Accepted "
SMTP -> get_lines(): $data is "235 2.7.0 Accepted "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 2.1.0 OK b8sm16415748rvf.14 "
SMTP -> get_lines(): $data is "250 2.1.0 OK b8sm16415748rvf.14 "
SMTP -> FROM SERVER:250 2.1.0 OK b8sm16415748rvf.14
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 2.1.5 OK b8sm16415748rvf.14 "
SMTP -> get_lines(): $data is "250 2.1.5 OK b8sm16415748rvf.14 "
SMTP -> FROM SERVER:250 2.1.5 OK b8sm16415748rvf.14
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "354 Go ahead b8sm16415748rvf.14 "
SMTP -> get_lines(): $data is "354 Go ahead b8sm16415748rvf.14 "
SMTP -> FROM SERVER:354 Go ahead b8sm16415748rvf.14
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 2.0.0 OK 1243883278 b8sm16415748rvf.14 "
SMTP -> get_lines(): $data is "250 2.0.0 OK 1243883278 b8sm16415748rvf.14 "
SMTP -> FROM SERVER:250 2.0.0 OK 1243883278 b8sm16415748rvf.14
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "221 2.0.0 closing connection b8sm16415748rvf.14 "
SMTP -> get_lines(): $data is "221 2.0.0 closing connection b8sm16415748rvf.14 "
SMTP -> FROM SERVER:221 2.0.0 closing connection b8sm16415748rvf.14
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220 mx.google.com ESMTP k41sm16414059rvb.27 "
SMTP -> get_lines(): $data is "220 mx.google.com ESMTP k41sm16414059rvb.27 "
SMTP -> FROM SERVER:220 mx.google.com ESMTP k41sm16414059rvb.27
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250-mx.google.com at your service, [209.62.36.16] "
SMTP -> get_lines(): $data is "250-mx.google.com at your service, [209.62.36.16] "
SMTP -> get_lines(): $data was "250-mx.google.com at your service, [209.62.36.16] "
SMTP -> get_lines(): $str is "250-SIZE 35651584 "
SMTP -> get_lines(): $data is "250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 "
SMTP -> get_lines(): $data was "250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 "
SMTP -> get_lines(): $str is "250-8BITMIME "
SMTP -> get_lines(): $data is "250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 250-8BITMIME "
SMTP -> get_lines(): $data was "250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 250-8BITMIME "
SMTP -> get_lines(): $str is "250-AUTH LOGIN PLAIN "
SMTP -> get_lines(): $data is "250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN "
SMTP -> get_lines(): $data was "250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN "
SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES "
SMTP -> get_lines(): $data is "250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN 250-ENHANCEDSTATUSCODES "
SMTP -> get_lines(): $data was "250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN 250-ENHANCEDSTATUSCODES "
SMTP -> get_lines(): $str is "250 PIPELINING "
SMTP -> get_lines(): $data is "250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN 250-ENHANCEDSTATUSCODES 250 PIPELINING "
SMTP -> FROM SERVER: 250-mx.google.com at your service, [209.62.36.16] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN 250-ENHANCEDSTATUSCODES 250 PIPELINING
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6 "
SMTP -> get_lines(): $data is "334 VXNlcm5hbWU6 "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6 "
SMTP -> get_lines(): $data is "334 UGFzc3dvcmQ6 "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "235 2.7.0 Accepted "
SMTP -> get_lines(): $data is "235 2.7.0 Accepted "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 2.1.0 OK k41sm16414059rvb.27 "
SMTP -> get_lines(): $data is "250 2.1.0 OK k41sm16414059rvb.27 "
SMTP -> FROM SERVER:250 2.1.0 OK k41sm16414059rvb.27
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 2.1.5 OK k41sm16414059rvb.27 "
SMTP -> get_lines(): $data is "250 2.1.5 OK k41sm16414059rvb.27 "
SMTP -> FROM SERVER:250 2.1.5 OK k41sm16414059rvb.27
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "354 Go ahead k41sm16414059rvb.27 "
SMTP -> get_lines(): $data is "354 Go ahead k41sm16414059rvb.27 "
SMTP -> FROM SERVER:354 Go ahead k41sm16414059rvb.27
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 2.0.0 OK 1243883280 k41sm16414059rvb.27 "
SMTP -> get_lines(): $data is "250 2.0.0 OK 1243883280 k41sm16414059rvb.27 "
SMTP -> FROM SERVER:250 2.0.0 OK 1243883280 k41sm16414059rvb.27
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "221 2.0.0 closing connection k41sm16414059rvb.27 "
SMTP -> get_lines(): $data is "221 2.0.0 closing connection k41sm16414059rvb.27 "
SMTP -> FROM SERVER:221 2.0.0 closing connection k41sm16414059rvb.27

#1

oadaeh - June 1, 2009 - 22:18

Your second issue can be resolved by unchecking the 'Enable debugging' check box on the admin settings form (admin/settings/smtp).

I don't know the answer to the first one, and would need to do some research first. Unfortunately, I cannot promise (or even pretend to promise) when I can get to that.

#2

gmasky - June 2, 2009 - 01:50

Thanks, You helped solve 50% of the problem which is a lot :)

I have been searching for some time why smtp module or drupal contact form or google apps for my domain does not include the anonymous senders email address in emails sent via the contact form.

#3

Roulion - June 10, 2009 - 15:02

I have exactlty the same problem (the 1st one), even with the authentificated users who use the module as well.
In email option, i left the "E-mail from address" fild empty as well as the "E-mail from name" one.
If you need any information that may help you find why it occurs, please tell...

thank you for your work

#4

duckjerk - July 6, 2009 - 04:26

I am having the same issue with number 1. Upgraded from Drupal 5 to 6 and now all users emails come with from addresses/names like this:

From: "SMTP E-mail from address: "on behalf of "SMTP E-mail From Name"

instead of the actual users email and name.

#5

gmasky - July 7, 2009 - 02:14

I never fixed this issue and instead resorted to a somewhat in-elegant way of using the "mailto:emailaddress?subject=Website Feedback" At least this way I know who has sent the mail :)

Has anyone actually resolved this issue?

#6

einkahumor.com - August 11, 2009 - 10:46

+1. I would absolutely love to be able to use this module but I need the contact forms to work! I wish I was more of a developer and could help out with this.

#7

iainhouston - November 8, 2009 - 00:29

Did anyone find a solution to this? My server setup militates use of SMTP for sending emails.
One category of the contact form is sending emails via SMTP just fine.
The other category (a comma-separated pair of recipient email addresses) fails with the error message saying that the sending email address is invalid. Actually the error diagnostic message incorrectly mentions the recipient addresses as sending addresses They're not, they're the recipient addresses and never specified as the sending addresses.
Wierd? Where did it pick these up from incorrectly?

#8

markwhistler - November 10, 2009 - 15:46

I'm also having much of the same problem... My test emails go out fine, but both contact form and request new password emails fail...

Any suggestions would be GREATLY appreciated!

Thanks so much!

 
 

Drupal is a registered trademark of Dries Buytaert.