I am trying to send mail using php. But it shows error as failed to connect with mailserver 'localhost'. Then i use smtp.bizmail.yahoo.com as SMTP mail server, then it shows SMTP error 530, Authentication required.. I don't know how to pass smtp username and password through php.ini file.. If anybody have better ideas, please suggest me.. I am struggling to solve this for more days. Thanks in advance for your suggestions.....
Dragonbaki
4
Junior Poster
Recommended Answers
Jump to PostIf you are using the mail() function, then authentication is not possible. You may need to use a tool like XMailer, PHPMailer or PEAR:Mail
Jump to PostAre you doing it like this ?
http://www.geekology.co.za/blog/2009/06/sending-emails-with-attachments-using-php-mail-function/
Jump to PostIf you do not get errors, put in some echo statements, so you can at least see up to where the script runs.
All 9 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Dragonbaki
4
Junior Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Dragonbaki
4
Junior Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Dragonbaki
4
Junior Poster
mafhh14
0
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Dragonbaki
4
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.