View previous topic :: View next topic |
Author |
Message |
Patrick -
Joined: 02 Dec 2002 Posts: 20 Location: Canada
|
Posted: Sat Nov 19, 2005 1:05 am Post subject: Php Mail |
|
|
below is part of the code I have in a mail script and what I am concern with is that
the $mail->Host = & $mail->Mailer = are not set right.
Running Abyssws and windows xp and keep getting failed to send mail....
Code: |
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->From = "me@my.ca";
$mail->FromName = "My Hockey Pool";
$mail->Host = "smtp1.site.com;smtp2.site.com";
$mail->Mailer = "smtp";
|
Help please _________________ Patrick |
|
Back to top |
|
 |
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Sat Nov 19, 2005 11:48 am Post subject: |
|
|
I can't remember off hand what host and mailer accept in phpmailer. However I'd assume mailer should remain smtp, and host should be the address of a working smtp server. (Not sure if you can seperate them with semicolons either, can't remember.) _________________
 |
|
Back to top |
 |
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
 |
Patrick -
Joined: 02 Dec 2002 Posts: 20 Location: Canada
|
Posted: Sat Nov 19, 2005 9:33 pm Post subject: thanks guys |
|
|
I did go to http://phpmailer.sourceforge.net/docs/
and a few other places....
got it all to work...I used the following and it was succesful.....!!!!!
Code: |
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->Host = "my.service.provider.net";
$mail->Mailer = "smtp";
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "myusername"; // SMTP username
$mail->Password = "mypass"; // SMTP password
$mail->From = "me@my.ca";
$mail->FromName = "My Hockey Pool";
$mail->Subject = "Your Hockey Pool Stats!";
|
well this here now for others:)
thanks again _________________ Patrick |
|
Back to top |
|
 |
jibbajabba -
Joined: 06 Sep 2005 Posts: 241 Location: England, Doncaster
|
Posted: Thu Nov 24, 2005 5:55 pm Post subject: |
|
|
Since this thread is about php mail and i can't find owt in search about my issue i'll just post it in here
i had a script which sent out mail.. worked fine when i was using apache then i switched back over to abyss and it wouldn't send out mail.. since i have php5 setup for apache and the php5 which aprelium configured i set it the same as the apache one but still no good. i checked all the logs and nothing so i'm abit stumped on this :-( _________________ http://www.jibba-jabba.net | http://www.mosthauntedforum.com |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Nov 25, 2005 1:20 pm Post subject: |
|
|
jibbajabba,
Have you configured php.ini mail parameters correctly? Try also enabling error logging and see what messages does the mail() function report when it fails. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
jibbajabba -
Joined: 06 Sep 2005 Posts: 241 Location: England, Doncaster
|
Posted: Tue Nov 29, 2005 8:42 am Post subject: |
|
|
yes the php.ini file is exactly the same as the one i used for the apache server when i was using it. i no longer have the script installed which sent out the email but the mail function works ok with my phpbb forum.. i'll figure it out sooner or later. :) _________________ http://www.jibba-jabba.net | http://www.mosthauntedforum.com |
|
Back to top |
|
 |
|