how to send mails using phpmailer through yahoo SMTP? - php

i am using phpmailer to send mails it is working with gmail but when it comes to yahoo giving the following errors
SMTP -> Error : Password not accepted from server : 530 access denied
SMTP -> Error : RSET failed
SMTP -> Error : Could not authenticate
i am using the working yahoo account.
Please give me a solution.
Thanks in advance.

Try to use Yahoo SMTP with normal email client (e.g. Thunderbird) and see if it works then? If it works - then problem is in phpmailer, if not - maybe IP somehow landed in some spam-blacklist and Yahoo is simply rejecting all mails from it?

Related

Email is not working in Joomla Site [SMTP]

I'm getting an error like :
Notice
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
×
Error
Test mail could not be sent.
My Email Setting as below,
I'm able to telnet my email host. Application is hosted in Linux Server.
hi if you are using Gmail account
refer https://www.lifewire.com/what-are-the-gmail-smtp-settings-1170854
if any other smtp service ask your host provider

GMail SMTP test mail sending failed

This image above shows the error: SMTP ERROR: Failed to connect to server: (0)
But my GMail SMTP settings are correct and working. How is this possible?
Gmail SMTP (smtp.gmail.com) use the port 587 and need a secured connection.
Otherwise it seems Google SMTP has restricted its use to Google G Suite subscriber.
You have these information and a test tool at https://www.smtper.net
I have tested myself with my G Suite mail, the test tool works great.

PHPMailer throws error when sending mail from a free subdomain

I am using PHPMailer 5.2.0 for sending mail from localhost using my GMAIL account, it works perfectly, but when I hosted whole contents to a free sub-domain in getmeleave.orgfree.com, I get a error message as follows
SMTP Error: Could not connect to SMTP host.
Please give me solution for this, as it is my final year project.
Thank you
In many case with this issue, Solution like lack of SSL support in PHP. So you need to enable like:
extension=php_openssl.dll
If not solve this?. I suggest you to enable the SMTP debug available on the SMTP configuration page and then try to send an email. It will give you a more detailed story of why you can't send the message.
$mail->SMTPDebug = 1;
Once you set true it will report you what is the SMTP error.

SMTP server local send mail php [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
mail(): SMTP server response: 550 The address is not valid error on hmailserver
I would like test my class senderMail.php.
For to have, a smtp server, I use hMailServer. I have created a domaine, I have created a account, and now I configure SMTP settings.
hMailServer would like a configuration "SMTP RELAYER". I test with the information:
smtp.gmail.com on port 587 and I enter my identifier too.
When, I have tested this with my class senderMail.php I have this error:
SMTP server response: 550 The address is not valid
Where come my error ? It's from SMTP RELAYER or a other config ?
why don't you try it to send it directly from localhost.
Go to your php.ini file and change SMTP = localhost to SMTP = aspmx.l.google.com and uncomment sendmail_from and put in your sending gmail address.
In php, test it with mail("youremail]#gmail.com", "subject", "body");
Note: This only works when sending email to google hosted email addresses.
OR
try above if its not work use swiftmailer its php mail sending library which also allow to send mail through SMTP its really helpful during development.

sending mail from my domain in php

I'm trying to send a mail from my own domain server like xyz#mydomain.com in php.
I can successfully send mail using gmail account with pear package. But, sending messages from my own domain fails.
any idea..... how I should send messages from my own domain. I'm getting errors like
authentication failure [SMTP: SMTP server does not support authentication (
code: 250, response: EMU.dnsracks.com Hello [72.18.135.214] TURN SIZE 2097152
ETRN PIPELINING DSN ENHANCEDSTATUSCODES 8bitmime BINARYMIME CHUNKING VRFY OK)]
My mail address is xyz#mydomain.com
Any help would be appreciated.
you don't need to use smtp, just use the phpmailer class.
http://www.askapache.com/php/phpfreaks-eric-rosebrocks-phpmailer-tutorial.html
very easy to use and you'll be sending emails in minutes!

Categories