Page 2 of 2

Re: Mail help please!

PostPosted: 17. April 2010 12:22
by sharpnova
Nobbie wrote:This is nonsense, EITHER use sendmail_path OR SMTP + smtp_port. There is no such wrong example in this thread.


As I've stated, I have almost no understanding of this stuff.

Based on my files, which method am I using? SMTP or sendmail. All I really understand is that I'm somehow using Gmail as an external mailserver.

I'd like to know exactly what I'm doing here.. so I can at least edit my post so it isn't misleading to someone else looking for a solution to this problem. (Which I'm assuming from the tone of your post is your concern as well)

Re: Mail help please!

PostPosted: 17. April 2010 13:11
by Nobbie
sharpnova wrote:As I've stated, I have almost no understanding of this stuff.


You should only copy&paste the contents of this thread and the examples.

sharpnova wrote:Based on my files, which method am I using? SMTP or sendmail.


If you are using sendmail.exem you use sendmail.

sharpnova wrote:I'd like to know exactly what I'm doing here.


There is only one way: reading and learning. Remember my very first remark on this problems in this thread:

Sending mails is not an easy thing. You must have quite a knowledge how mailservers are working.


I cannot help you out of that, IT IS REALLY DIFFICULT.

Re: Mail help please!

PostPosted: 21. November 2010 07:18
by trejder
Nobbie wrote:This works perfectly for me, but remind, that all mails you are sending via PHP now are coming "From: myuser@googlemail.com" (you cannot supply a different FROM: clause, even if you do so, it's overwritten).

As far as I know now, this is not true! I have set different from and user clauses in my sendmail.ini and got a whole bunch of error messages in log saying:

Code: Select all
Nov 21 07:13:54 host=xxx tls=on auth=on user=xxx from=lanch@localhost recipients=xxx smtpstatus=554 smtpmsg='554 5.7.1 Sender address rejected' errormsg='envelope from address lanch@localhost not accepted by the server' exitcode=EX_DATAERR

So, it seems that sendmail IS RESPECTING differences between from and user and is not overwriting one over another.

Re: Mail help please!

PostPosted: 21. November 2010 12:02
by Nobbie
trejder wrote:So, it seems that sendmail IS RESPECTING differences between from and user and is not overwriting one over another.


You are barking up the wrong tree - the substitution of FROM-Clause is not done by sendmail, but by Googlemail if and only if you are using Google SMTP with Authorizing for the delivery. You should read the whole thread in order to understand how this was ment.

And: there are different sendmail implementations, this thread cares about the Windows sendmail fake programm delivered with Xampp.