Support > cpg1.5 email
Problem with contact form by SMTP and Sendmail
Αndré:
Open include/mailer.inc.php, find
--- Code: ---$sender_email = CPGPluginAPI::filter('cpg_mail_sender_email', $sender_email);
--- End code ---
and below, add something like
--- Code: ---$sender_email = 'no-reply@onet.pl';
--- End code ---
qba:
Doesn`t work :(
Mistake:
--- Quote ---File: /home/qba/public_html/automobilia/contact.php - Line: 211
--- End quote ---
Debug mode:
--- Code: ---USER:
------------------
Array
(
[ID] => 9a0b80df7a69c07cf2a664c62553914c
[am] => 1
[lang] => polish
[liv_a] => Array
(
[0] => 272
[1] => 302
[2] => 216
[3] => 57
[4] => 214
)
[liv] => Array
(
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 0
[user_name] => Guest
[groups] => Array
(
[0] => 3
)
[group_quota] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 0
[can_post_comments] => 0
[can_upload_pictures] => 0
[can_create_albums] => 0
[pub_upl_need_approval] => 1
[priv_upl_need_approval] => 1
[access_level] => 3
[disk_max] => 0
[disk_min] => 0
[has_admin_access] => 0
[group_name] => Guests
[can_create_public_albums] => 1
[can_see_all_albums] => 0
[group_id] => 3
[allowed_albums] => Array
(
)
)
==========================
Queries:
------------------
Array
(
[0] => SELECT name, value FROM cpg15x_config [include/init.inc.php:179] (0 ms)
[1] => SELECT * FROM cpg15x_plugins ORDER BY priority [include/plugin_api.inc.php:52] (0 ms)
[2] => SELECT * FROM cpg15x_plugins [plugins/xfeed/include/load_xfdset.php:24] (0 ms)
[3] => SELECT * FROM cpg15x_plugin_xfeeds [plugins/xfeed/include/load_xfdset.php:34] (0 ms)
[4] => SELECT * FROM cpg15x_plugins [plugins/enlargeit/include/load_enlargeitset.php:17] (0 ms)
[5] => SELECT * FROM cpg15x_plugin_enlargeit [plugins/enlargeit/include/load_enlargeitset.php:27] (0 ms)
[6] => SELECT user_id, time FROM `qba_copp15x`.cpg15x_sessions WHERE session_id = 'feac7883d35ef31782a6ea1f9b586d8c' [bridge/coppermine.inc.php:263] (0 ms)
[7] => SELECT user_id, user_password FROM `qba_copp15x`.cpg15x_users WHERE user_id = 0 [bridge/coppermine.inc.php:275] (0 ms)
[8] => SELECT MAX(group_quota) AS disk_max, MIN(group_quota) AS disk_min, MAX(can_rate_pictures) AS can_rate_pictures, MAX(can_send_ecards) AS can_send_ecards, MAX(can_post_comments) AS can_post_comments, MAX(can_upload_pictures) AS can_upload_pictures, MAX(can_create_albums) AS can_create_albums, MAX(has_admin_access) AS has_admin_access, MAX(access_level) AS access_level, MIN(pub_upl_need_approval) AS pub_upl_need_approval, MIN( priv_upl_need_approval) AS priv_upl_need_approval FROM cpg15x_usergroups WHERE group_id in (3) [bridge/udb_base.inc.php:323] (0 ms)
[9] => SELECT group_name FROM cpg15x_usergroups WHERE group_id= 3 [bridge/udb_base.inc.php:327] (0 ms)
[10] => SELECT COUNT(*) FROM cpg15x_categorymap WHERE group_id in (3) [bridge/udb_base.inc.php:340] (0 ms)
[11] => UPDATE `qba_copp15x`.cpg15x_sessions SET time = 1353442571 WHERE session_id = 'feac7883d35ef31782a6ea1f9b586d8c' [bridge/coppermine.inc.php:320] (222 ms)
[12] => SELECT aid FROM cpg15x_albums WHERE moderator_group IN (3) [include/init.inc.php:269] (330 ms)
[13] => SELECT description from cpg15x_albums WHERE aid='' [themes/chaoticsoul/theme.php:1223] (0 ms)
[14] => SELECT lang_id FROM cpg15x_languages WHERE enabled='YES' [include/init.inc.php:327] (0 ms)
[15] => SHOW TABLES LIKE 'cpg15x_languages' [include/functions.inc.php:4159] (0 ms)
[16] => SELECT * FROM cpg15x_languages [include/functions.inc.php:4166] (0 ms)
[17] => DELETE FROM cpg15x_banned WHERE expiry < '2012-11-20 21:16:12' [include/init.inc.php:441] (0 ms)
[18] => SELECT null FROM cpg15x_banned WHERE ('83.29.17.168' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:457] (0 ms)
[19] => SELECT aid FROM cpg15x_albums WHERE (1 AND visibility != 0 AND visibility != 10000 AND visibility NOT IN (3)) [include/functions.inc.php:976] (0 ms)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[sender_name] => Imię
[sender_email] => walwid.tuning@op.pl
[subject] => Temat wiadomości
[message] => wiadomość
[referer] => index.php?message_id=9c4a833667c151958189a538c9ef0da9&message_icon=info
[form_token] => aef7107c920d55b1014980a415f4f6de
[timestamp] => 1353442535
[submit] => wyślij
)
==========================
COOKIE :
------------------
Array
(
[cpg15x_ext_stats] => no
[__utma] => 71931265.1412981766.1349635779.1351190497.1351968045.8
[__utmz] => 71931265.1351968045.8.8.utmcsr=qba.fc.pl|utmccn=(referral)|utmcmd=referral|utmcct=/garage/
[b780142ecb7b25722ad1e8f462d46cf8] => d990a7ef6db777ecf8aa9e73c697ce0d
[8b2efd62c876c01430c6297de390ec34] => 2cf3f10583d00d12354d0a6bf26cc1fd
[cpg15x_data] => YTo1OntzOjI6IklEIjtzOjMyOiI5YTBiODBkZjdhNjljMDdjZjJhNjY0YzYyNTUzOTE0YyI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo2OiJwb2xpc2giO3M6NToibGl2X2EiO2E6NTp7aTowO2k6MjcyO2k6MTtpOjMwMjtpOjI7aToyMTY7aTozO2k6NTc7aTo0O2k6MjE0O31zOjM6ImxpdiI7YTowOnt9fQ==
)
==========================
--- End code ---
Αndré:
Please post the complete error message, not just a part.
I just tested the contact form at your gallery and I got
--- Quote ---Your email has been sent.
--- End quote ---
qba:
Andre, I changed to "sendmail" option for night time. Now I came back to "smtp" option.
You sent me email whrn was turned on option "sendmail" and it came to my mailbox in this shape:
--- Code: ---This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
jwidla@onet.eu
SMTP error from remote mail server after RCPT TO:<jwidla@onet.eu>:
host mx.poczta.onet.pl [213.180.147.146]: 554 5.7.1 <jwidla@onet.eu>:
Recipient address rejected: Spf check: fail
------ This is a copy of the message, including all the headers. ------
Return-path: <jwidla@onet.eu>
Received: from nobody by beta2.fc.pl with local (Exim 4.80)
(envelope-from <jwidla@onet.eu>)
id 1TbAeL-00063S-7G
for jwidla@onet.eu; Wed, 21 Nov 2012 14:47:34 +0100
To: jwidla@onet.eu
Subject: test
Date: Wed, 21 Nov 2012 14:47:32 +0100
From: "jwidla@onet.eu" <no-reply@onet.pl>
Message-ID: <cf4141c5738767e837212ae78641fee5@www.car-brochu res.one.pl>
X-Priority: 3
X-Mailer: PHPMailer (phpmailer.sourceforge.net) [version 2.0.4]
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="b1_cf4141c5738767e837212ae78641fee5"
--b1_cf4141c5738767e837212ae78641fee5
Content-Type: text/plain; charset = "utf-8"
Content-Transfer-Encoding: 8bit
This email was sent at 2012-11-21 14:47:32 using the contact form at http://www.car-brochures.one.pl/contact.php from the IP address 89.16.137.122
The guest named "test" with the email address test@test.com said:
test
--b1_cf4141c5738767e837212ae78641fee5
Content-Type: text/html; charset = "utf-8"
Content-Transfer-Encoding: 8bit
This email was sent at 2012-11-21 14:47:32 using the contact form at http://www.car-brochures.one.pl/contact.php from the IP address 89.16.137.122<br /><br />
The guest named «test» with the email address test@test.com said:<br /><br />
<div style="border:1px solid black">test</div>
--b1_cf4141c5738767e837212ae78641fee5--
--- End code ---
Now I`ve changed sending emails by smtp.
Result:
--- Quote ---ErrorFailed to send email. Please try again later.
File: /home/qba/public_html/automobilia/contact.php - Line: 211
--- End quote ---
Αndré:
So sendmail works as expected?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version