Welcome to Geeklog, Anonymous Monday, January 13 2025 @ 12:27 am EST

Geeklog Forums

Unable to send mail to user after they registers ..


Status: offline

xspace

Forum User
Regular Poster
Registered: 03/04/03
Posts: 100
1. Unable to send mail after user registers.<b>Environment</b>XP Pro w/ SP1 ; Apache 2 ; Php 4 ; MySQL I am now using a notebook as a test host. I was testing the registering of new user. Basically, I tried to register. Then I got this error msg -Warning: mail() [mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:Apache2htdocsgeeklogpublic_htmlusers.php on line 317I had already went to php.ini and changed from [mail function]; For Win32 only.SMTP = localhost; For Win32 only.sendmail_from = to[mail function]; For Win32 only.SMTP = mail.singnet.com.sg:25sendmail_from = xspace@singnet.com.sg However still the same error msg. Any idea?Another question :Can we create a standard layout for all the user. Meaning they cannot chose whether they want to have the VOTE block, ChatterLog, etc to be displayed or not. That means only I, as the Admin will control the overall layout.Thx!!!
Die young, stay Pretty
 Quote

Status: offline

falkon

Forum User
Junior
Registered: 02/12/03
Posts: 21
Does your smtp server require authorization? If so, that could be stopping the mail from being passed through. I run Win 2000 w/Apache and my own mail server (Argosoft). For security, I require smtp authorization. I was able to bypass smtp authorization for 127.0.0.1 and my mail went through. Looks like you are using your isp's smtp server and may not be able to bypass smtp authorization (or some other relay protection your isp may be running). You might want to check into running your own mail server. Argosoft has a free version that should do anything you need. Hope this helps.... Richard
 Quote

Status: offline

falkon

Forum User
Junior
Registered: 02/12/03
Posts: 21
Also, thanks to Danny at squatty.com here is a simple mail test page. Change the $adminemail to match your email account. Save this code to a page (mail_test.php or whaterver) then run it from a browser: http://yoursite/mail_test.php. <?php $email = 'test@test.com'; $adminemail = 'danny@squatty.com'; $date = date("M d Y"Wink; $subject = "NOTICE: Mail Test"; $headers .= "MIME-Version: 1.0rn"; $headers .= "Content-type: text/html; charset=iso-8859-1rn"; $headers .= "From: ".$email." <".$name.">rn"; $headers .= "To: ".$adminemail." <".$email.">rn"; $headers .= "Reply-To: ".$email." <$email>rn"; $headers .= "X-Priority: 1rn"; $headers .= "X-MSMail-Priority: Highrn"; $headers .= "X-Mailer: upload server"; $comments="This message was sent on $datern"; mail($adminemail, $subject, $comments); echo "e-mail sent to $adminemail"; ?>
 Quote

Status: offline

xspace

Forum User
Regular Poster
Registered: 03/04/03
Posts: 100
Thx guys .. I guess I realise it could be that I am not running any mail server on my Windows .. wth .. will try again .. Smile
Die young, stay Pretty
 Quote

Anonymous

Anonymous
I tried the mail_test.php, it can actually send email to my account .. so I guess I need to do something to php.ini ... any great idea???
 Quote

Anonymous

Anonymous
After I install Argosoft, I resolved the issue .. thx!!!!
 Quote

All times are EST. The time is now 12:27 am.

  • 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