Jump to content


Photo

mail() authentication problem


  • Please log in to reply
3 replies to this topic

#1 littledbc

littledbc
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 06 March 2006 - 06:05 PM

I get this error when trying to use the mail() function:
mail() [function.mail]: SMTP server response: 550 Relaying denied
Does anyone know how to authenticate to the SMTP server so I don't get this error?
Thanks!

#2 apulmca2k4

apulmca2k4
  • Members
  • PipPip
  • Member
  • 19 posts
  • LocationIndia

Posted 04 October 2008 - 09:48 AM

Hi,

I can do it for you .

Apul
apulmca2k4@gmail.com
Apul Gupta
apulmca2k4@gmail.com

#3 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 04 October 2008 - 10:29 AM

try this mate

<?php
ini_set("SMTP","mail.domain.com");
ini_set("sendmail_from","abc@example.com"); 
?>

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#4 PFMaBiSmAd

PFMaBiSmAd
  • Staff Alumni
  • Advanced Member
  • 16,767 posts
  • LocationColorado, U.S.A.

Posted 04 October 2008 - 03:49 PM

If possible, make either the To: or the From: address be hosted on the mail server to satisfy relaying restrictions. If you are putting a user entered email address into the From: header, put it instead into the Reply-To: header and put a valid email address hosted on the mail server into the From: header.

The php mail() function does not support SMTP authentication. Use the phpmailer class instead.
Signature: (not a comment about anything you posted unless specifically indicated)
Debugging step #1: To get past the garbage-out equals garbage-in stage in your code, you must check that the inputs to your code are what you expect.

Programming is just problem solving, but it is done in another language. You must learn enough of the programming language you are using to be able to read and write code.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users