Reply
Problem with mailing thru PHP
Old 02-12-2009, 11:28 AM Problem with mailing thru PHP
Average Talker

Posts: 24
Name: Ignatius Vinoth
Trades: 0
Dear Friends,

Hope u can help me out. Im tring to generate mail thru php coding for my registration confirmation. But, I face below error,

Code:
authentication failure [SMTP: Invalid response code received from server (code: 535, response: Incorrect authentication data)]


TR,
Iggy
iggywiggy is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 02-12-2009, 12:14 PM Re: Problem with mailing thru PHP
PeachyJuice's Avatar
Super Talker

Posts: 116
Name: Michele T.
Location: Ny, Ny
Trades: 1
Please post some code so we can see what's causing the problem =)
__________________
Freelance web+graphic designer and PHP developer.
Web Design Portfolio
PeachyJuice is offline
Reply With Quote
View Public Profile
 
Old 02-12-2009, 06:59 PM Re: Problem with mailing thru PHP
chrishirst's Avatar
Super Moderator

Posts: 26,544
Location: Blackpool. UK
Trades: 0
You haven't sent a valid username and password and the server requires authentication.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | Crowded Nightclub? | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-13-2009, 03:09 AM Re: Problem with mailing thru PHP
Average Talker

Posts: 24
Name: Ignatius Vinoth
Trades: 0
This is the coding I have writen...

PHP Code:
require_once "Mail.php";
$from "worldzyourz <noreply@worldzyourz.info>";
$to $_POST[email];
$subject "worldzyourz.info Registration!";
$body "Welcome to our website!\r\rYou, or someone using your email address, has completed registration at worldzyourz.info. You can complete registration by clicking the following link:\rhttp://www.worldzyourz.info/verify.php?$confirm_code\r\rIf this is an error, ignore this email and you will be removed from our mailing list.\r\rRegards,\ worldzyourz.info Team";
$host "mail.worldzyourz.info";
$username "smtp_noreply@worldzyourz.info";
$password "smtp_******";
$headers = array ('From' => $from,
  
'To' => $to,
  
'Subject' => $subject);
$smtp Mail::factory('smtp',
  array (
'host' => $host,
    
'username' => $username,
    
'password' => $password,
    
'auth' => true));
$mail $smtp->send("$to""$headers""$body");
if (
PEAR::isError($mail)) {
  echo(
"<p>" $mail->getMessage() . "</p>");
 } else {
  echo(
"<p>An email has been sent to $_POST[email] with an activation key. Please check your mail to complete registration!</p>");
 }
##Send activation Email 
iggywiggy is offline
Reply With Quote
View Public Profile
 
Old 02-13-2009, 12:20 PM Re: Problem with mailing thru PHP
Average Talker

Posts: 24
Name: Ignatius Vinoth
Trades: 0
Dear Team,

I have sorted out the Problem.

TR,
Iggy

Last edited by iggywiggy; 02-17-2009 at 05:48 AM..
iggywiggy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problem with mailing thru PHP
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.09924 seconds with 13 queries