Smtp send email with another address - email

Hi all I have a site where if i want to send an email I have to set the smtp with this configuration:
Enable Advanced Smtp Yes
Auth Mode Login
Username noreply#myserver.com
Password password
Smtp host smtp.myserver.com
Smtp port 465
Use SSL Yes
If I want to send with my smtp settings mail from another address like test#test.it how can I do that? Because my client don't want to see my domain when receive the email but another email.
Is possible?

All you need is an SMTP server with relaying. if smtp.myserver.com has relaying, than you can use a variety of languages. YOu need to modify the >MAIL From: parameter in any which of those languages.
For magento, modify: “/magento/app/code/core/Mage/Core/Model/Email.php"
then under the
public function send() function you need to modify:
->setFrom($this->getFromEmail(), $this->getFromName())
and use
->setFrom("test#test.com")

Related

how to setup mail exchange to send out email from xampp

I would like to send out notification from my php website. However I am using exchange. When I set up in sendmail.ini and php.ini. I dono what to key in for the smtp for my email exchange.
I would like to send out notification from my php website. However I am using exchange. When I set up in sendmail.ini and php.ini. I dono what to key in for the smtp for my email exchange.
I would like to send out notification from my php website. However I am using exchange. When I set up in sendmail.ini and php.ini. I dono what to key in for the smtp for my email exchange.
Anyone could help?
Exchange server is an SMTP server like all other internet e-mail servers.
Use the host name of your Exchange server, and port 25 or 465 (for SMTP/SSL).
Perhaps your Exchange server requires authentication. That is normal if you want to send to outside domains. In that case, you need to configure that as well.
You should ask your Exchange admins for the details, if you don't have them.

How can I use a user alias with gmail smtp authentification?

I am using Drupal 7 and the SMTP module. The Gmail (Apps for work) account uses 2 step verification and an app password so that the website can auth using SMTP. Fine so far.
The problem is that the user account, say johndoe#domain.com should not be the from address, but info#domain.com should. info is already a working alias for johndoe.
We must use johndoe to actually authenticate, an alias does not work for this. But, although the from address in debug is info#domain.com, in my mail app the sender still seems to be johndoe#domain.com.
Any ideas?
Edit: I've read that the Google SMTP service overrides the from address with the user account. Even if the from address is an existing alias?
This is really weird.
Please try adding alias email address in gmail.
Open gmail => Setting => Accounts => Send email as: => Add another email address
Gmail will send confirmation code to the alias email. After you add the alias address, gmail smtp will accept "from" parameter with your alias address.
if I understood you, if you want to use the account (johndoe#domain.com) to authenticate, but you do not want it to be shown as a sender, and the sender should be (info#domain.com), then you must follow the following Steps.
It is more than obvious that you must be a GSuite administrator.
First you enable third-party authentication, go to:
Google GSuite Security=>
basic configuration=>
Unsecured applications=>
(click here) Access the settings of unsafe applications=>
Enable access for all users to unsafe applications (not recommended)
Second, in your application for sending mail do this:
Sender Address: info#domain.com
User: johndoe#domain.com
Server: smtp.gmail.com
Port: 465
Encryption: ssl
Password: yourpassowrdaccount
Exampple: https://i.stack.imgur.com/u0X8J.png

The following from address failed, joomla 2.5

I am using chronoforms to set forms on my site. After submission I want to send that information to the administrator of the site by sending mail notifications. But when the client submits the info the following error is displayed:
The following from address failed admin#admin.com
I have set SMTP settings on my joomla site using gmail SMTP settings as follows:
mailer: SMTP
from email: mygmail#gmail.com
sendmailpath: /usr/sbin/sendmail
smtpsecurity: ssl
port: 465
user: mygmail#gmail.com
pass: ***********
host: smtp.gmail.com
I have found the Acymailing component and modify to work with SMTP. What else could I do?
Set the From Email address to the address you have in the site SMTP settings, make sure that the To Email address for the admin is a different one as some mail servers - GMail in particular - will drop emails when the From and To addresses are the same.

Are IMAP/SMTP credentials always the same as the user's login credentials?

Greetings!
This question pertains to Normal (or Plain) IMAP/SMTP Authentication.
Can we be sure that a user's IMAP username is exactly the same as his full email address? Can the two be different? What about his SMTP username? Can he have different passwords for IMAP and SMTP?
To make things concrete, consider a webmail user, John Doe:
Email address: john.doe#example.com
Login password: foo.bar.baz
Given that John uses the above credentials to sign in with his webmail provider, here's a series of yes–no questions:
Can we be certain that John's IMAP username is john.doe#example.com?
1.1. Could it be john.doe, john or something else?
Can we be certain that John's IMAP password is foo.bar.baz?
Can we be certain that John's SMTP username is john.doe#example.com?
Can we be certain that John's SMTP password is foo.bar.baz?
Can we be certain that John's IMAP password is the same as his SMTP password?
Can we be certain that John's IMAP username is the same as his SMTP username?
I've been looking for these answers for a while now. If you can link to an RFC, that'd be awesome.
Thanks in advance. :)
SMTP and IMAP can be handled by disjoint programs, so no assurances there. Dovecot IMAP for example lets you freely choose to map username against mailbox name.
Certain - no, you can't be certain, as the server administrator can set any policy they like regarding these things.
However, RFC 6186 gives some suggestions. It suggests that mail user agents (MUAs) should first try using the full email address as the username for authentication (in this case john.doe#example.com), and if authentication fails, try again with the "local-part" as username (in this case john.doe). It also suggests that service providers should support authenticating with either of those usernames. This applies to both SMTP and IMAP authentication.
The RFC doesn't say anything about whether the username should be the same for SMTP and IMAP (so if the IMAP server wants the username john.doe#example.com and the SMTP server wants john.doe, that would still be within what the RFC suggests), and it doesn't say anything at all about passwords.
The RFC also suggests using DNS SRV records to find the hostname of the IMAP and SMTP servers given an email address. You can see this in action for Gmail using the dig command line tool:
$ dig +short -t srv _imaps._tcp.gmail.com
5 0 993 imap.gmail.com.
$ dig +short -t srv _submission._tcp.gmail.com
5 0 587 smtp.gmail.com.
That is, the IMAPS server is on imap.gmail.com, port 993, and the SMTP server for mail submission is on smtp.gmail.com, port 587.

Gmail smtp configuration for Drupal 7

I want to send email in Drupal 7. So, does anyone know how to configure Gmail SMTP on Drupal 7?
Download SMTP module and enable it.
Go to Admin > Configuration > SMTP authentication support and set the following values:
Turn on the module at the Install options fieldset at the top.
SMTP server settings:
smtp server: smtp.gmail.com
smtp backup server: leave blank.
smtp port: 465
use encrypted protocol: select "use SSL"
SMTP authentication:
Enter a valid Gmail email address and password.
Email options:
Set the same email address that you used at SMTP Authentication. Using a different account is called Phishing
Send test email: set an email to receive a sample email.
Enable debugging: yes.
3. Click on submit and verify that the email was submitted and that you received it. If not, read carefully the debug information at the top of the screen. Once satisfied, remember to deactivate the debug checkbox.
Step 1: Download SMTP module and enable it.
Step 2: Go to Admin > Configuration > System > SMTP authentication support and set the following values:
Turn this module on or off: On.
SMTP server settings:
smtp server: smtp.gmail.com
smtp backup server: leave blank.
smtp port: 465
use encrypted protocol: select "use SSL"
SMTP authentication:
Enter a valid Gmail email address and password.
Email options:
Set the same email address that you used at SMTP Authentication.
Send test email: set an email to receive a sample email and to test whether the module is working.
Enable debugging: yes.
Step 2a(Optional): Allow Less Secure Apps Access which is here: http://www.google.com/settings/security/lesssecureapps
Step 3: Click on Save and go to your inbox to check. If there is an testing email then it is fine.
Note: Your email address provided in your smpt setting MUST be the same like in your site information.
I hope SMTP Authentication Support module will help you.
For me, just following the steps in Juampy's answer didn't work. The error "Unable to send mail. Contact site administrator." continued to display. Do the following first and then configure SMTP module as per his answer.
Before installing SMTP module, download PHPMailer and extract it. Rename the folder as 'phpmailer' and copy the folder into module folder of SMTP module. Then, install the SMTP module.
An alternative configuration is as follows:
smtp port: 587
use encrypted protocol: select "use TLS"
This blog entry has some more up-to-date info:
http://www.stevepolitodesign.com/blog/drupal-configure-smtp-module-work-gmail-updated
Install and set-up module:
Install the SMTP Authentication Support module in the usual way.
Navigate to the configuration page admin/config/system/smtp
Under Turn this module on or off select On. You can leave Send mail
by queue and Retry sending mail on error. deselected by default, but
selecting them won't affect Gmail.
Under SMTP server enter the following smtp.gmail.com. Leave SMTP
backup server blank
Under SMTP port enter 587 ​
Under Use encrypted protocol select Use TLS ​
Under SMTP AUTHENTICATION enter a Gmail address and password.
Under E-MAIL OPTIONS use the same Gmail address as you did above and
enter an E-mail from name
Click Save
Update gmail account settings:
Login to your Gmail account at https://myaccount.google.com/
On the account homepage, click Sign-in & security or navigate to https://myaccount.google.com/security
Scroll down to the Allow less secure apps: widget, and have it enabled.
Now navigate to https://accounts.google.com/DisplayUnlockCaptcha and click Continue
Go back to the SMTP configuration page admin/config/system/smtp
Enter an email address you would like to receive a test message from and click Save configuration
Check your inbox to confirm you received the test message.