PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
Milan
Forum Commoner
Posts: 97 Joined: Wed May 17, 2006 6:08 pm
Post
by Milan » Sat Jun 03, 2006 10:02 pm
What is the best way to convert this to mail()
Code: Select all
$message=new COM('CDO.Message');
$messageCon=new COM('CDO.Configuration');
$messageCon->Fields['http://schemas.microsoft.com/cdo/configuration/smtpserver']->value=$smtpserver;
$messageCon->Fields['http://schemas.microsoft.com/cdo/configuration/smtpserverport']->value=$portnum;
$messageCon->Fields['http://schemas.microsoft.com/cdo/configuration/sendusing']->value=2;
$messageCon->Fields['http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout']->value=60;
$messageCon->Fields->Update();
$message->Configuration = $messageCon;
$message->To = $sendtoadr;
$message->From = $fromadr;
$message->Subject = $fmsubject;
$message->HTMLBody = $mstext;
$message->Send() ;
thanks !
hawleyjr
BeerMod
Posts: 2170 Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA
Post
by hawleyjr » Sat Jun 03, 2006 10:09 pm
Mail is a very very simple function. Check out the manual...
mail()
Christopher
Site Administrator
Posts: 13596 Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US
Post
by Christopher » Sat Jun 03, 2006 10:15 pm
You also might want to check out the excellent Swift Mailer class from one of our members (who is providing great support -- until he becomes famous
) and also the popular phpMailer class.
(#10850)
Milan
Forum Commoner
Posts: 97 Joined: Wed May 17, 2006 6:08 pm
Post
by Milan » Sat Jun 03, 2006 10:25 pm
Swift Mailer class worked great!
thanks!
Christopher
Site Administrator
Posts: 13596 Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US
Post
by Christopher » Sat Jun 03, 2006 10:30 pm
Great. Definitely give d11wtq any feedback you have on those classes.
(#10850)
Milan
Forum Commoner
Posts: 97 Joined: Wed May 17, 2006 6:08 pm
Post
by Milan » Sat Jun 03, 2006 10:32 pm
will do!
(tested on godaddy.com with huuuuuuge e-mail files and lists...)
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098 Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia
Post
by Chris Corbyn » Sun Jun 04, 2006 7:44 am
arborint wrote: -- until he becomes famous