Search found 4 matches

by lunarman
Tue Feb 13, 2007 5:51 am
Forum: Swift Mailer
Topic: Swift Mailer tutorial
Replies: 36
Views: 114907

The regexp will accept "g" or "foo" or "bar" etc as valid email addresses. Internal mailing software often uses "local addresses" in this form. Ah, I see. If you'd rather not allow that, just take out the trailing "?" in $email_re So simple! Still g...
by lunarman
Tue Feb 13, 2007 5:22 am
Forum: Swift Mailer
Topic: Swift Mailer tutorial
Replies: 36
Views: 114907

Hi again, One other small issue with the tutorial. The email validation doesn't seem to be working for me. Here's the (unchanged) code from the tute: /** 6 **/ //This is a RegExp I've adopted for validating email addresses. NOTE that it's NOT RFC compliant. // Use another regexp at your own choice $...
by lunarman
Mon Feb 12, 2007 4:33 pm
Forum: Swift Mailer
Topic: Swift Mailer tutorial
Replies: 36
Views: 114907

nickvd,

Many thanks.. works perfectly.

Regards,

Lunarman
by lunarman
Mon Feb 12, 2007 12:19 pm
Forum: Swift Mailer
Topic: Swift Mailer tutorial
Replies: 36
Views: 114907

Hi, I'm very new to PHP, but have succesfully got Swift Mailer running on my site as per this tutorial. However, I need to be able for the users to select the email recipient from a drop-down select box. I have made the following changes to the tutorial code: In mail_handler.php if ($recip == 'fish'...