i'm usig php mailer to send email via SMTP using HTML form, recently this error ocured when i'm trying to send that email:
"SMTP server error: 5.7.1 Mail (id-40257-40235) appears to be unsolicited, please resend with the code sy2ururu appended to email subject and ask to have your sender email whitelisted (the code sy2ururu changes each 24 hours)."
What could it mean? Thank you
The SMTP error 5.7.1 is Unable to Relay so the user who is sending the email does not have permissions to the mail server.
you can check PHP.ini for the key sendmail_from as the default is...
sendmail_from = you#yourdomain
Related
When I send emails using outlook smtp i get following error
The server response was: 554 5.2.0
STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied;
Failed to process message due to a permanent exception with message
Cannot submit message. 16.55847:69000000,
17.43559:0000000060010000000000000000000000000000, 20.521"
I have no problem with other smtp servers.
It relates to that issue
This applies to all email clients using smtp server to send email.
Sometime near the beginning of July, there was a change that
disallowed you using a return email address that is not in your list
of verified email aliases or connected accounts. In other words, you
can't change the "From" field in emails you send to an anonymous email
address.
So to send email from outlook 365 you need add alias email to list of verified emails.
My forum has a problem with sending emails :
i have configured my mail settings as the following :
Mail Type : smtp
SMTP Host : myhost
Port : 587
Username & password : a valid email account on my domain
when i click on forget password to test sending emails i got the following message in error log:
Sender address is not valid for your login. Check your email program settings
I am pretty sure that this account is correct, and i tried to add test mail script to my host with the following code :
<?php
$mail = mail("myEmail", "wahahahahahaahahahahaa","I like spamming your inbox!!!", "From: Myself<your_email#here.com");
if(!$mail){
echo 'mail is not sent!';
} else {
echo 'mail is sent :-)';
}
?>
and it prints
mail is sent :-)
What i am missing here ?
I agree with Eggyal - it sounds like the hosted SMTP server is not allowing mail to be sent from the MAIL FROM address that you are using, with the authentication credentials that you are using.
To confirm this, and to rule-out a problem with the way that your application is trying to send the message - you might want to try sending a message through this SMTP server using a standard mail client (such as Thunderbird or Outlook), and using the same MAIL FROM address and authentication credentials that your application is using. If this fails with the same error, then you've confirmed that the hosted SMTP server is not allowing mail to be sent from the MAIL FROM address that you are using, with the authentication credentials that you are using.
Problem Solved.
I added my gmail on webmaster email, i changed it to domain email user then the problem is solved
I cannot make this thing work. One one of the sub-domain we have joomla website configured sending feedback form emails using PHP.
But this website on other domain is configured sending email using SMTP. On submitting the form we see the message
"The following from address failed: jawad.ahmad#mydomain.com
SMTP server error: 5.7.1 Client does not have permissions to send as this sender "
Please help.
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.
Is there any way to send mail from a gmail account to someone? And by "from" i mean so that it stores the email in the gmail inbox aswell...?
I've tried using imap, but i'm not sure if that's the correct way? Either way i get this error:
Warning: imap_mail() [function.imap-mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\gmail\index.php on line 12
Any idas how to achieve this?
Thanks!
Try using smtp instead, Gmail will put your email in sent folder for you. All the instructions are provided in the settings page of your gmail account.
http://deepakssn.blogspot.com/2006/06/gmail-php-send-email-using-php-with.html
You could do the same thing email clients do: Send your mail through SMTP and then create a mail in the Sent folder through IMAP.