/    Sign up×
Community /Pin to ProfileBookmark

sendmail function not sending out email

I have this function iv edited my php.ini to link to my domain but it still does not send any mail iv also edited my sendmail.exe does anyone have any idea’s on what i could do to make this work. Im using smtp to send out

send_mail( ‘[email protected]‘,
$_POST[’email’],
‘Registration System Demo – Your New Password’,
‘Your password is: ‘.$pass);

$_SESSION[‘msg’][‘reg-success’]=’We sent you an email with your new password!’;
}
else $err[]=’This username is already taken!’;
}

if(count($err))
{
$_SESSION[‘msg’][‘reg-err’] = implode(‘<br />’,$err);
}

header(“Location: Home.php”);
exit;

}

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@NatdripSep 17.2012 — What are you running php with?
Copy linkTweet thisAlerts:
@aromasoduauthorSep 17.2012 — I'm running the php on my wamp server
Copy linkTweet thisAlerts:
@nevenneSep 17.2012 — you need to change in php my ini [mail function]

; For Win32 only.

; http://php.net/smtp

SMTP = youprovider

; http://php.net/smtp-port

smtp_port = 25

; For Win32 only.

; http://php.net/sendmail-from

sendmail_from = [email][email protected][/email]
Copy linkTweet thisAlerts:
@criterion9Sep 17.2012 — Where is send_mail() defined? The PHP built-in is mail().
×

Success!

Help @aromasodu spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...