Jump to content
Larry Ullman's Book Forums

Using Msmtp + gmail in Php and mail function how can I see the email address of the sender when I receive the email?


Recommended Posts

Hi everyone,

I'm using msmtp and gmail to send email in my php web app, on Ubuntu in localhost developing. It is described here: https://stackoverflow.com/questions/33969783/phpubuntu-send-email-using-gmail-form-localhost/45125490#45125490
It works both when I send the email to me and when I receive an email. However in the latter case, i.e. when I send an email to me, I can't see the address email of the sender but I see me ,I believe because is in effect my mail server that send to me.

How could I see the email address of the sender when I receive the email?

 

Is there some advice or easy solution to the problem encountered?

Best greetings

 

Link to comment
Share on other sites

  • 2 weeks later...

Hey Nick, are you setting a "from" address when you send the email?

Also, it may help if you use placeholder values when describing the problem here. I'm not 100% sure I understand the distinctions you're trying to make (e.g., sending the email to me vs receiving an email or all the uses of "me"). 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...