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


Reply

3 Posts   635 Views

Avatar
Nicolaas

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

info@ssmods.com.not.real

I want it to be

"My Name" <info@ssmods.com.not.real>

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" <info@ssmods.com.not.real>) but that does not seem to work.

Thank you

nicolaas

Avatar
Nicolaas

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...

Avatar
Willr

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

Check out the RFC822 spec (http://www.w3.org/Protocols/rfc822/) as is what Email::is_valid_email() follows