Last post Mar 03, 2015 04:42 AM by PatriceSc
Mar 02, 2015 04:49 AM|NasirRazaKhan|LINK
Yahoo doesn't accept email from web app where as hotmail, gmail is accepting mail from web app; using following setting for message relay through gmail
WebMail.UserName="<a valid gmail account>";
WebMail.From="<the same valid gmail account";
WebMail.Password="<the correct password";
So far many other applications using the same setting are relaying message to yahoo but not webmatrix applications.
I shall be grateful for the advice.
Mar 02, 2015 05:00 AM|PatriceSc|LINK
And the error message you get is? Rather than guessing always start from the actual error message you see. If you don't have any message double check mail you are using the right mail address or that it doesn't go to a Junk mail folder etc...
Mar 02, 2015 05:36 AM|NasirRazaKhan|LINK
System log don't generate error message and doesn't go to junk or spam folder. Yahoo doesn't like the setting and put the mail in black hole as no rejection or error message; all emails delivered to hotmail, gmail and other smtp services, No problem with
any other smtp server, I may be missing some thing which yahoo mail may be looking for.
Mar 02, 2015 05:52 AM|PatriceSc|LINK
You logged to this Yahoo account? For example gmail does sent a message if the message is sent from a unusual location.
If you are 100% sure you don't have any exception, it means that the message goes to Yahoo. Change perhaps the content to see if it couldn't be classified as spam. Also you likely have a limit (you sent only few messages?)
For now it doesn't seems a coding issue.
Mar 02, 2015 10:40 AM|GmGregori|LINK
Try using the following settings for the Yahoo Mail service
WebMail.UserName="<a valid Yahoo account>";
WebMail.From="<the same valid Yahoo account";
Mar 02, 2015 04:11 PM|NasirRazaKhan|LINK
Did use yahoo mail service, with two different yahoo email accounts and it did not work for relaying to yahoo email account it worked for other smtp server but not yahoo. what could be missing with webmatrix settings?
Mar 02, 2015 04:21 PM|NasirRazaKhan|LINK
As GmGregori suggested to use yahoo smtp server I tried using valid yahoo email addresses but no success in relaying message for yahoo email . I tried on port 465 and 587 but no success. the message wouldn't reach to any folder spam or trash. Messages for
other smtp server works fine, but message doesn't reach to the user account who account is being used for relaying message.
Mar 02, 2015 07:19 PM|GmGregori|LINK
I have made some tests and this page sends messages without problems:
WebMail.SmtpServer = "smtp.mail.yahoo.com";
WebMail.SmtpPort = 587;
WebMail.EnableSsl = true;
WebMail.UserName = "your_address";
WebMail.Password = "your_password";
WebMail.From = "your_address";
var email = Request["Email"];
var mailsub = Request["Subject"];
var mailtxt = Request["Body"];
<label for="Email">To: </label>
<label for="Object">Subject: </label>
<label for="Text">Body: </label>
<input type="submit" value="Send" />
Mar 03, 2015 01:29 AM|NasirRazaKhan|LINK
Thanks, I check the code it works fine, I feel may appstart or some other code annoying yahoo. I know its me not yahoo so I will put my codes in order or make some arrangement. Thanks for advising this approach to test the code.
Mar 03, 2015 04:42 AM|PatriceSc|LINK
It's strange you don't have any exception. Or could it be that at some point you changed the web.config so that messages are saved to a folder rather than actually sent?
§have you checked your web.config for