Community Discussions and Support
Stumped on PHP mail script test.

[quote user="KJATL"]

Hello,

 This is my first foray into the world of Mercury. I was following a tutorial that involved testing a mail() PHP function using Mercury as the mail server. I believe the script is okay because it echos feedback  "Message has been sent". Currently I have 28 items "pending" This is what i'm working with where xxx is the first part of my email address:

I ass-u-me that use are using XAMPP.

php.ini :

 [mail function]
SMTP = localhost
smtp_port = 25
sendmail_from = Admin@192.168.1.10

This form of the address is invalid, the IP address must be enclosed in [] to make it a literal address. Use Admin@[192.168.1.10]

MercuryS output:

Connection from 127.0.0.1, Wed Apr 29 23:26:41 2009
HELO kkk

Should be a host name like [192.168.1.10] instead of kkk   It will work here since Mercury/32 really does not care.

MAIL FROM:<localhost>

Should be Admin@[192.168.1.10] instead of localhost

RCPT TO:<xxx@gmail.com>
DATA
DATA - 6 lines, 185 bytes.
QUIT
0 sec. elapsed, connection closed Wed Apr 29 23:26:41 2009

Connection from 127.0.0.1, Wed Apr 29 23:30:36 2009
HELO kkk

MAIL FROM:<Admin@192.168.1.10>
RCPT TO:<xxx@gmail.com>
DATA
DATA - 6 lines, 185 bytes.
QUIT
0 sec. elapsed, connection closed Wed Apr 29 23:30:36 2009
 

 Mercury Core:

 Wed 29, 23:27:03: Job MG000041: from postmaster@[192.168.1.10] (non-local)
   Created outgoing job with ID MO000042
   To: Admin@[192.168.1.10] (non-local) -OK

Job was accepted and since [192.168.1.10] is not in the domains list then it's sent to the queue for delivery off server.  Can't go anywhere though since the address is a non-routable IP address.

Wed 29, 23:30:43: Job MG000043: from Admin@192.168.1.10 (non-local)
   Created outgoing job with ID MO000044
   To: xxx@gmail.com (non-local) -OK

Job accepted and sent to queue for processing by MercuryC

 Does anyone have any idea what I need to work on first?

Probably the outgoing protocol MercuryC used to send SMTP to the outside world via a relay host.  MercuryE will not work since you have no fixed IP address and host name.  Without a fixed IP address and host name 90% of the receiving SMTP hosts will reject your connection as spam.[/quote]

&lt;blockquote&gt;[quote user=&quot;KJATL&quot;]&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;&amp;nbsp;This is my first foray into the world of Mercury. I was following a tutorial that involved testing a mail() PHP function using Mercury as the mail server. I believe the script is okay because it echos feedback&amp;nbsp; &quot;Message has been sent&quot;. Currently I have 28 items &quot;pending&quot; This is what i&#039;m working with where xxx is the first part of my email address:&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;I ass-u-me that use are using XAMPP. &lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;php.ini :&lt;/p&gt;&lt;p&gt;&amp;nbsp;[mail function] SMTP = localhost smtp_port = 25 sendmail_from = Admin@192.168.1.10&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;This form of the address is invalid, the IP address must be enclosed in [] to make it a literal address. Use Admin@[192.168.1.10]&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;MercuryS output:&lt;/p&gt;&lt;p&gt;Connection from 127.0.0.1, Wed Apr 29 23:26:41 2009 HELO kkk&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Should be a host name like [192.168.1.10] instead of kkk&amp;nbsp;&amp;nbsp; It will work here since Mercury/32 really does not care. &lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;MAIL FROM:&amp;lt;localhost&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Should be Admin@[192.168.1.10] instead of localhost &lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;RCPT TO:&amp;lt;xxx@gmail.com&amp;gt; DATA DATA - 6 lines, 185 bytes. QUIT 0 sec. elapsed, connection closed Wed Apr 29 23:26:41 2009 Connection from 127.0.0.1, Wed Apr 29 23:30:36 2009 HELO kkk&lt;/p&gt;&lt;p&gt;MAIL FROM:&amp;lt;Admin@192.168.1.10&amp;gt; RCPT TO:&amp;lt;xxx@gmail.com&amp;gt; DATA DATA - 6 lines, 185 bytes. QUIT 0 sec. elapsed, connection closed Wed Apr 29 23:30:36 2009 &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Mercury Core:&lt;/p&gt;&lt;p&gt;&amp;nbsp;Wed 29, 23:27:03: Job MG000041: from postmaster@[192.168.1.10] (non-local) &amp;nbsp;&amp;nbsp; Created outgoing job with ID MO000042 &amp;nbsp;&amp;nbsp; To: Admin@[192.168.1.10] (non-local) -OK&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Job was accepted and since [192.168.1.10] is not in the domains list then it&#039;s sent to the queue for delivery off server.&amp;nbsp; Can&#039;t go anywhere though since the address is a non-routable IP address. &lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;Wed 29, 23:30:43: Job MG000043: from Admin@192.168.1.10 (non-local) &amp;nbsp;&amp;nbsp; Created outgoing job with ID MO000044 &amp;nbsp;&amp;nbsp; To: xxx@gmail.com (non-local) -OK&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Job accepted and sent to queue for processing by MercuryC &lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;Does anyone have any idea what I need to work on first?&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Probably the outgoing protocol MercuryC used to send SMTP to the outside world via a relay host.&amp;nbsp; MercuryE will not work since you have no fixed IP address and host name.&amp;nbsp; Without a fixed IP address and host name 90% of the receiving SMTP hosts will reject your connection as spam.[/quote]&lt;/p&gt;

Hello,

 This is my first foray into the world of Mercury. I was following a tutorial that involved testing a mail() PHP function using Mercury as the mail server. I believe the script is okay because it echos feedback  "Message has been sent". Currently I have 28 items "pending" This is what i'm working with where xxx is the first part of my email address:

 

php.ini :

 [mail function]
SMTP = localhost
smtp_port = 25
sendmail_from = Admin@192.168.1.10

MercuryS output:

Connection from 127.0.0.1, Wed Apr 29 23:26:41 2009
HELO kkk
MAIL FROM:<localhost>
RCPT TO:<xxx@gmail.com>
DATA
DATA - 6 lines, 185 bytes.
QUIT
0 sec. elapsed, connection closed Wed Apr 29 23:26:41 2009

Connection from 127.0.0.1, Wed Apr 29 23:30:36 2009
HELO kkk

MAIL FROM:<Admin@192.168.1.10>
RCPT TO:<xxx@gmail.com>
DATA
DATA - 6 lines, 185 bytes.
QUIT
0 sec. elapsed, connection closed Wed Apr 29 23:30:36 2009
 

 Mercury Core:

 Wed 29, 23:27:03: Job MG000041: from postmaster@[192.168.1.10] (non-local)
   Created outgoing job with ID MO000042
   To: Admin@[192.168.1.10] (non-local) -OK
Wed 29, 23:30:43: Job MG000043: from Admin@192.168.1.10 (non-local)
   Created outgoing job with ID MO000044
   To: xxx@gmail.com (non-local) -OK

 

 

 Does anyone have any idea what I need to work on first?

&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;&amp;nbsp;This is my first foray into the world of Mercury. I was following a tutorial that involved testing a mail() PHP function using Mercury as the mail server. I believe the script is okay because it echos feedback&amp;nbsp; &quot;Message has been sent&quot;. Currently I have 28 items &quot;pending&quot; This is what i&#039;m working with where xxx is the first part of my email address:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;php.ini :&lt;/p&gt;&lt;p&gt;&amp;nbsp;[mail function] SMTP = localhost smtp_port = 25 sendmail_from = Admin@192.168.1.10&lt;/p&gt;&lt;p&gt;MercuryS output:&lt;/p&gt;&lt;p&gt;Connection from 127.0.0.1, Wed Apr 29 23:26:41 2009 HELO kkk MAIL FROM:&amp;lt;localhost&amp;gt; RCPT TO:&amp;lt;xxx@gmail.com&amp;gt; DATA DATA - 6 lines, 185 bytes. QUIT 0 sec. elapsed, connection closed Wed Apr 29 23:26:41 2009  Connection from 127.0.0.1, Wed Apr 29 23:30:36 2009 HELO kkk&lt;/p&gt;&lt;p&gt;MAIL FROM:&amp;lt;Admin@192.168.1.10&amp;gt; RCPT TO:&amp;lt;xxx@gmail.com&amp;gt; DATA DATA - 6 lines, 185 bytes. QUIT 0 sec. elapsed, connection closed Wed Apr 29 23:30:36 2009 &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Mercury Core:&lt;/p&gt;&lt;p&gt;&amp;nbsp;Wed 29, 23:27:03: Job MG000041: from postmaster@[192.168.1.10] (non-local) &amp;nbsp;&amp;nbsp; Created outgoing job with ID MO000042 &amp;nbsp;&amp;nbsp; To: Admin@[192.168.1.10] (non-local) -OK Wed 29, 23:30:43: Job MG000043: from Admin@192.168.1.10 (non-local) &amp;nbsp;&amp;nbsp; Created outgoing job with ID MO000044 &amp;nbsp;&amp;nbsp; To: xxx@gmail.com (non-local) -OK &lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Does anyone have any idea what I need to work on first? &lt;/p&gt;
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft