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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

correct format for "formatted" email


Go to End


3 Posts   1314 Views

Avatar
Nicolaas

Forum Moderator, 224 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, 224 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, 5523 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