Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > BOOK: Professional Ajax ISBN: 978-0-471-77778-6
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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

Reply With Quote
  #2 (permalink)  
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:20 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.