Changing app 'sent from' email address in Firebase - swift

I was just creating the 'reset password' section for my app using Firebase (built for iOS with Swift) and wondered if I was able to change the email address that the reset password link is sent from?
For example, instead of it being 'noreply#appid.firebase.com', could I change it to 'noreply#myappswebsiteurl.com'?
I can't seem to find anything on how this can be done and I guess it's not really hugely important but it's just something I might want to change in the future.

In Firebase console you can find Templates tab in Authentication. There you can change sender name
refer at Customize the sender domain in
https://support.google.com/firebase/answer/7000714
You should add domain in Firebase console.
You can also use SMTP for emails

You need to go to the firebase console ==> Authentication Part:
Click on the pencil to edit, then click customize domain:
works with password reset, email address verification, email address change.

Related

Flutter - launch email clients WITHOUT sending an email and knowing which client(s) a user might use

Need to offer a user a button to open their email client if they are using password-less authentication.
Have looked at url_launcher, but it's wants to create an email, the app_availability wants specific package names or just default email for ios...
Has anyone come across a way to just show a user a snackbar with whatever email clients they might have on their device?
have a look at
https://pub.dev/packages/flutter_email_sender
u can use this code
FlutterEmailSender.send(Email(recipients: ['emailid#email.com'],subject: 'any subject you want'));
user will be shown all the available email clients, he can choose any of the clients

Firebase in Swift: Password reset email attempt not sending to user

Absolutely love Firebase so far except it is not sending emails. Every time that I go on my console to reset one of my user's passwords, I click on the authentication tab on the left, go to one of my users, click on the right side of the user, and click on reset password. Then it sends an email to my personal email saying that the message wasn't delivered to "billybob123#email.com" and the reason is that "unsafe characters or length in username."
Now I know what the issue is here, there is no username. I have no idea how to set it. In my app, the users sign up and sign in with their email, but Firebase must not think that is their username. Also, the failure email shows the email that the server tried to send. In that email below, it shows the password reset link. Here is an example of the link below.
https://greenbananatech-jbs.firebaseapp.com/__/auth/action?mode=resetPassword&oobCode=chubW2CkIyYbJvAUviPYUevyHtr-KKYLjFRhABglpFkAAAFkGfcgkw&apiKey=AIzaSyDYrCkVfzNww2V_BuBSTfV85s2lSwW8hO4&lang=en
See what I think where the issue lies is that empty space after ".com". I think this is where the username is supposed to go. I just don't know how to set the username of the users. I have already changed the DISPLAY name of my users in my Xcode project but that doesn't do anything. Also when I click on the "faulty" link, it is in no way faulty because it works perfectly! Here is the picture of the failure email below.
Thanks so much.
Top of email
Bottom of email
I went through the same problem. I tried to configure Firebase SMTP using CPanel's outbound service, and I only received the error message. The problem is the "SMTP account username" field. Try passing the email address on it. It worked for me.

Using SendGrid to send password reset links

I am using SendGrid as the email provider in my application. When I place a link in the email it gets re-encoded to a link on the SendGrid servers. Can I trust this link with my password resets? I know that I am already trusting SendGrid with my links by sending through their servers but what is the purpose of rewriting the urls. To use the link you need to also know the email address and it is only valid for 20 minutes.
The link in my email looks like
http://myserver/resetpassword/oLsjShCLh7tFpyl8cEzbghHpS59iazhD
and it gets encoded in the email as
https://u5478763.ct.sendgrid.net/wf/click?upn=hvVg2ntCa8InWO5OtVSRJPdvIiofcS3RGII270TrJ9aOSJX2MZ9RkcgQLgnRLLNMjjo5mMQVejYxIGVPoz-2BfxtM55lXWiXwtNWvE42LzFPE-3D_Q0Y0L54uOhrrHtFzGFlMm55yZkDAUn39DjKFOTu4BtReZW14K4ruKT7IkXyh4pWHctN-2FYlmmFj2J7a6-2BHy0UN0PZDTzqKnADTi10YJeXfirMSGqGLkjKxZZY1iGRjCkgddBCiyIBiLfBs3VS4GmrB5SPa7uCb9KYcZdqm5AvebY6pyGitqdcpmDSVV6zHjR1oK3NZQboFfjng-2Fqv6PQHekU7irw1BWOtP5ja3RxfUKE-3D
This is because you have Click Tracking enabled in your account. Log into your SendGrid dashboard, and from the navbar on the left side click on Settings -> Tracking and disable Click Tracking.

Want to set up a system of sending email to users on my magento store who have forgot a password

I have set up a magento store of my own for my business of grocery products.
I have almost configured each and everything.
I have a mail server and can have as many email addresses as I require.
I have a theme set up for the store.
While a user tries to log in and has forgot a password, there is a link to click saying "Forgot Password".
On clicking it, it displays "An email has been sent to your account with new password details."
I know this will not send an email as I have to configure entire system.
I do not want to send a new password by email. Instead I want to send a link. On clicking this link, the user can go the it and have an option of password reset.
Please help me with this. It will be much much appreciated.
Magento's standard "Forgot Password" functionality works exactly as you've described - it sends a link to the user to reset his or her password - it doesn't just send a new password.
Magento uses Zend_Mail to send emails. By default, Zend_Mail will use PHP's mail() function (via Zend_Mail_Transport_Sendmail), which will usually send emails via sendmail or similar, depending on the PHP configuration.
If you have your own mail server that you'd prefer to use, you can configure Magento to use SMTP. This does require some code, but, luckily, there are some good extensions out there that already do this, like aschroder/Magento-SMTP-Pro-Email-Extension.

Why do emails sent with Gmail from an alias not appear in the sent items?

I have an email address set up on a certain domain, and I have added an alias email address in my Google Apps account set up on another domain. I've also added that alias on the second domain to "Send mail as" to be able to send emails from that email address.
Problem is that when I send emails from that alias, they don't appear in the sent items. Why is this? How can I resolve it?
i just figured it out and it now works, even previously sent mails from an alias via gmail also appear in my sent messages.
in gmail, go to settings, account and imports, in the "send mail as" section, click on "edit info" next to the account which you are having the problem with.
on the screen which pops up, uncheck the radio box for "treat as an alias" dont change any other info, click next step, enter your password and click save changes.
thats all it took to sort out my issue.
best regards
They way I'm reading this is: you've added an alias/secondary in Google Apps account, example.com, for another domain you own, test.com. After doing this, you created an email alias for your Google Apps user and setup a send as address for #test.com within your #example.com account.
If this is the case, the expected behavior is: emails you send from your example.com account as your test.com account will appear in the 'Sent Mail' label for your example.com account. I've just double checked this to confirm.
Can you please provide your exact steps to reproduce the issue if the above isn't correct or you're seeing different behavior?
Sign in to your Google Apps email.
Click the in the upper-right and select Settings along the top of any page, and select the Accounts tab.
Under Send mail as, click Add another email address.
In the Email address field, enter your name and alternate email address.
Click Next Step >> and then click Send Verification. Gmail will send a verification message to your other email address to confirm that you own it.
Locate the message from Gmail. Open it and and either click the link contained in the message or enter the confirmation code in the Accounts section of your Google Apps email settings.
Then select
When replying to a message:
Reply from the same address the message was sent to