System.FormatException: The specified string is not in the form required for an e-mail address.
at System.Net.Mail.MailAddressParser.ReadCfwsAndThrowIfIncomplete(String data, Int32 index)
at System.Net.Mail.MailAddressParser.ParseDomain(String data, Int32& index)
at System.Net.Mail.MailAddressParser.ParseAddress(String data, Boolean expectMultipleAddresses, Int32& index)
at System.Net.Mail.MailAddressParser.ParseAddress(String data)
at System.Net.Mail.MailAddress..ctor(String address, String displayName, Encoding displayNameEncoding)
at System.Net.Mail.MailMessage..ctor()
at Umbraco.Forms.Core.Providers.WorkflowTypes.SendRazorEmail.Execute(Record record, RecordEventArgs e)
an ideas?? could it be due to me not having a network host ip address?? I presumed this should be the smtp servers IP address but on MailJet set up they do not provide any ip address only a host
This is my web.config mail set up:
<system.net>
<mailSettings>
<smtp from="in-v3.mailjet.com">
<network host="127.0.0.1(standard umbraco one??)" port="587" userName="have taken out" password="have taken out" />
</smtp>
</mailSettings>
</system.net>
I think i am missing a setting here in my web config.. any ideas please
The from attribute should be an email address. The host attribute should hold the SMTP server's hostname (or IP). Looks like you've accidentally put the servername in the from attribute?
Hi again - we've all been there (facepalming our way through :-)
Actually, there could be one last setting - in the umbracoSettings.config file there's a setting for notifications (which is also used by UmbracoForms if no sender mail is configured):
SMTP settings
I have added an umbraco contact form but it will not send an email.
I have done some googlig and people mention settings up the smtp settings
where or how do i do this??? i do not find any such default mail settings in the web config file
can somebody please point me to the file path and file i am looking for to make these changes in please
Thanks
Hi Naveed,
Have a look here: https://our.umbraco.com/documentation/Reference/Config/webconfig/#smtp-settings
You may need to add the section yourself.
/Chriztian
yes i don't have that section anywhere..will add it myself and give that a go.
I have set an smtp using "MailJet"
I am now getting this error
an ideas?? could it be due to me not having a network host ip address?? I presumed this should be the smtp servers IP address but on MailJet set up they do not provide any ip address only a host
This is my web.config mail set up:
I think i am missing a setting here in my web config.. any ideas please
Hi Naveed,
The
from
attribute should be an email address. Thehost
attribute should hold the SMTP server's hostname (or IP). Looks like you've accidentally put the servername in thefrom
attribute?/Chriztian
ah yes facepalm stupid me
I am not getting the error no more now..but can see no email is being sent.
This is proving more difficult then I thought
is there any thing else I may need to set up I have it like this now:
Hi again - we've all been there (facepalming our way through :-)
Actually, there could be one last setting - in the umbracoSettings.config file there's a setting for notifications (which is also used by UmbracoForms if no sender mail is configured):
https://our.umbraco.com/documentation/Reference/Config/umbracoSettings/#notifications
Otherwise, I'd start double-checking the hostname + port values. But you've probably already triple-checked those, so... :)
/Chriztian
legend..that was it ..Thanks a lot for the help..finally got there
is working on a reply...