Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

correct format for "formatted" email


3 Posts   635 Views


25 July 2012 at 1:01am (Last edited: 25 July 2012 1:02am), Forum Moderator, 213 Posts

I want to send an email using the SS email class.... rather than just having

I want it to be

"My Name" <>

Because with the former, it arrives with the name "info" showing in my inbox.

Does anyone know how to write this? I tried the above format ("My Name" <>) but that does not seem to work.

Thank you



25 July 2012 at 2:09am Forum Moderator, 213 Posts

it seems to work actually... still keen to hear if this is the correct format...


25 July 2012 at 7:56pm Forum Moderator, 5511 Posts

Check out the RFC822 spec ( as is what Email::is_valid_email() follows