Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

phpmailer

Status
Not open for further replies.

dugen

Programmer
Jun 16, 2003
59
US
I am using phpmailer to create a script that sends emails containing HTML. I am confused about the SMTP part of the phpmailer. I know the site that the email will be coming from uses qmail. Where do I get the smtp address for qmail? Do i need to have a username and password to put in my script?

Thanks
 
Let's call your PHPMailer-using script "mailout.php".

If mailout.php is on a server that is running qmail, you do not send email via the SMTP sending-method of PHPMailer. You instead use the sendmail sending-method.

There are a couple of "gothas" about qmail about which you should be aware. Your normal sendmail application will accept a command-line parameter of "-f", which sets a customer sender. qmail does not use this, but instead gets this information from the environment variable QMAILUSER.



Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top