Sunday, 15 August 2010

iis 7 - setting smtp on php.ini with authentication -



iis 7 - setting smtp on php.ini with authentication -

i'm setting smtp on iis web server using php

in php.ini file smtp section follow:

[mail function] smtp = outbound.mailhop.org smtp_port = 25 auth_username = my_dyndns_username auth_password = pwd sendmail_from = no-reply@website.com

the problem when seek phone call mail() function smtp server says

smtp server response: 550 must authenticate utilize dyn standard smtp

where can tell iis (or php) username , password in order authenticated on dyndns server?

dario

i found swift mailer solution form problem.

with simple script have works

$transport = swift_smtptransport::newinstance('outbound.mailhop.org', 25) ->setusername('user') ->setpassword('pwd'); $mailer = swift_mailer::newinstance($transport); $message = swift_message::newinstance() ->setsubject($sbj) ->setfrom($from) ->setreplyto($replyto) ->setto($to) ->setbody($msg); $result = $mailer->send($message);

here book on how other functions/parameters

iis-7 smtp php dyndns

No comments:

Post a Comment