Community Discussions and Support
Use server as relay from php website application?

> I would like to know how to add the "smtp" address (cant get anything to

resolve) info into the php webpage
> so that my mail server will send the

email.

 

Depends on the PHP mailer and your going to have to someone else about that.  Most PHP mailers use mail() and that can be set to connect to the IP address of the host running Mercury.  Mercury must have MercuryS loaded and connection control set so that only authorized users can relay mail.  The PHP mailer must use some sort of SMTP authentication to relay the mail off MercuryS. 

<p>> I would like to know how to add the "smtp" address (cant get anything to resolve) info into the php webpage > so that my mail server will send the email.</p><p> </p><p>Depends on the PHP mailer and your going to have to someone else about that.  Most PHP mailers use mail() and that can be set to connect to the IP address of the host running Mercury.  Mercury must have MercuryS loaded and connection control set so that only authorized users can relay mail.  The PHP mailer must use some sort of SMTP authentication to relay the mail off MercuryS.  </p>

I am hosting a website that has email feature for password recovery / registration / feedback.

I used to use gmail, but recent changes have made that impossible now.

I can email from the server to my yahoo account, and receive from the yahoo account.

What i would like to know, is can/how do i set up so that the webpage php function can relay mail thru the Mercury server?

<P>I am hosting a website that has email feature for password recovery / registration / feedback.</P> <P>I used to use gmail, but recent changes have made that impossible now.</P> <P>I can email from the server to my yahoo account, and receive from the yahoo account.</P> <P>What i would like to know, is can/how do i set up so that the webpage php function can relay mail thru the Mercury server?</P>

Yes you can.

Just run through the normal Mercury setup.

You will need MercS to receive mail, MercC or E (depending on your connection) to send mail, and MercP or I to serve mail by POP3 or IMAP.

Pay careful attention to the Local Domains & Relaying sections.

<p>Yes you can.</p><p>Just run through the normal Mercury setup.</p><p>You will need MercS to receive mail, MercC or E (depending on your connection) to send mail, and MercP or I to serve mail by POP3 or IMAP.</p><p>Pay careful attention to the Local Domains & Relaying sections. </p>

[quote user="stady234"]

I can email from the server to my yahoo account, and receive from the yahoo account.

What i would like to know, is can/how do i set up so that the webpage php function can relay mail thru the Mercury server?

[/quote]

So again... my mail server works...

I would like to know how to add the "smtp" address (cant get anything to resolve) info into the php webpage so that my mail server will send the email.

[quote user="stady234"] <P>I can email from the server to my yahoo account, and receive from the yahoo account.</P> <P>What i would like to know, is can/<STRONG>how do i set up so that the webpage php function can relay mail thru the Mercury server</STRONG>?</P> <P>[/quote]</P> <P>So again... my mail server works...</P> <P>I would like to know how to add the "smtp" address (cant get anything to resolve) info into the php webpage so that my mail server will send the email.</P>

> MercC or E (depending on your connection)

Meaning do not try to use MercuryE to send the mail unless you have a fixed IP address and registered host name with a valid rDNS. The use of a randomly assigned IP address will get your mail blocked by most of the major players.  The lack of a rDNS (PTR record) will also get you blacklisted.  Finally if the host name being used for the connection is not registered then the mail will generally go to dev/nul:.

 

<p> > MercC or E (depending on your connection)</p><p>Meaning do not try to use MercuryE to send the mail unless you have a fixed IP address and registered host name with a valid rDNS. The use of a randomly assigned IP address will get your mail blocked by most of the major players.  The lack of a rDNS (PTR record) will also get you blacklisted.  Finally if the host name being used for the connection is not registered then the mail will generally go to dev/nul:.</p><p> </p>
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