Php Mail

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Patrick
-


Joined: 02 Dec 2002
Posts: 20
Location: Canada

PostPosted: Sat Nov 19, 2005 1:05 am    Post subject: Php Mail Reply with quote

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 View user's profile Send private message
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Sat Nov 19, 2005 11:48 am    Post subject: Reply with quote

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 View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Nov 19, 2005 1:30 pm    Post subject: Re: Php Mail Reply with quote

Patrick,

http://phpmailer.sourceforge.net/docs/ contains very explicit information about each of them.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Patrick
-


Joined: 02 Dec 2002
Posts: 20
Location: Canada

PostPosted: Sat Nov 19, 2005 9:33 pm    Post subject: thanks guys Reply with quote

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 View user's profile Send private message
jibbajabba
-


Joined: 06 Sep 2005
Posts: 241
Location: England, Doncaster

PostPosted: Thu Nov 24, 2005 5:55 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Nov 25, 2005 1:20 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
jibbajabba
-


Joined: 06 Sep 2005
Posts: 241
Location: England, Doncaster

PostPosted: Tue Nov 29, 2005 8:42 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group