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
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.
I'm configuring Moodle for a school project and there is a problem in email confirmation process.
following are my configurations:
outgoing mail confirmations
SMTP hosts: stmp.gmail.com:465
STMP security:TLS
STMP Auth Type:LOGIN
SMTP username:****#gmail.com [*admin e-mail*]
SMTP password:****
SMTP session limit:1
no-reply domain
no-reply address:***#gmail.com [*admin e-mail*]
Allowed email domains :
Email display settings
Character set : UTF-8
Allow user to select character set :no
Allow attachments: yes
Email via information: always
when user signed up; admin gets a notification that new user required access but the new user wont get any confirmation email.[before and after confirmation from site admin]
no email can be found in spam or inbox.
please help!!!
For the outgoing mail configuration you should just leave all the settings blank or revert them to their defaults. Unless you have a dedicated SMTP server (i.e. one that is hosted within your organisation and is specifically configured to relay outgoing mail from your Moodle server) then you should just let Moodle use PHP's own mail libraries to send mail.
Hope this helps.
I am sending mail from my hosting server through this PHP code :
mail("myemail#gmail.com", "Subject: Verify Eg Net Solution ID", $randStr , "From: Egnetsolution#gmail.com" );
In myemail#gmail.com the email is send but there is a warning that is saying :
"This message may not have been sent by: Egnetsolution#gmail.com Learn more Report phishing"
What I have to do in my hosting domain server. I will really appreciate you if you can give me a solution.
Check this answer:
You can either set up google apps for your site and get a
Username#yourwebsite.com gmail account (more info here it's free), or
You will need to set up an e-mail address on your current server that
is Username#yourwebsite.com and use that as the $mail->from address.
Your E-Mail recipients are receiving the message because you are
telling google to send an e-mail from your server, and then you are
telling them that the mail is coming from gmail, which it isn't, it's
coming from your personal server. Since the from address and your
server address don't match, they flag it as spam. This is googles way
of preventing spam, to them it would be the same if you put
$mail->from(YOURMOM#LOL.com). The e-mail would still send, but your
domain name does not match the # address.
I am working on a website where after enabling the authentication on SMTP server emails stop working.I installed the SMTP pro extension and on running self test it shows me
ASchroder.com SMTP Pro Self-test results
Testing outbound connectivity to Server:
Using SMTP configuration options
Connection to Host SMTP server successful.
Sending test email to your contact form address donotreply#example.com
Unable to send test email. Exception message was: Sender address is not valid for your login. Check your email program settings. ...
Please check and double check your username and password.
Contact Form test email used SMTPPro to send correctly.
Testing failed,
But this email address works on contact us form and valid email address.Emails are working on contact us form but not for forget password etc .Guide me so that i can fix the issue.Thanks
I would like to send an email from my PHP application. For this, I set up my website in IIS on my Windows server 2008. Can I install the Windows SMTP server.
Then I create a test page to send an email:
<?php
Ini_set ('SMTP', 'localhost');
Ini_set ('sendmail_from', 'myEmailTest#local.com');
$to = 'myEmailTest#ExternalDomain.com';
$subject = 'Example subject';
$body = 'body ... With an example';
if(mail($to, $subject, $body)){
echo "Successful";
}else{
echo "Error";
}
?>
I also configure php.ini and SMTP E-mail in IIS like this:
[Mail function]
smtp = localhost
smtp_port = 25
Then I test sending my mail. When I send the email to an email address of the local domain to another email address in the local domain. Me back my page "Successful" and the email goes in the folder :
C:\inetpub\mailroot\Drop
By cons, if I send an email from an email address in the local domain email address to an external domain (# hotmail.com). Me my page returns "Error" and nothing happens.
I look at the log files of my SMTP server, but there is no error message.
Can you help me?
I successfully advanced a step. Now, when I send an email from an e-mail address of local domain to a e-mail address of an external domain (#hotmail.com), the mail is send to my PHP page, it gets stuck in against in the queue C:\inetpub\mailroot\Queue.
Does anyone know what is the problem?
Thank you
If your page is returning with an error (most likely a 500) then you need to have a look at the PHP error logs which are separate from the SMTP error logs. Please let us know what you find, as any error encountered while attempting to execute the php mail function, will show up in those logs.