Welcome to Geeklog, Anonymous Tuesday, December 24 2024 @ 12:03 pm EST

Geeklog Forums

email not being sent when new user signs up


confused guy

Anonymous
confused
For some reason, when a new user signs up to become a registered user, the email isn't sent. I've tested it out by signing up as a user to my own website, and I've waited as long as 4 hours to recieve the email.

I've tried both a hotmail account and a gmail account. Neither of them recieved any emails. Any suggestions?

 Quote

Status: offline

aussiewal

Forum User
Chatty
Registered: 11/16/06
Posts: 48
Location:Sydney, Australia
cheerful
Quote by: confused guy

For some reason, when a new user signs up to become a registered user, the email isn't sent. I've tested it out by signing up as a user to my own website, and I've waited as long as 4 hours to recieve the email.

I've tried both a hotmail account and a gmail account. Neither of them recieved any emails. Any suggestions?



Have you checked your spam mail in Hotmail, and Gmail?

We had this problem, and 100% of the time the mail was in the Spam
We had to put a message on how site saying to check spam.

Will
World Peace by 2020
 Quote

confused guy

Anonymous
confused
Yeah I double checked that and no it's not going to the spam box. Does anybody know what file to look in to find out where the email is being sent from?

 Quote

ironmax

Anonymous
Quote by: confused guy

For some reason, when a new user signs up to become a registered user, the email isn't sent. I've tested it out by signing up as a user to my own website, and I've waited as long as 4 hours to recieve the email.

I've tried both a hotmail account and a gmail account. Neither of them recieved any emails. Any suggestions?



Have you double checked your settings in the config.php file? Check the lines around 149-169.
Something like this---
Text Formatted Code

// To send email from Geeklog, you will need to select one of the following
// email backends:
// - 'mail', i.e. use PHP's built-in mail() function
// - 'sendmail', i.e. use the sendmail utility
// - 'smtp', i.e. talk directly to your SMTP server
// The default is 'mail' and will work in most environments.

$_CONF['mail_settings'] = array (
    'backend' => 'smtp', // can be one of 'mail', 'sendmail', 'smtp'

    // sendmail parameters (only needed for 'backend' => 'sendmail')
    'sendmail_path' => '/usr/bin/sendmail',
    'sendmail_args' => '',

    // SMTP parameters (only needed for 'backend' => 'smtp')
    'host'     => 'mail.example.com',
    'port'     => '25',
    'auth'     => false,
    'username' => 'user@example.com',
    'password' => 'password'
);
 


Also check your php.ini file for

Text Formatted Code

[mail function]
; For Win32 only.
; SMTP = mail.example.com ; for Win32 only

; For Win32 only.
; sendmail_from = userl@example.com ; for Win32 only

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
smtp_port=25
sendmail_path =/sendmail.exe -t -i
 


The only other thing to check would be the actual mailer thats sending it.

Check your error logs as well, could point you in the right direction.
 Quote

confused

Anonymous
confused
Where is the php.ini file?
 Quote

niceone

Anonymous
I'm having the same problem over and over again. I've tried switching over to STMP and "sendmail" but with no success.

I have a website complete and ready to go but new users can't sign up because my website doesn't send them email! HELP!
 Quote

jimmy

Anonymous
same problem. I tried the following:

$_CONF['mail_settings'] = array (
'backend' => 'smtp', // can be one of 'mail', 'sendmail', 'smtp'

// sendmail parameters (only needed for 'backend' => 'sendmail'Wink
'sendmail_path' => '/usr/bin/sendmail',
'sendmail_args' => '',

// SMTP parameters (only needed for 'backend' => 'smtp'Wink
'host' => 'mail.mysite.com',
'port' => '21',
'auth' => false,
'username' => 'webmaster@mysite.com',
'password' => 'mypassword'

yeah so all i did was change the "mysite" and "mypassword" parts. Still no good. Does anyone know where php.ini is? Or if I switch 'backend'=>'smtp' back to default 'mail' does anyone know how to fix it so it actually works?

 Quote

ironmax

Anonymous
Okay, I think what we need to know is whats your setup like? Are you running windows or linux? Are you hosting it yourself or is it hosted by an ISP?

So far I would tend to think that your having your site hosted, and most likely on a linux system. Have you tried to contact your host provider to help assist you in the php.ini possible problem with the mail. Also, your provider may have made changes recently to the setup without even notifying you of said changes. That happens quite frequently.

 Quote

jimmy

Anonymous
I use as my web host

https://cp2.infinology.net/psoft/servlet/psoft.hsphere.CP

and

http://bsd15.infinology.net/webshell4/login.php

as my file hoster.

The tech support is terrible. All you can do is write a trouble ticket and they never respond.
 Quote

help

Anonymous
Help please... anybody?
 Quote

ironmax

Anonymous
The only thing I could sugest is to create a php.ini file and place it in the root dir, same dir as your config, with the abpve info for the mail in the file. Make changes of corse and see if that works. Otherwise you'll have to either have your hosting provider help you or until someone else that reads this forum can come up with a better idea. Personally I've never delt with a provider, I do all this myself inhouse on a windows machine.

 Quote

HELP PLEASE

Anonymous
I tried adding the php.ini file. No success. With the following settings in config.php:

// To send email from Geeklog, you will need to select one of the following
// email backends:
// - 'mail', i.e. use PHP's built-in mail() function
// - 'sendmail', i.e. use the sendmail utility
// - 'smtp', i.e. talk directly to your SMTP server
// The default is 'mail' and will work in most environments.

$_CONF['mail_settings'] = array (
'backend' => 'smtp', // can be one of 'mail', 'sendmail', 'smtp'

// sendmail parameters (only needed for 'backend' => 'sendmail'Wink
'sendmail_path' => '/usr/bin/sendmail',
'sendmail_args' => '',

// SMTP parameters (only needed for 'backend' => 'smtp'Wink
'host' => 'mail.mydomain.com',
'port' => '25',
'auth' => false,
'username' => 'webmaster@mydomain.com',
'password' => 'mypassword'

I get the following error in the logwhen a new user tries to sign up (the last line). The second to last line was when i tried "sendmail.":

Tue Nov 21 05:36:54 2006 - [pear_error: message="Failed to add recipient: tester@gmail.com [SMTP: Invalid response code received from server (code: 553, response: sorry, that domain isn't allowed to be relayed thru this MTA (#5.7.1))]" code=0 mode=return level=notice prefix="" info=""]
Tue Nov 21 23:32:58 2006 - [pear_error: message="Failed to connect to localhost:25 [SMTP: HELO was not accepted: (code: 501, response: 5.0.0 Invalid domain name)]" code=0 mode=return level=notice prefix="" info=""]
Tue Nov 21 23:37:35 2006 - [pear_error: message="Failed to connect to localhost:25 [SMTP: HELO was not accepted: (code: 501, response: 5.0.0 Invalid domain name)]" code=0 mode=return level=notice prefix="" info=""]
Wed Nov 22 22:42:21 2006 - [pear_error: message="sendmail [/usr/local/bin/sendmail] is not a valid file" code=0 mode=return level=notice prefix="" info=""]
Wed Nov 22 22:50:15 2006 - [pear_error: message="Failed to add recipient: tester@gmail.com [SMTP: Invalid response code received from server (code: 553, response: sorry, that domain isn't allowed to be relayed thru this MTA (#5.7.1))]" code=0 mode=return level=notice prefix="" info=""]

I am at the point where I feel like giving up. PLEASE HELP
 Quote

HELP

Anonymous
Well I've been doing some google research on this error and I found out it's possible that some web hosters block the big 3: yahoo, hotmail, and gmail accounts from being used for smtp because of spam. This is ridiculous because the vast majority of people use these three accounts, so then nobody would be able to sign up on my site.

If nobody has a solution to this problem, can someone please help me so that the built in PHP mail function works?

backend=>'mail' ?

the default did not work... what can i do to make it work?

 Quote

tokyoahead

Anonymous
You would have to debug to test it. Its quite complicated because its unknown what system your server provides to send email.
If you areunlucky, its blocked completely. You will never know however before you contact your tech support.
Guessing on that problem can take a long time.
Bascially you can try forever if they dont tell you which system is working. I would suggest you to switch providers.
 Quote

Satvir

Anonymous
cold
include('../../php/PEAR/Mail.php'); include('../../php/PEAR/Mail/mime.php'); $from = "Sandra Sender "; $to = "Ramona Recipient "; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; $host = "hostname use"; $username = "user name use"; $password = "password use"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { echo("

" . $mail->getMessage() . "

"); } else { echo("

Message successfully sent!

"); }
 Quote

All times are EST. The time is now 12:03 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