Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional Ajax ISBN: 978-0-471-77778-6
This is the forum to discuss the Wrox book Professional Ajax by Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett; ISBN: 9780471777786
Important: For the new 2nd edition of this book, please post here instead: [url="http://p2p.wrox.com/forum.asp?FORUM_ID=307"]http://p2p.wrox.com/forum.asp?FORUM_ID=307[/url]
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Ajax ISBN: 978-0-471-77778-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 15th, 2006, 08:30 AM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to czarft
Default AjaxMail Problem In function sendMail

$test = "\"czarft\" <czarft@gmail.com>";
$t= $test;
$tos = preg_split ("/;|,/", $t);
foreach ($tos as $to) {
  preg_match("/(.*?)<?(.*?)>?/i", $to, $matches);
  print_r($matches);
  $mail->AddAddress($matches[2],str_replace('"','',$matches[1]));
}
---------------------
Result
Array
(
    [0] =>
    [1] =>
    [2] =>
)
-------
please help me ! what is wrong??
Thank You

 
Old August 19th, 2006, 04:14 PM
Registered User
 
Join Date: Oct 2005
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yeah, that one threw me as well, had to trace throught the code and correct that RE. I'd be suprised if Nick was the one who wrote that part. What's a \i doing in there? :P

Anyway, this "should" fix ya up:

/(.*?)<?([a-zA-Z0-9\._%\-]+@[a-zA-Z\d\.\-]+\.[a-zA-Z]{2,3})>?/

Paul Maneesilasan




Similar Threads
Thread Thread Starter Forum Replies Last Post
AjaxMail doesn't work ?! fly BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 13 March 31st, 2009 01:36 AM
SendMail Problem bahachin Excel VBA 0 November 22nd, 2006 09:45 AM
AjaxMail looking for developers nzakas BOOK: Professional Ajax ISBN: 978-0-471-77778-6 0 August 25th, 2006 09:56 PM
CDONT sendmail problem haji_mb Classic ASP Components 5 April 16th, 2005 07:00 AM
Sendmail with HTML problem puliko PHP How-To 1 January 24th, 2005 04:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.