Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Problem with mailing thru PHP
Old 02-12-2009, 12:28 PM 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
 
 
Register now for full access!
Old 02-12-2009, 01: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.

Please login or register to view this content. Registration is FREE
PeachyJuice is offline
Reply With Quote
View Public Profile
 
Old 02-12-2009, 07:59 PM Re: Problem with mailing thru PHP
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,516
Name: Chris Hirst
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!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-13-2009, 04: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, 01: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 06: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.15275 seconds with 12 queries