Delphi For PHP Forums       


Go Back   Delphi-PHP Forums > Programming > PHP - Code
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

PHP - Code PHP programming - Ask questions and help people with PHP code. If you are stuck and need help, this is where you ask for help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 22nd November 2008, 00:19
D4PHP User
 
Join Date: Aug 2007
Posts: 29
queryistanbul is on a distinguished road
Default I want to send mail

Hi I want to send e mail
but, program get the errors



ERROR

Warning: mail() [function.mail]: SMTP server response: 554 <erhangursoy@yahoo.com>: Relay access denied in C:\wamp\www\email\Emailsend.php on line 27

MY code is

function Button1Click($sender, $params)
{

$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-9' . "\r\n";
$headers .= 'To: Alıcı 1 <erhangursoy@yahoo.com>' . "\r\n";
$headers .= 'From: Yollayan Kişiyim <erhan@gursoy.gen.tr>' . "\r\n";
$headers .= 'Reply-To: Yanit E-Postasi <erhan@gursoy.gen.tr>' . "\r\n";
$headers .= 'X-Mailer: PHP/' . phpversion() . "\r\n";
//$headers .= 'Cc: acikkopya@eposta.com' . "\r\n";
//$headers .= 'Bcc: gizlikopya@eposta.com' . "\r\n";

$alici_eposta = 'erhangursoy@yahoo.com';
$eposta_konusu = 'Deneme HTML e-postası yolluyoruz';
$eposta_mesaji = '<b><i>Bu kalın ve italik olan bir HTML formatlı yazıdır.</i></b>';
mail($alici_eposta, $eposta_konusu, $eposta_mesaji, $headers);

}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 22nd November 2008, 01:17
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,272
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

I don't know much about it but I think it has to do with spam fighting...

You may have to do something with 'Server needs authentication'
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 22nd November 2008, 10:31
D4PHP User
 
Join Date: Aug 2007
Posts: 29
queryistanbul is on a distinguished road
Default

Yes, Server needs authentication

But, I don't know, which php parameters using
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 22nd November 2008, 13:07
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,272
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

I use phpmailer for send mail , it lists user and password properties:
Codeworx Technologies
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 22nd November 2008, 13:36
D4PHP User
 
Join Date: Aug 2007
Posts: 29
queryistanbul is on a distinguished road
Default

Thank you, very much
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 11:29.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Copyright © 2004 - 2009, G&J Solutions Ltd. All Rights Reserved. terms of use