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   651 Views

Avatar
Nicolaas

Forum Moderator, 213 Posts

25 July 2012 at 1:01am

Edited: 25/07/2012 1:02am

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

Forum Moderator, 213 Posts

25 July 2012 at 2:09am

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

Avatar
Willr

Forum Moderator, 5513 Posts

25 July 2012 at 7:56pm

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