Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 11:00 pm EST
Geeklog Forums
SMTP mail problem - new users
Status: offline
akh75
Forum User
Newbie
Registered: 05/08/04
Posts: 2
Hello All!
I'm having problems with SMTP mail:
It works via users.php and profiles.php, but auto-generated emails for new registration or forgotten passwords does not result in a received email, even though the site says it is successful. It does however generate the error in the error log, which has also been posted in the discussions:
Again, there's a lot of discussion on this topic, but nothing seems to ameliorate the problem.
I have hosting with 1and1.com and it seems that SMTP is the only way to go with them.
I'm also running GL on DixieSystems hosting, but $_CONF['mail_settings'] is set as "mail" so I don't have this problem there. Just to test, I set it to "smtp", and got the same errors as I'm getting with 1and1 hosting.
Both are running GL 1.3.9, and "safe_mode" is "off" in both.
1and1 php version is 4.2.3.
On 1and1, I tried "$_CONF['have_pear'] = true", which resulted in error -- can't find Socket.php, and I couldn't find it either:
Curl.php Dig.php SMTP.php
Changing 'auth' parameter to "true" did nothing...
Here's the snippet, which, as I said before works in user.php and profiles.php but does not generate automated email for new registrations and lost passwords. I didn't try other email functionalities, such sending email to all users....
...
$_CONF['mail_settings'] = array (
'backend' => 'smtp', // can be one of 'mail', 'sendmail', 'smtp'
// sendmail parameters (for 'backend' => 'sendmail')
'sendmail_path' => '/usr/sbin/sendmail',
'sendmail_args' => '-t -i',
// SMTP parameters (for 'backend' => 'smtp')
'host' => 'smtp.1and1.com',
'port' => '25',
'auth' => false,
'username' => 'm99999999-9',
'password' => '99999999'
Any help is greatly appreciated!!!!!!!
I'm having problems with SMTP mail:
It works via users.php and profiles.php, but auto-generated emails for new registration or forgotten passwords does not result in a received email, even though the site says it is successful. It does however generate the error in the error log, which has also been posted in the discussions:
Text Formatted Code
[pear_error: message="unable to set sender to [@]" code=0 mode=return level=notice prefix="" info=""] Again, there's a lot of discussion on this topic, but nothing seems to ameliorate the problem.
I have hosting with 1and1.com and it seems that SMTP is the only way to go with them.
I'm also running GL on DixieSystems hosting, but $_CONF['mail_settings'] is set as "mail" so I don't have this problem there. Just to test, I set it to "smtp", and got the same errors as I'm getting with 1and1 hosting.
Both are running GL 1.3.9, and "safe_mode" is "off" in both.
1and1 php version is 4.2.3.
On 1and1, I tried "$_CONF['have_pear'] = true", which resulted in error -- can't find Socket.php, and I couldn't find it either:
Text Formatted Code
u99999999:/usr/local/lib/php/Net > lsCurl.php Dig.php SMTP.php
Changing 'auth' parameter to "true" did nothing...
Here's the snippet, which, as I said before works in user.php and profiles.php but does not generate automated email for new registrations and lost passwords. I didn't try other email functionalities, such sending email to all users....
Text Formatted Code
$_CONF['have_pear'] = false;...
$_CONF['mail_settings'] = array (
'backend' => 'smtp', // can be one of 'mail', 'sendmail', 'smtp'
// sendmail parameters (for 'backend' => 'sendmail')
'sendmail_path' => '/usr/sbin/sendmail',
'sendmail_args' => '-t -i',
// SMTP parameters (for 'backend' => 'smtp')
'host' => 'smtp.1and1.com',
'port' => '25',
'auth' => false,
'username' => 'm99999999-9',
'password' => '99999999'
Any help is greatly appreciated!!!!!!!
17
19
Quote
Status: offline
akh75
Forum User
Newbie
Registered: 05/08/04
Posts: 2
I guess I didn't try everything...
I changed lib-common.php, and hardcoded return email address:
function COM_mail( $to, $subject, $message, $from = 'gltest@mydomain.com', $html = false, $priority = 0 )
It now works with new user registration and forgotten passwords, and does not affect the return address of emails sent from users.php or profiles.php. Will test out others.
Any thoughts are welcome!
This topic did it!
I changed lib-common.php, and hardcoded return email address:
function COM_mail( $to, $subject, $message, $from = 'gltest@mydomain.com', $html = false, $priority = 0 )
It now works with new user registration and forgotten passwords, and does not affect the return address of emails sent from users.php or profiles.php. Will test out others.
Any thoughts are welcome!
This topic did it!
14
16
Quote
All times are EST. The time is now 11:00 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content